1. 25 9月, 2008 2 次提交
    • D
      ne.c: fix rmmod, platform driver improvements · fbb80230
      David Fries 提交于
      Removing the module would cause a kernel oops as platform_driver_probe
      failed to detect a device and unregistered the platform driver on module
      init, and cleanup_module would unregister the already unregistered driver.
      The suspend and resume functions weren't being called.
      
      platform_driver support was added earlier, but without any
      platform_device_register* calls I don't think it was being used.  Now all
      devices are registered using platform_device_register_simple and pointers
      are kept to unregister the ones that the probe failed for or unregister
      all devices on module shutdown.  init_module no longer calls ne_init to
      reduce confusion (and multiple unregister paths that caused the rmmod
      oops).  With the devices now registered they are added to the platform
      driver and get suspend and resume events.
      
      netif_device_detach(dev) was added before unregister_netdev(dev) when
      removing the region as occationally I would see a race condition where the
      device was still being used in unregister_netdev.
      Signed-off-by: NDavid Fries <david@fries.net>
      Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
      Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      fbb80230
    • D
      [netdrvr] ne: Fix suspend and resume for ISA PnP cards. · 539b06fc
      David Fries 提交于
      A call to pnp_stop_dev and pnp_start_dev now shuts down and
      initializes plug and play devices for suspend and resume.
      Signed-off-by: NDavid Fries <david@fries.net>
      Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
      Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      539b06fc
  2. 14 8月, 2008 1 次提交
  3. 31 7月, 2008 1 次提交
  4. 23 7月, 2008 1 次提交
  5. 04 7月, 2008 1 次提交
  6. 11 10月, 2007 3 次提交
  7. 08 5月, 2007 4 次提交
  8. 05 12月, 2006 1 次提交
  9. 14 9月, 2006 1 次提交
  10. 12 6月, 2006 1 次提交
    • R
      [PATCH] Section mismatch in drivers/net/ne.o during modpost · 5d1f16c6
      Randy.Dunlap 提交于
      On Sat, 10 Jun 2006 14:11:42 +0200 (MEST) Mikael Pettersson wrote:
      
      > While compiling 2.6.17-rc6 for a 486 with an NE2000 ISA ethernet card, I got:
      >
      > WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x158) and 'ne_block_input'
      > WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x176) and 'ne_block_input'
      > WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x183) and 'ne_block_input'
      > WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x1ea) and 'ne_block_input'
      > WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x251) and 'ne_block_input'
      > WARNING: drivers/net/ne.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x266) and 'ne_block_input'
      > WARNING: drivers/net/ne.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x29b) and 'ne_block_input'
      >
      > Not sure how serious this is; the driver seems to work fine later on.
      
      Doesn't look serious.  init_module() is not __init, but it calls
      some __init functions and touches some __initdata.
      
      BTW, I would be happy to see some consistent results from modpost
      section checking.  I don't see all of these warnings (I see only 1)
      when using gcc 3.3.6.  What gcc version are you using?
      Does that matter?  (not directed at anyone in particular)
      
      Patch below fixes it for me.  Please test/report.
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      5d1f16c6
  11. 09 5月, 2006 1 次提交
  12. 21 4月, 2006 1 次提交
  13. 17 1月, 2006 1 次提交
  14. 09 1月, 2006 1 次提交
    • D
      [PATCH] fix a few "warning: 'cleanup_card' defined but not used" · 64916f1e
      Denis Vlasenko 提交于
      These warnings are emitted if non-modular network drivers are built.
      Fixes just move cleanup_card() definitions into #ifdef MODULE region.
      
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/wd.c:131: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/3c503.c:152: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/ne.c:216: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/hp.c:106: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/hp-plus.c:142: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/smc-ultra.c:172: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/e2100.c:144: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/es3210.c:159: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/lne390.c:149: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/lance.c:313: warning: 'cleanup_card' defined but not used
      /.1/usr/srcdevel/kernel/linux-2.6.15-rc7.src/drivers/net/ac3200.c:127: warning: 'cleanup_card' defined but not used
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      64916f1e
  15. 19 10月, 2005 1 次提交
  16. 28 7月, 2005 1 次提交
  17. 13 5月, 2005 1 次提交
  18. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4