27 Nov, 2011

1 commit


27 Aug, 2011

2 commits

  • The is does a general cleanup of the drivers/net/ Kconfig and
    Makefile. This patch create a "core" option and places all
    the networking core drivers into this option (default is yes
    for this option). In addition, it alphabitizes the Kconfig
    driver options.

    As a side cleanup, found that the arcnet, token ring, and PHY
    Kconfig options were a tri-state option and should have been
    a bool option.

    Signed-off-by: Jeff Kirsher

    Jeff Kirsher
     
  • Move the COM20020 PCMICA Arcnet driver into drivers/net/arcnet/ with
    the other Arcnet drivers. Made the necessary Kconfig and Makefile
    changes as well.

    Since this was the "last" PCMCIA driver in drivers/net/pcmcia/, this patch
    also cleans up the references to drivers/net/pcmcia.

    CC: Arnaldo Carvalho de Melo
    Signed-off-by: Jeff Kirsher

    Jeff Kirsher
     

18 Aug, 2011

1 commit


07 Jun, 2011

1 commit


19 Jul, 2010

1 commit

  • probe_irq_off() returns the first irq found or if two irqs are found
    then it returns the negative of the first irq found. We can cast
    dev->irq to an int so that the test for negative values works.

    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     

31 May, 2010

1 commit

  • - shuffle around functions to get rid of forward declarations
    - fix some CodingStyle and indentation issues
    - last but not least, get rid of the following CONFIG_MODULE=n warning:

    drivers/net/arcnet/capmode.c:52: warning: ‘capmode_proto’ defined but not used

    Signed-off-by: Daniel Mack
    Signed-off-by: David S. Miller

    Daniel Mack
     

18 May, 2010

1 commit

  • The SH SOHARD ARCNET cards are implemented using generic PLX Technology
    PCIIOBus bridges. Subvendor and subdevice IDs were not specified,
    causing the driver to attach to any such bridge and likely crash the
    system by attempting to initialize an unrelated device.

    Fix by specifying subvendor and subdevice according to the values found
    in the PCI-ID Repository at http://pci-ids.ucw.cz/ .

    Cc: stable@kernel.org
    Signed-off-by: Andreas Bombe
    Signed-off-by: David S. Miller

    Andreas Bombe
     

10 May, 2010

1 commit

  • Now that core network takes care of trans_start updates, dont do it
    in drivers themselves, if possible. Drivers can avoid one cache miss
    (on dev->trans_start) in their start_xmit() handler.

    Exceptions are NETIF_F_LLTX drivers

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

08 Jan, 2010

1 commit


04 Dec, 2009

1 commit

  • Only files where David Miller is the primary git-signer.
    wireless, wimax, ixgbe, etc are not modified.

    Compile tested x86 allyesconfig only
    Not all files compiled (not x86 compatible)

    Added a few > 80 column lines, which I ignored.
    Existing checkpatch complaints ignored.

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     

19 Nov, 2009

1 commit

  • Not as fancy as coccinelle. Checkpatch errors ignored.
    Compile tested allyesconfig x86, not all files compiled.

    grep -rPl --include=*.[ch] "\brequest_irq\s*\([^,\)]+,\s*\&" drivers/net | while read file ; do \
    perl -i -e 'local $/; while (<>) { s@(\brequest_irq\s*\([^,\)]+,\s*)\&@\1@g ; print ; }' $file ;\
    done

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     

21 Sep, 2009

1 commit


01 Sep, 2009

1 commit


09 Jul, 2009

1 commit

  • Commit 5fd29d6ccbc98884569d6f3105aeca70858b3e0f ("printk: clean up
    handling of log-levels and newlines") changed printk semantics. printk
    lines with multiple KERN_ prefixes are no longer emitted as
    before the patch.

    is now included in the output on each additional use.

    Remove all uses of multiple KERN_s in formats.

    Signed-off-by: Joe Perches
    Signed-off-by: Linus Torvalds

    Joe Perches
     

18 Feb, 2009

1 commit


01 Feb, 2009

1 commit


26 Jan, 2009

1 commit


22 Jan, 2009

3 commits


26 Dec, 2008

1 commit


13 Nov, 2008

1 commit

  • We have some reasons to kill netdev->priv:
    1. netdev->priv is equal to netdev_priv().
    2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
    netdev_priv() is more flexible than netdev->priv.
    But we cann't kill netdev->priv, because so many drivers reference to it
    directly.

    This patch is a safe convert for netdev->priv to netdev_priv(netdev).
    Since all of the netdev->priv is only for read.
    But it is too big to be sent in one mail.
    I split it to 4 parts and make every part smaller than 100,000 bytes,
    which is max size allowed by vger.

    Signed-off-by: Wang Chen
    Signed-off-by: David S. Miller

    Wang Chen
     

04 Nov, 2008

1 commit


25 Sep, 2008

1 commit


29 Mar, 2008

1 commit

  • The functions time_before, time_before_eq, time_after, and time_after_eq are
    more robust for comparing jiffies against other values.

    So use the time_after() macro, defined in linux/jiffies.h, which deals with
    wrapping correctly.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: S.Caglar Onur
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    S.Caglar Onur
     

17 Mar, 2008

1 commit


06 Mar, 2008

1 commit


13 Nov, 2007

1 commit


11 Oct, 2007

3 commits


25 May, 2007

1 commit


26 Apr, 2007

4 commits


18 Feb, 2007

1 commit

  • The modifications and bug fixes noted below were done by Realtime Control
    Works and Contemporary Control Systems, Inc, Jan 2005. They were
    incorporated into the 2.6 kernel by Jeff Morrow of Sierra Analytics, Feb
    2007.

    The changes have been tested on a Contemporary Controls PCI20U-4000.

    Summary of changes:

    Arc-rawmode.c:
    rx():
    - Fixed error in received packet lengths; 256 byte packets were
    being received as 257 bytes packets.

    prepare_tx():
    - Fixed error in transmit length calcs; 257 byte packets were being
    transmitted as 260 byte packets.

    com20020.c:
    com20020_check():
    - We now load the SETUP2 register if the 'clockm' parameter is
    non-zero, instead of checking for ARC_CAN_10MBIT. The user is
    now responsible for whether or not SETUP2 is loaded. If the
    clock multiplier is non-zero, this means that the user wants a
    baud rate greater than 2.5Mbps. This is not possible unless the
    SETUP2 register is present (COM20020D, or COM20022). So, we're
    relying on the user to be smart about what kind of chip he's
    dealing with...

    com20020-pci.c
    - Added several entries to com20020pci_id_table[].

    Signed-off-by: Jeff Morrow
    Cc: "David S. Miller"
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Jeff Morrow
     

13 Feb, 2007

1 commit

  • Need to export com20020 symbols for com20020_cs also.

    WARNING: "com20020_found" [drivers/net/pcmcia/com20020_cs.ko] undefined!
    WARNING: "com20020_check" [drivers/net/pcmcia/com20020_cs.ko] undefined!

    Signed-off-by: Randy Dunlap
    Cc: Esben Nielsen
    Cc: Jeff Garzik
    Cc: Dominik Brodowski
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap