1. 08 1月, 2010 1 次提交
    • H
      ep93xx_eth.c general cleanup · df2f7ec8
      H Hartley Sweeten 提交于
      General cleanup of the ep93xx_eth driver.
      
      1) Use pr_fmt() to prefix the module name and __func__ to the error 
         messages.
      2) <linux/io.h> instead of <asm/io.h>
      3) <mach/hardware.h> instead of <mach/ep93xx-regs.h> and <mach/platform.h>
      4) Move the ep93xx_mdio_read (and ep93xx_mdio_write) function to eliminate
         the function prototype.
      5) Change all the printk(<level> messages to pr_<level> and remove the 
         __func__ argument.
      6) Use platform_get_{resource/irq} to get the platform resources and add
         an error check.
      7) Use resource_size() for request_mem_region() and ioremap().
      8) Use %pM to print the MAC address at the end of the probe.
      9) Use dev->dev_addr not data->dev_addr for the MAC argument because a
         random address could be used if the platform does not supply one.
      
      The message at the end of the probe is left as a printk since it displays
      cleaner without the function name that would be displayed with pr_info().
      Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
      Acked-by: NLennert Buytenhek <kernel@wantstofly.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      df2f7ec8
  2. 05 12月, 2009 1 次提交
  3. 30 11月, 2009 1 次提交
  4. 17 11月, 2009 2 次提交
  5. 14 11月, 2009 1 次提交
  6. 02 11月, 2009 1 次提交
  7. 28 10月, 2009 1 次提交
    • F
      NET/KS8695: add support NAPI for Rx · 31b73ab3
      Figo.zhang 提交于
      Add support NAPI Rx API for KS8695NET driver.
      
      v2, change the Rx function to NAPI.
      
      in <KS8695X Integrated Multi-port Gateway Solution Register Description
       v1.0>:
      
      Interrupt Enable Register (offset 0xE204)
      Bit29 : WAN MAC Receive Interrupt Enable
      Bit16 : LAN MAC Receive Interrupt Enable
      
      Interrupt Status Register (Offset 0xF208)
      Bit29: WAN MAC Receive Status
      Bit16: LAN MAC Receive Status
      
      see arch/arm/mach-ks8695/devices.c:
      ks8695_wan_resources[] and ks8695_lan_resources[]
      have IORESOURCE_IRQ , it have define the RX irq,
      for wan, irq = 29; for lan ,irq = 16.
      so we can do this read the interrupt status:
      
      unsigned long mask_bit = 1 << ksp->rx_irq;
      status = readl(KS8695_IRQ_VA + KS8695_INTST);
      Signed-off-by: NFigo.zhang <figo1802@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      31b73ab3
  8. 03 9月, 2009 1 次提交
  9. 02 9月, 2009 1 次提交
  10. 19 8月, 2009 1 次提交
  11. 14 8月, 2009 1 次提交
  12. 23 7月, 2009 1 次提交
  13. 20 7月, 2009 1 次提交
  14. 13 7月, 2009 2 次提交
  15. 06 7月, 2009 1 次提交
  16. 13 6月, 2009 1 次提交
  17. 29 5月, 2009 1 次提交
  18. 27 5月, 2009 1 次提交
  19. 25 5月, 2009 1 次提交
  20. 24 5月, 2009 2 次提交
  21. 09 5月, 2009 2 次提交
  22. 17 4月, 2009 1 次提交
  23. 11 4月, 2009 5 次提交
  24. 25 3月, 2009 2 次提交
  25. 17 3月, 2009 1 次提交
  26. 04 3月, 2009 1 次提交
  27. 23 2月, 2009 1 次提交
  28. 22 2月, 2009 2 次提交
    • R
      [ARM] RiscPC: Fix etherh oops · 8cfd9e92
      Russell King 提交于
      The 8390 driver was structured by Al Viro to allow the flexibility
      required by platforms.  lib8390.c contains the core code which drivers
      explicitly include:
      - 8390.c includes lib8390.c to provide the standard ISA based driver.
      - etherh.c includes it with the accessors defined for RiscPC platforms,
        where it is addressed via the MMIO accessors with a device dependent
        register spacing.
      
      Other platform drivers do something similar.
      
      However, b9a9b4b0 caused the kernel to contain not only the etherh
      private build of lib8390 (included in etherh.c) but also lib8390.c
      itself, and referred the new net_device_ops methods to the ISA version.
      The result of this is is not pretty:
      
      Unable to handle kernel paging request at virtual address 12032030
      pgd = c8330000
      [12032030] *pgd=00000000
      Internal error: Oops: 18331805 [#1]
      Modules linked in: ipv6
      CPU: 0    Not tainted  (2.6.29-rc3 #167)
      PC is at do_set_multicast_list+0xd0/0x190
      LR is at bitrev32+0x28/0x34
      pc : [<c017aab4>]    lr : [<c0139120>]    psr: a0000093
      sp : c8321d9c  ip : c8321d84  fp : c8321dbc
      r10: c80c6800  r9 : 00000000  r8 : c80c6b60
      r7 : c80c6b80  r6 : cc80c800  r5 : c80c6800  r4 : 00000000
      r3 : cc80c80c  r2 : 00000004  r1 : 00000007  r0 : e0000000
      Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
      ...
      
      Fix up b9a9b4b0 by making etherh's net_device_ops refer to the internal
      lib8390 functions, and remove the build of the ISA 8390.c driver.
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      8cfd9e92
    • R
      etherh: Get working again. · 7d3d5ec1
      Russell King 提交于
      Further to a71558d0, this is round five of fixes to make etherh work
      again. As mainline kernels stand, the fixes in b9a9b4b0 were the wrong
      approach.
      
      The 8390 driver was structured by Al Viro to allow the flexibility required
      by platforms.  lib8390.c contains the core code which drivers explicitly
      include:
      - 8390.c includes lib8390.c to provide the standard ISA based driver.
      - etherh.c includes it with the accessors defined for RiscPC platforms,
        where it is addressed via the MMIO accessors with a device dependent
        register spacing.
      
      Other platform drivers do something similar.
      
      However, b9a9b4b0 caused the kernel to contain not only the etherh private
      build of lib8390 (included in etherh.c) but also lib8390.c itself, and
      referred the new net_device_ops methods to the ISA version.  The result
      of this is is not pretty:
      
      Unable to handle kernel paging request at virtual address 12032030
      pgd = c8330000
      [12032030] *pgd=00000000
      Internal error: Oops: 18331805 [#1]
      Modules linked in: ipv6
      CPU: 0    Not tainted  (2.6.29-rc3 #167)
      PC is at do_set_multicast_list+0xd0/0x190
      LR is at bitrev32+0x28/0x34
      pc : [<c017aab4>]    lr : [<c0139120>]    psr: a0000093
      sp : c8321d9c  ip : c8321d84  fp : c8321dbc
      r10: c80c6800  r9 : 00000000  r8 : c80c6b60
      r7 : c80c6b80  r6 : cc80c800  r5 : c80c6800  r4 : 00000000
      r3 : cc80c80c  r2 : 00000004  r1 : 00000007  r0 : e0000000
      Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
      ...
      
      Fix up b9a9b4b0 by making etherh's net_device_ops refer to the internal
      lib8390 functions, and remove the build of the ISA 8390.c driver.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7d3d5ec1
  29. 28 1月, 2009 1 次提交
  30. 27 1月, 2009 1 次提交