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
     

09 Jan, 2008

1 commit

  • This was missed when commit e2ac455a18806b31c2d0da0a51d8740af5010b7a
    fixed the compile errors in drivers/net/netx-eth.c caused by
    commit 09f75cd7bf13720738e6a196cc0107ce9a5bd5a0.

    Signed-off-by: Adrian Bunk
    Signed-off-by: David S. Miller

    Adrian Bunk
     

14 Nov, 2007

1 commit

  • Reported by rmk from kautobuild output:

    drivers/net/netx-eth.c: In function 'netx_eth_hard_start_xmit':
    drivers/net/netx-eth.c:131: error: 'dev' undeclared (first use in this function)
    drivers/net/netx-eth.c:131: error: (Each undeclared identifier is reported only once
    drivers/net/netx-eth.c:131: error: for each function it appears in.)
    drivers/net/netx-eth.c: In function 'netx_eth_receive':
    drivers/net/netx-eth.c:158: error: 'dev' undeclared (first use in this function)

    Signed-off-by: David S. Miller

    David S. Miller
     

11 Oct, 2007

2 commits

  • We now have struct net_device_stats embedded in struct net_device,
    and the default ->get_stats() hook does the obvious thing for us.

    Run through drivers/net/* and remove the driver-local storage of
    statistics, and driver-local ->get_stats() hook where applicable.

    This was just the low-hanging fruit in drivers/net; plenty more drivers
    remain to be updated.

    [ Resolved conflicts with napi_struct changes and fix sunqe build
    regression... -DaveM ]

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

    Jeff Garzik
     
  • 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
     

26 Apr, 2007

1 commit


05 Oct, 2006

1 commit

  • Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
    of passing regs around manually through all ~1800 interrupt handlers in the
    Linux kernel.

    The regs pointer is used in few places, but it potentially costs both stack
    space and code to pass it around. On the FRV arch, removing the regs parameter
    from all the genirq function results in a 20% speed up of the IRQ exit path
    (ie: from leaving timer_interrupt() to leaving do_IRQ()).

    Where appropriate, an arch may override the generic storage facility and do
    something different with the variable. On FRV, for instance, the address is
    maintained in GR28 at all times inside the kernel as part of general exception
    handling.

    Having looked over the code, it appears that the parameter may be handed down
    through up to twenty or so layers of functions. Consider a USB character
    device attached to a USB hub, attached to a USB controller that posts its
    interrupts through a cascaded auxiliary interrupt controller. A character
    device driver may want to pass regs to the sysrq handler through the input
    layer which adds another few layers of parameter passing.

    I've build this code with allyesconfig for x86_64 and i386. I've runtested the
    main part of the code on FRV and i386, though I can't test most of the drivers.
    I've also done partial conversion for powerpc and MIPS - these at least compile
    with minimal configurations.

    This will affect all archs. Mostly the changes should be relatively easy.
    Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

    struct pt_regs *old_regs = set_irq_regs(regs);

    And put the old one back at the end:

    set_irq_regs(old_regs);

    Don't pass regs through to generic_handle_irq() or __do_IRQ().

    In timer_interrupt(), this sort of change will be necessary:

    - update_process_times(user_mode(regs));
    - profile_tick(CPU_PROFILING, regs);
    + update_process_times(user_mode(get_irq_regs()));
    + profile_tick(CPU_PROFILING);

    I'd like to move update_process_times()'s use of get_irq_regs() into itself,
    except that i386, alone of the archs, uses something other than user_mode().

    Some notes on the interrupt handling in the drivers:

    (*) input_dev() is now gone entirely. The regs pointer is no longer stored in
    the input_dev struct.

    (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
    something different depending on whether it's been supplied with a regs
    pointer or not.

    (*) Various IRQ handler function pointers have been moved to type
    irq_handler_t.

    Signed-Off-By: David Howells
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

15 Aug, 2006

1 commit


03 Jul, 2006

1 commit


23 Jun, 2006

1 commit

  • This is a patch for the Hilscher netx builtin ethernet ports. The
    netx board support was merged into 2.6.17-git2.
    The netx is a arm926 based SoC.

    Signed-off-by: Robert Schwebel
    Signed-off-by: Sascha Hauer

    --
    drivers/net/Kconfig | 11
    drivers/net/Makefile | 1
    drivers/net/netx-eth.c | 516 ++++++++++++++++++++++++++++++++++++++++
    include/asm-arm/arch-netx/eth.h | 27 ++
    4 files changed, 555 insertions(+)
    Signed-off-by: Jeff Garzik

    Sascha Hauer