1. 20 10月, 2007 1 次提交
  2. 19 10月, 2007 1 次提交
    • J
      Add missing newlines to some uses of dev_<level> messages · 898eb71c
      Joe Perches 提交于
      Found these while looking at printk uses.
      
      Add missing newlines to dev_<level> uses
      Add missing KERN_<level> prefixes to multiline dev_<level>s
      Fixed a wierd->weird spelling typo
      Added a newline to a printk
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: James Smart <James.Smart@Emulex.Com>
      Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      898eb71c
  3. 18 10月, 2007 2 次提交
  4. 12 10月, 2007 2 次提交
    • M
      [BNX2]: Refine napi poll loop. · 6dee6421
      Michael Chan 提交于
      Need to read and store sblk->status_idx before checking for more work.
      The status idx is later written back to the hardware when enabling
      interrupts to acknowledge how much work has been processed.  If the
      order is reversed, we can end up acknowledging work we haven't
      processed.
      
      When completing bnx2_poll(), we should always break out of the while
      loop and return work_done instead of returning 0.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6dee6421
    • D
      [NET]: Fix NAPI completion handling in some drivers. · 6f535763
      David S. Miller 提交于
      In order for the list handling in net_rx_action() to be
      correct, drivers must follow certain rules as stated by
      this comment in net_rx_action():
      
      		/* Drivers must not modify the NAPI state if they
      		 * consume the entire weight.  In such cases this code
      		 * still "owns" the NAPI instance and therefore can
      		 * move the instance around on the list at-will.
      		 */
      
      A few drivers do not do this because they mix the budget checks
      with reading hardware state, resulting in crashes like the one
      reported by takano@axe-inc.co.jp.
      
      BNX2 and TG3 are taken care of here, SKY2 fix is from Stephen
      Hemminger.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6f535763
  5. 11 10月, 2007 13 次提交
  6. 21 9月, 2007 1 次提交
  7. 29 8月, 2007 2 次提交
  8. 04 8月, 2007 1 次提交
    • M
      [BNX2]: Fix suspend/resume problem. · 6caebb02
      Michael Chan 提交于
      The device would not resume properly if it was shutdown before the system
      was suspended.  In such scenario where the netif_running state is 0,
      bnx2_suspend() would not save the PCI state and so the memory enable bit
      and bus master enable bit would be lost.
      
      We fix this by always saving and restoring the PCI state in
      bnx2_suspend() and bnx2_resume() regardless of netif_running() state.
      
      Update version to 1.6.4.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6caebb02
  9. 01 8月, 2007 1 次提交
  10. 18 7月, 2007 4 次提交
  11. 15 7月, 2007 1 次提交
  12. 13 7月, 2007 1 次提交
    • L
      Revert "[BNX2]: Seems to not need net/tcp.h" · de081fa5
      Linus Torvalds 提交于
      This reverts commit 963bd949.  The
      driver _does_ need the networking header files;
      
      	  CC [M]  drivers/net/bnx2.o
      	drivers/net/bnx2.c: In function 'bnx2_start_xmit':
      	drivers/net/bnx2.c:5177: warning: implicit declaration of function 'tcp_optlen'
      	drivers/net/bnx2.c:5181: error: invalid application of 'sizeof' to incomplete type 'struct ipv6hdr'
      	drivers/net/bnx2.c:5202: error: invalid application of 'sizeof' to incomplete type 'struct tcphdr'
      	drivers/net/bnx2.c:5207: warning: implicit declaration of function 'tcp_hdr'
      	drivers/net/bnx2.c:5207: error: invalid type argument of '->'
      	make[2]: *** [drivers/net/bnx2.o] Error 1
      	make[1]: *** [drivers/net] Error 2
      	make: *** [drivers] Error 2
      
      Cc: Ilpo Jävinen <ilpo.jarvinen@helsinki.fi>
      Cc: David Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      de081fa5
  13. 12 7月, 2007 1 次提交
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  14. 11 7月, 2007 9 次提交