Skip to content
Snippets Groups Projects
  1. Feb 27, 2010
  2. Apr 28, 2009
  3. Sep 24, 2008
  4. Jul 16, 2008
  5. Jan 28, 2008
  6. Oct 17, 2007
    • Scott Wood's avatar
      fs_enet: Update for API changes · f860f49e
      Scott Wood authored
      
      This driver was recently broken by several changes for which this
      driver was not (or was improperly) updated:
      
      1. SET_MODULE_OWNER() was removed.
      2. netif_napi_add() was only being called when building with
      the old CPM binding.
      3. The received/budget test was backwards.
      4. to_net_dev() was wrong -- the device struct embedded in
      the net_device struct is not the same as the of_platform
      device in the private struct.
      5. napi_disable/napi_enable was being called even when napi
      was not being used.
      
      These changes have been fixed, and napi is now on by default.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      f860f49e
  7. Oct 10, 2007
    • Scott Wood's avatar
      fs_enet: sparse fixes · 31a5bb04
      Scott Wood authored
      
      Mostly a bunch of __iomem annotations.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      31a5bb04
    • Scott Wood's avatar
      fs_enet: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set. · 976de6a8
      Scott Wood authored
      
      The existing OF glue code was crufty and broken.  Rather than fix it, it
      will be removed, and the ethernet driver now talks to the device tree
      directly.
      
      The old, non-CONFIG_PPC_CPM_NEW_BINDING code can go away once CPM
      platforms are dropped from arch/ppc (which will hopefully be soon), and
      existing arch/powerpc boards that I wasn't able to test on for this
      patchset get converted (which should be even sooner).
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      976de6a8
    • Scott Wood's avatar
      fs_enet: Align receive buffers. · 0d0d9c15
      Scott Wood authored
      
      At least some hardware driven by this driver needs receive buffers
      to be aligned on a 16-byte boundary.  This usually happens by chance,
      but it breaks if slab debugging is enabled.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      0d0d9c15
    • Scott Wood's avatar
      fs_enet: Whitespace cleanup. · 0fb300fa
      Scott Wood authored
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      0fb300fa
    • Stephen Hemminger's avatar
      [NET]: Make NAPI polling independent of struct net_device objects. · bea3348e
      Stephen Hemminger authored
      
      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: default avatarStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bea3348e
  8. Feb 06, 2007
    • Vitaly Bordug's avatar
      [POWERPC] Fix kernel build errors for mpc8272ads and mpc8560ads · 5427828e
      Vitaly Bordug authored
      
      Recent update of asm-powerpc/io.h caused cpm-related stuff to break in the
      current kernel. Current patch fixes it, as well as other inconsistencies
      expressed, that do not permit targets from working properly:
      
      - Updated dts with a chosen node with interrupt controller,
      - fixed messed device IDs among CPM2 SoC devices,
      - corrected odd header name and fixed type in defines,
      - Added 82xx subdir to the powerpc/platforms Makefile, missed during
        initial commit,
      - new solely-powerpc header file for 8260 family (was using one from
        arch/ppc, this one cleaned up from the extra stuff), in fact for now
        a placeholder to get the board-specific includes for stuff not yet
        capable to live with devicetree peeks only
      - Fixed couple of misprints in reference mpc8272 dts.
      
      Signed-off-by: default avatarVitaly Bordug <vbordug@ru.mvista.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      5427828e
  9. Sep 29, 2006
  10. Aug 19, 2006
  11. Nov 09, 2005
    • Olaf Hering's avatar
      [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason · 733482e4
      Olaf Hering authored
      
      This patch removes almost all inclusions of linux/version.h.  The 3
      #defines are unused in most of the touched files.
      
      A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is
      unfortunatly in linux/version.h.
      
      There are also lots of #ifdef for long obsolete kernels, this was not
      touched.  In a few places, the linux/version.h include was move to where
      the LINUX_VERSION_CODE was used.
      
      quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'`
      
      search pattern:
      /UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).h
      
      Signed-off-by: default avatarOlaf Hering <olh@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      733482e4
  12. Oct 28, 2005
Loading