1. 19 1月, 2013 1 次提交
    • F
      smsc: smc911x: Fix sparse warnings · 6b80778d
      Fabio Estevam 提交于
      ioremap returns 'void __iomem *' type.
      
      Fix the following build warnings:
      
      drivers/net/ethernet/smsc/smc911x.c:2079:14: warning: incorrect type in assignment (different address spaces)
      drivers/net/ethernet/smsc/smc911x.c:2079:14:    expected unsigned int *addr
      drivers/net/ethernet/smsc/smc911x.c:2079:14:    got void [noderef] <asn:2>*
      drivers/net/ethernet/smsc/smc911x.c:2086:18: warning: incorrect type in assignment (different address spaces)
      drivers/net/ethernet/smsc/smc911x.c:2086:18:    expected void [noderef] <asn:2>*base
      drivers/net/ethernet/smsc/smc911x.c:2086:18:    got unsigned int *addr
      drivers/net/ethernet/smsc/smc911x.c:2091:25: warning: incorrect type in argument 1 (different address spaces)
      drivers/net/ethernet/smsc/smc911x.c:2091:25:    expected void volatile [noderef] <asn:2>*addr
      drivers/net/ethernet/smsc/smc911x.c:2091:25:    got unsigned int *addr
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b80778d
  2. 07 1月, 2013 1 次提交
  3. 04 12月, 2012 1 次提交
  4. 20 11月, 2012 1 次提交
  5. 11 7月, 2012 1 次提交
  6. 09 2月, 2012 1 次提交
  7. 01 2月, 2012 1 次提交
  8. 29 11月, 2011 1 次提交
    • A
      net/ethernet: convert drivers/net/ethernet/* to use module_platform_driver() · db62f684
      Axel Lin 提交于
      This patch converts the drivers in drivers/net/ethernet/* to use the
      module_platform_driver() macro which makes the code smaller and a bit
      simpler.
      
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Pantelis Antoniou <pantelis.antoniou@gmail.com>
      Cc: Vitaly Bordug <vbordug@ru.mvista.com>
      Cc: Wan ZongShun <mcuos.com@gmail.com>
      Cc: Nicolas Pitre <nico@fluxnic.net>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Marc Kleine-Budde <mkl@pengutronix.de>
      Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      Cc: Jiri Pirko <jpirko@redhat.com>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Tobias Klauser <tklauser@distanz.ch>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Richard Cochran <richard.cochran@omicron.at>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Sebastian Poehn <sebastian.poehn@belden.com>
      Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
      Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Acked-by: NWan ZongShun <mcuos.com@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      db62f684
  9. 18 8月, 2011 1 次提交
  10. 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
  11. 09 7月, 2011 1 次提交
  12. 30 4月, 2011 1 次提交
    • D
      ethtool: cosmetic: Use ethtool ethtool_cmd_speed API · 70739497
      David Decotigny 提交于
      This updates the network drivers so that they don't access the
      ethtool_cmd::speed field directly, but use ethtool_cmd_speed()
      instead.
      
      For most of the drivers, these changes are purely cosmetic and don't
      fix any problem, such as for those 1GbE/10GbE drivers that indirectly
      call their own ethtool get_settings()/mii_ethtool_gset(). The changes
      are meant to enforce code consistency and provide robustness with
      future larger throughputs, at the expense of a few CPU cycles for each
      ethtool operation.
      
      All drivers compiled with make allyesconfig ion x86_64 have been
      updated.
      
      Tested: make allyesconfig on x86_64 + e1000e/bnx2x work
      Signed-off-by: NDavid Decotigny <decot@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      70739497
  13. 10 5月, 2010 1 次提交
  14. 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
  15. 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
  16. 25 3月, 2010 1 次提交
  17. 26 2月, 2010 1 次提交
  18. 13 2月, 2010 1 次提交
  19. 30 12月, 2009 1 次提交
  20. 19 11月, 2009 1 次提交
  21. 06 7月, 2009 1 次提交
  22. 16 4月, 2009 1 次提交
  23. 25 3月, 2009 1 次提交
  24. 03 2月, 2009 1 次提交
  25. 27 1月, 2009 1 次提交
  26. 04 12月, 2008 1 次提交
  27. 01 12月, 2008 1 次提交
  28. 20 11月, 2008 1 次提交
  29. 11 11月, 2008 1 次提交
    • D
      [netdrvr] smc911x: fix for driver resume (and compilation warning) · 347c8d83
      Dasgupta, Romit 提交于
      I am trying out suspend, resume on an OMAP3 based board. What I see
      during resume is that the SMC911x driver resume routing gets stuck
      after trying to transmit the packet out of the controller. Some debug
      messages below:
      
      --> smc911x_drv_resume
      eth0: --> smc911x_reset
      eth0: smc911x_reset timeout waiting for PM restore
      eth0: --> smc911x_enable
      eth0: --> smc911x_phy_configure()
      eth0: --> smc911x_phy_reset()
      eth0: phy caps=0x782d
      eth0: phy advertised caps=0x0de1
      eth0: --> smc911x_phy_check_media
      smc911x_phy_read: phyaddr=0x1, phyreg=0x01, phydata=0x7809
      smc911x_phy_read: phyaddr=0x1, phyreg=0x01, phydata=0x7809
      eth0: link down
      Restarting tasks ... eth0: --> smc911x_hard_start_xmit
      eth0: --> smc911x_hardware_send_pkt
      eth0: --> smc911x_hard_start_xmit
      eth0: --> smc911x_hardware_send_pkt
      eth0: --> smc911x_hard_start_xmit
      eth0: --> smc911x_hardware_send_pkt
      nfs: server 172.24.190.217 not responding, still trying
      nfs: server 172.24.190.217 not responding, still trying
      
      The following change makes it work fine: (The change within
      smc911x_drv_probe function was to get rid of a compilation warning).
      Signed-off-by: NRomit Dasgupta <romit@ti.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      347c8d83
  30. 04 11月, 2008 1 次提交
  31. 02 11月, 2008 1 次提交
    • W
      drivers/net/smc911x.c: Fix lockdep warning on xmit. · 70d9d158
      Will Newton 提交于
      dev_kfree_skb should not be called with irqs disabled, use dev_kfree_skb_irq
      instead. The warning caused looks like this:
      
      ======================================================
      [ INFO: hard-safe -> hard-unsafe lock order detected ]
      2.6.28-rc1 #273
      ------------------------------------------------------
      swapper/0 [HC0[0]:SC1[2]:HE0:SE0] is trying to acquire:
       (clock-AF_INET){-..+}, at: [<4015c17c>] _sock_def_write_space+0x28/0xd8
      
      and this task is already holding:
       (&lp->lock){++..}, at: [<4013f230>] _smc911x_hard_start_xmit+0x30/0x4b8
      which would create a new lock dependency:
       (&lp->lock){++..} -> (clock-AF_INET){-..+}
      Signed-off-by: NWill Newton <will.newton@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      70d9d158
  32. 22 10月, 2008 3 次提交
  33. 13 10月, 2008 1 次提交
  34. 12 10月, 2008 1 次提交
  35. 25 9月, 2008 2 次提交
  36. 12 6月, 2008 2 次提交
    • D
      net: Eliminate flush_scheduled_work() calls while RTNL is held. · 4bb073c0
      David S. Miller 提交于
      If the RTNL is held when we invoke flush_scheduled_work() we could
      deadlock.  One such case is linkwatch, it is a work struct which tries
      to grab the RTNL semaphore.
      
      The most common case are net driver ->stop() methods.  The
      simplest conversion is to instead use cancel_{delayed_}work_sync()
      explicitly on the various work struct the driver uses.
      
      This is an OK transformation because these work structs are doing
      things like resetting the chip, restarting link negotiation, and so
      forth.  And if we're bringing down the device, we're about to turn the
      chip off and reset it anways.  So if we cancel a pending work event,
      that's fine here.
      
      Some drivers were working around this deadlock by using a msleep()
      polling loop of some sort, and those cases are converted to instead
      use cancel_{delayed_}work_sync() as well.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4bb073c0
    • M
      smc911x: introduce platform data flags · 12c03f59
      Magnus Damm 提交于
      This patch adds a new header file for platform data information
      together with code that adds run time bus width and irq flag support.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      12c03f59