1. 29 1月, 2008 1 次提交
    • G
      gianfar driver: eliminate compiler warnings and unnecessary macros · 35a84fdc
      Grant Likely 提交于
      This patch eliminates the warning of unused return values when the driver
      registers it sysfs files.  Now the driver will print an error if it is
      unable to register the sysfs files.
      
      It also eliminates the macros used to wrap the DEVICE_ATTR macro and the
      device_create_file function call.  The macros don't reduce the number of
      lines of source code in the file and the name munging makes is so that
      cscope and friends don't see the references to the functions.  It's better
      to just call the kernel API directly.
      
      While we're at it, the DEVICE_ATTR instances have been moved down to
      be grouped with the functions they depend on.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      35a84fdc
  2. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  3. 13 2月, 2007 1 次提交
  4. 14 9月, 2006 1 次提交
  5. 01 7月, 2006 1 次提交
  6. 21 4月, 2006 1 次提交
    • A
      [PATCH] Fix locking in gianfar · fef6108d
      Andy Fleming 提交于
      This patch fixes several bugs in the gianfar driver, including a major one
      where spinlocks were horribly broken:
      
      * Split gianfar locks into two types: TX and RX
      * Made it so gfar_start() now clears RHALT
      * Fixed a bug where calling gfar_start_xmit() with interrupts off would
      corrupt the interrupt state
      * Fixed a bug where a frame could potentially arrive, and never be handled
      (if no more frames arrived
      * Fixed a bug where the rx_work_limit would never be observed by the rx
      completion code
      * Fixed a bug where the interrupt handlers were not actually protected by
      their spinlocks
      Signed-off-by: NAndy Fleming <afleming@freescale.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      fef6108d
  7. 11 1月, 2006 1 次提交
  8. 19 11月, 2005 1 次提交
    • A
      [PATCH] Gianfar update and sysfs support · 7f7f5316
      Andy Fleming 提交于
      This seems to have gotten lost, so I'll resend.
      Signed-off-by: NAndy Fleming <afleming@freescale.com>
      
      * Added sysfs support to gianfar for modifying FIFO and stashing parameters
      * Updated driver to support 10 Mbit, full duplex operation
      * Improved comments throughout
      * Cleaned up and optimized offloading code
      * Fixed a bug where rx buffers were being improperly mapped and unmapped
      * (only manifested if cache-coherency was off)
      * Added support for using the eTSEC exact-match MAC registers
      * Bumped the version to 1.3
      * Added support for distinguishing between reduced 100 and 10 Mbit modes
      * Modified default coalescing values to lower latency
      * Added documentation
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      7f7f5316