1. 19 12月, 2008 1 次提交
    • B
      enc28j60: reduce the number of spi transfers in enc28j60_set_bank() · 5664dd55
      Baruch Siach 提交于
      A major source of overhead in the enc28j60 driver is the SPI transfers. Each
      SPI transfer entails two kernel thread context switches. One major source of
      SPI transfers is the enc28j60_set_bank() functions which runs before every
      register access. This patch reduces the number of SPI transfers that
      enc28j60_set_bank() performs in two ways:
      
        1. removes unnecessary bank switch for the registers that are present in all
      	 banks
      
        2. when switching from banks 0 or 3 to banks 1 or 2 (i.e. only one bit
      	 changes) enc28j60_set_bank() does only one SPI transfer instead of two
      
      According to my tests these changes reduce the number of SPI transfers in
      about 25%.
      Signed-off-by: NBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5664dd55
  2. 16 12月, 2008 1 次提交
  3. 04 12月, 2008 1 次提交
  4. 11 11月, 2008 1 次提交
  5. 04 11月, 2008 1 次提交
  6. 28 10月, 2008 1 次提交
  7. 25 9月, 2008 1 次提交
  8. 30 7月, 2008 1 次提交
    • D
      enc28j60: don't specify (wrong) IRQ type · c7b7b042
      David Brownell 提交于
      Recent changes to the IRQ framework have made passing the wrong
      trigger type to request_irq() become a fatal error.  In the case
      of the enc28j60 driver, it stopped working in my test harness.
      
      (Specifically:  the signal detects "pin change" events, both edges,
      not just falling edges.  Similarly, other boards might route it
      through an inverter.  Trigger type are board-specific.)
      
      This fixes that problem by the usual fix of expecting board setup
      code to have set up the correct IRQ trigger type.  The best known
      example of that being x86 setup.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      c7b7b042
  9. 18 6月, 2008 2 次提交
  10. 06 3月, 2008 1 次提交
  11. 29 1月, 2008 1 次提交