14 Oct, 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
     

14 Apr, 2009

1 commit


03 Feb, 2009

2 commits


22 Jan, 2009

1 commit

  • Following the removal of the unused struct net_device * parameter from
    the NAPI functions named *netif_rx_* in commit 908a7a1, they are
    exactly equivalent to the corresponding *napi_* functions and are
    therefore redundant.

    Signed-off-by: Ben Hutchings
    Acked-by: Neil Horman
    Signed-off-by: David S. Miller

    Ben Hutchings
     

23 Dec, 2008

1 commit

  • When the napi api was changed to separate its 1:1 binding to the net_device
    struct, the netif_rx_[prep|schedule|complete] api failed to remove the now
    vestigual net_device structure parameter. This patch cleans up that api by
    properly removing it..

    Signed-off-by: Neil Horman
    Signed-off-by: David S. Miller

    Neil Horman
     

04 Nov, 2008

1 commit


28 Oct, 2008

1 commit

  • This converts pretty much everything to print_mac. There were
    a few things that had conflicts which I have just dropped for
    now, no harm done.

    I've built an allyesconfig with this and looked at the files
    that weren't built very carefully, but it's a huge patch.

    Signed-off-by: Johannes Berg
    Signed-off-by: David S. Miller

    Johannes Berg
     

25 Sep, 2008

1 commit


28 Jun, 2008

1 commit


31 May, 2008

1 commit

  • Use netdev_alloc_skb for rx buffer allocation. This sets skb->dev
    and can be overriden for NUMA machines.

    This device is PowerPC only, so not tested or compiled.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     

13 May, 2008

1 commit


25 Apr, 2008

1 commit

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable network
    platform drivers, to re-enable auto loading.

    NOTE: didn't change drivers/net/fs_enet/fs_enet-main.c "old binding" support.
    That looks problematic in the first place (it even uses the ancient "struct
    device_driver" binding scheme for platform_bus!) and I suspect it will vanish
    soonish when arch/powerpc rules the world. Also, drivers/net/ne.c would have
    needed more thought to sort out.

    [akpm@linux-foundation.org: fix sgiseeq.c]
    [dbrownell@users.sourceforge.net: more drivers, registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Cc: Scott Wood
    Cc: Vitaly Bordug
    Cc: Dale Farnsworth
    Cc: Ben Dooks
    Cc: Ralf Baechle
    Cc: Andrew Victor
    Cc: Bryan Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Kay Sievers
     

12 Feb, 2008

5 commits


20 Oct, 2007

1 commit

  • Fix build break:

    drivers/net/tsi108_eth.c: In function 'tsi108_init_one':
    drivers/net/tsi108_eth.c:1633: error: expected ')' before 'dev'
    drivers/net/tsi108_eth.c:1633: warning: too few arguments for format
    make[2]: *** [drivers/net/tsi108_eth.o] Error 1

    Signed-off-by: Olof Johansson
    Signed-off-by: Jeff Garzik

    Olof Johansson
     

11 Oct, 2007

4 commits

  • This is nicer than the MAC_FMT stuff.

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

    Joe Perches
     
  • It's been a useless no-op for long enough in 2.6 so I figured it's time to
    remove it. The number of people that could object because they're
    maintaining unified 2.4 and 2.6 drivers is probably rather small.

    [ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]

    Signed-off-by: Ralf Baechle
    Signed-off-by: Jeff Garzik
    Signed-off-by: David S. Miller

    Ralf Baechle
     
  • This patch cleans up duplicate includes in
    drivers/net/

    Signed-off-by: Jesper Juhl
    Acked-by: "John W. Linville"
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Jesper Juhl
     
  • Several devices have multiple independant RX queues per net
    device, and some have a single interrupt doorbell for several
    queues.

    In either case, it's easier to support layouts like that if the
    structure representing the poll is independant from the net
    device itself.

    The signature of the ->poll() call back goes from:

    int foo_poll(struct net_device *dev, int *budget)

    to

    int foo_poll(struct napi_struct *napi, int budget)

    The caller is returned the number of RX packets processed (or
    the number of "NAPI credits" consumed if you want to get
    abstract). The callee no longer messes around bumping
    dev->quota, *budget, etc. because that is all handled in the
    caller upon return.

    The napi_struct is to be embedded in the device driver private data
    structures.

    Furthermore, it is the driver's responsibility to disable all NAPI
    instances in it's ->stop() device close handler. Since the
    napi_struct is privatized into the driver's private data structures,
    only the driver knows how to get at all of the napi_struct instances
    it may have per-device.

    With lots of help and suggestions from Rusty Russell, Roland Dreier,
    Michael Chan, Jeff Garzik, and Jamal Hadi Salim.

    Bug fixes from Thomas Graf, Roland Dreier, Peter Zijlstra,
    Joseph Fannin, Scott Wood, Hans J. Koch, and Michael Chan.

    [ Ported to current tree and all drivers converted. Integrated
    Stephen's follow-on kerneldoc additions, and restored poll_list
    handling to the old style to fix mutual exclusion issues. -DaveM ]

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     

08 May, 2007

1 commit

  • Add a phy_type field to the tsi108 ethernet structures to indicate which PHY
    is used on a board. This is derived from the "compatible" property in the
    ethernet-phy node of the device tree. The default remains the MV88E PHY.

    Also, convert the setup code to use of_get_mac_address instead of hard coding
    a lookup for the "address" property in the ethernet node.

    Signed-off-by: Josh Boyer
    Acked-by: Olof Johansson
    Signed-off-by: Paul Mackerras

    Josh Boyer
     

26 Apr, 2007

1 commit


15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

02 Dec, 2006

1 commit

  • Add tsi108/9 on chip Ethernet controller driver support.

    The driver code collects the feedback of previous posting form the mailing
    list and gives the update.

    MPC7448HPC2 platform in arch/powerpc uses tsi108 bridge.

    The following is a brief description of the Ethernet controller:

    The Tsi108/9 Ethernet Controller connects Switch Fabric to two independent
    Gigabit Ethernet ports,E0 and E1. It uses a single Management interface to
    manage the two physical connection devices (PHYs). Each Ethernet port has
    its own statistics monitor that tracks and reports key interface
    statistics. Each port supports a 256-entry hash table for address
    filtering. In addition, each port is bridged to the Switch Fabric through
    a 2-Kbyte transmit FIFO and a 4-Kbyte Receive FIFO.

    Each Ethernet port also has a pair of internal Ethernet DMA channels to
    support the transmit and receive data flows. The Ethernet DMA channels use
    descriptors set up in memory, the memory map of the device, and access via
    the Switch Fabric. The Ethernet Controller’s DMA arbiter handles
    arbitration for the Switch Fabric. The Controller also has a register bus
    interface for register accesses and status monitor control.

    The PMD (Physical Media Device) interface operates in MII, GMII, or TBI
    modes. The MII mode is used for connecting with 10 or 100 Mbit/s PMDs.
    The GMII and TBI modes are used to connect with Gigabit PMDs. Internal
    data flows to and from the Ethernet Controller through the Switch Fabric.
    Each

    Ethernet port uses its transmit and receive DMA channels to manage data
    flows through buffer descriptors that are predefined by the system (the
    descriptors can exist anywhere in the system memory map). These
    descriptors are data structures that point to buffers filled with data
    ready to transmit over Ethernet, or they point to empty buffers ready to
    receive data from Ethernet.

    Signed-off-by: Alexandre Bounine
    Signed-off-by: Roy Zang
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Zang Roy-r61911