1. 01 2月, 2012 1 次提交
  2. 11 1月, 2012 1 次提交
  3. 04 1月, 2012 1 次提交
    • J
      net/smsc911x: Check if PHY is in operational mode before software reset · 6386994e
      Javier Martinez Canillas 提交于
      SMSC LAN generation 4 chips integrate an IEEE 802.3 ethernet physical layer.
      The PHY driver for this integrated chip enable an energy detect power-down mode.
      When the PHY is in a power-down mode, it prevents the MAC portion chip to be
      software reseted.
      
      That means that if we compile the kernel with the configuration option SMSC_PHY
      enabled and try to bring the network interface up without an cable plug-ed the
      PHY will be in a low power mode and the software reset will fail returning -EIO
      to user-space:
      
      root@igep00x0:~# ifconfig eth0 up
      ifconfig: SIOCSIFFLAGS: Input/output error
      
      This patch disable the energy detect power-down mode before trying to software
      reset the LAN chip and re-enables after it was reseted successfully.
      Signed-off-by: NJavier Martinez Canillas <javier@dowhile0.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6386994e
  4. 30 11月, 2011 1 次提交
    • R
      net/smsc911x: Add regulator support · c7e963f6
      Robert Marklund 提交于
      Add some basic regulator support for the power pins, as needed
      by the ST-Ericsson Snowball platform that powers up the SMSC911
      chip using an external regulator.
      
      Platforms that use regulators and the smsc911x and have no defined
      regulator for the smsc911x and claim complete regulator
      constraints with no dummy regulators will need to provide it, for
      example using a fixed voltage regulator. It appears that this may
      affect (apart from Ux500 Snowball) possibly these archs/machines
      that from some grep:s appear to define both CONFIG_SMSC911X and
      CONFIG_REGULATOR:
      
      - ARM Freescale mx3 and OMAP 2 plus, Raumfeld machines
      - Blackfin
      - Super-H
      
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: linux-sh@vger.kernel.org
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: linux-omap@vger.kernel.org
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: uclinux-dist-devel@blackfin.uclinux.org
      Reviewed-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NRobert Marklund <robert.marklund@stericsson.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c7e963f6
  5. 14 11月, 2011 1 次提交
  6. 22 9月, 2011 1 次提交
  7. 18 8月, 2011 1 次提交
  8. 11 8月, 2011 1 次提交
    • J
      smsc: Move the SMC (SMSC) drivers · ae150435
      Jeff Kirsher 提交于
      Moves the SMC (SMSC) drivers into drivers/net/ethernet/smsc/ and the
      necessary Kconfig and Makefile changes.  Also did some cleanup
      of NET_VENDOR_SMC Kconfig tag for the 8390 based drivers.
      
      CC: Nicolas Pitre <nico@fluxnic.net>
      CC: Donald Becker <becker@scyld.com>
      CC: Erik Stahlman <erik@vt.edu>
      CC: Dustin McIntire <dustin@sensoria.com>
      CC: Steve Glendinning <steve.glendinning@smsc.com>
      CC: David Hinds <dahinds@users.sourceforge.net>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      ae150435
  9. 02 8月, 2011 1 次提交
  10. 21 6月, 2011 1 次提交
  11. 07 6月, 2011 1 次提交
  12. 14 4月, 2011 1 次提交
  13. 07 4月, 2011 1 次提交
    • E
      smsc911x: fix mac_lock acquision before calling smsc911x_mac_read · 35a67edf
      Enric Balletbo i Serra 提交于
      When SMSC911X_SAVE_MAC_ADDRESS flag is enabled the driver calls
      smsc911x_mac_read and smsc911x_mac_read function without acquiring mac_lock
      spinlock
      
      This patch fixes following warning
      
      smsc911x: Driver version 2008-10-21.
      ------------[ cut here ]------------
      WARNING: at drivers/net/smsc911x.c:261 smsc911x_mac_read+0x24/0x220()
      Modules linked in:
      [<c0060858>] (unwind_backtrace+0x0/0xe0) from [<c009322c>] (warn_slowpath_common+0x4c/0x64)
      [<c009322c>] (warn_slowpath_common+0x4c/0x64) from [<c009325c>] (warn_slowpath_null+0x18/0x1c)
      [<c009325c>] (warn_slowpath_null+0x18/0x1c) from [<c0324bec>] (smsc911x_mac_read+0x24/0x220)
      [<c0324bec>] (smsc911x_mac_read+0x24/0x220) from [<c0434788>] (smsc911x_read_mac_address+0x18/0x6c)
      [<c0434788>] (smsc911x_read_mac_address+0x18/0x6c) from [<c0434c74>] (smsc911x_drv_probe+0x498/0x1788)
      [<c0434c74>] (smsc911x_drv_probe+0x498/0x1788) from [<c02d3e54>] (platform_drv_probe+0x14/0x18)
      [<c02d3e54>] (platform_drv_probe+0x14/0x18) from [<c02d2d60>] (driver_probe_device+0xc8/0x184)
      [<c02d2d60>] (driver_probe_device+0xc8/0x184) from [<c02d2e84>] (__driver_attach+0x68/0x8c)
      [<c02d2e84>] (__driver_attach+0x68/0x8c) from [<c02d1fc8>] (bus_for_each_dev+0x48/0x74)
      [<c02d1fc8>] (bus_for_each_dev+0x48/0x74) from [<c02d2660>] (bus_add_driver+0x9c/0x228)
      [<c02d2660>] (bus_add_driver+0x9c/0x228) from [<c02d3598>] (driver_register+0xa0/0x124)
      [<c02d3598>] (driver_register+0xa0/0x124) from [<c0050668>] (do_one_initcall+0x94/0x168)
      [<c0050668>] (do_one_initcall+0x94/0x168) from [<c0008984>] (kernel_init+0xa0/0x154)
      [<c0008984>] (kernel_init+0xa0/0x154) from [<c005afac>] (kernel_thread_exit+0x0/0x8)
      ---[ end trace 2c931a35b7885770 ]---
      Signed-off-by: NEnric Balletbo i Serra <eballetbo@iseebcn.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      35a67edf
  14. 31 3月, 2011 2 次提交
  15. 16 3月, 2011 1 次提交
  16. 08 3月, 2011 1 次提交
  17. 28 10月, 2010 1 次提交
  18. 27 9月, 2010 1 次提交
  19. 03 9月, 2010 1 次提交
  20. 20 7月, 2010 1 次提交
  21. 19 7月, 2010 1 次提交
  22. 10 5月, 2010 1 次提交
  23. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  24. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit 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: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  25. 16 3月, 2010 1 次提交
  26. 19 2月, 2010 1 次提交
  27. 18 2月, 2010 1 次提交
  28. 13 2月, 2010 1 次提交
  29. 16 12月, 2009 1 次提交
  30. 04 12月, 2009 2 次提交
  31. 16 11月, 2009 1 次提交
  32. 14 10月, 2009 1 次提交
  33. 03 9月, 2009 1 次提交
  34. 07 8月, 2009 1 次提交
  35. 13 7月, 2009 1 次提交
  36. 06 7月, 2009 1 次提交
    • J
      drivers/net/smsc911x.c: Fix resource size off by 1 error · 39424539
      Julia Lawall 提交于
      The call resource_size(res) returns res->end - res->start + 1 and thus the
      second change is semantics-preserving.  res_size is then used as the second
      argument of a call to request_mem_region, and the memory allocated by this
      call appears to be the same as what is released in the two calls to
      release_mem_region.  So the size argument for those calls should be
      resource_size(size) as well.  Alternatively, in the second call to
      release_mem_region, the second argument could be res_size, as that variable
      has already been initialized at the point of this call.
      
      The problem was found using the following semantic patch:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@
      struct resource *res;
      @@
      
      - (res->end - res->start) + 1
      + resource_size(res)
      
      @@
      struct resource *res;
      @@
      
      - res->end - res->start
      + BAD(resource_size(res))
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      39424539
  37. 08 6月, 2009 1 次提交
  38. 08 5月, 2009 1 次提交