1. 24 7月, 2010 1 次提交
  2. 29 6月, 2010 1 次提交
    • G
      sparc/of: Move of_device fields into struct pdev_archdata · 1636f8ac
      Grant Likely 提交于
      This patch moves SPARC architecture specific data members out of
      struct of_device and into the pdev_archdata structure.  The reason
      for this change is to unify the struct of_device definition amongst
      all the architectures.  It also remvoes the .sysdata, .slot, .portid
      and .clock_freq properties because they aren't actually used by
      anything.
      
      A subsequent patch will replace struct of_device entirely with struct
      platform_device and the of_platform support code will share common
      routines with the platform bus (but the bus instances themselves can
      remain separate).
      
      This patch also adds 'struct resources *resource' and num_resources
      to match the fields defined in struct platform_device.  After this
      change, 'struct platform_device' can be used as a drop-in replacement
      for 'struct of_platform'.
      
      This change is in preparation for merging the of_platform_bus_type
      with the platform_bus_type.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      1636f8ac
  3. 22 5月, 2010 1 次提交
    • G
      of: Remove duplicate fields from of_platform_driver · 4018294b
      Grant Likely 提交于
      .name, .match_table and .owner are duplicated in both of_platform_driver
      and device_driver.  This patch is a removes the extra copies from struct
      of_platform_driver and converts all users to the device_driver members.
      
      This patch is a pretty mechanical change.  The usage model doesn't change
      and if any drivers have been missed, or if anything has been fixed up
      incorrectly, then it will fail with a compile time error, and the fixup
      will be trivial.  This patch looks big and scary because it touches so
      many files, but it should be pretty safe.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NSean MacLennan <smaclennan@pikatech.com>
      4018294b
  4. 19 5月, 2010 1 次提交
  5. 18 5月, 2010 1 次提交
  6. 14 5月, 2010 1 次提交
    • J
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches 提交于
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b77097
  7. 10 5月, 2010 1 次提交
  8. 07 5月, 2010 1 次提交
  9. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  10. 19 2月, 2010 1 次提交
  11. 13 2月, 2010 1 次提交
  12. 08 1月, 2010 1 次提交
  13. 04 12月, 2009 1 次提交
  14. 03 12月, 2009 1 次提交
    • M
      sunhme: fix dma warning in Sun HME · ff236f7a
      Mikulas Patocka 提交于
      Fix dma-api-checking warnings in Sun HME
      
      Sun HME driver is mapping the first fragment with dma_map_single and subsequent
      fragments with dma_map_page. It is unmapping all fragments with dma_unmap_single
      and that produces the warning.
      
      This patch changes it so that it unmaps only the first fragment with
      dma_unmap_single and subsequent fragments are unmapped with dma_unmap_page.
      
      WARNING: at lib/dma-debug.c:816 check_unmap+0x3ac/0x780()
      hme 0000:01:01.1: DMA-API: device driver frees DMA memory with wrong function [device address=0x00000000c1082000] [size=32 bytes] [mapped as page] [unmapped as single]
      Modules linked in: nbd sunhme openpromfs sermouse unix
      Call Trace:
       [0000000000456910] warn_slowpath_common+0x50/0xa0
       [0000000000571f4c] check_unmap+0x3ac/0x780
       [0000000000572570] debug_dma_unmap_page+0x50/0x60
       [000000001002f5fc] happy_meal_tx+0x11c/0x260 [sunhme]
       [000000001002fc4c] happy_meal_interrupt+0xcc/0xe0 [sunhme]
       [0000000000492d94] handle_fasteoi_irq+0x74/0x100
       [000000000042ac0c] handler_irq+0xcc/0x100
       [0000000000426a54] valid_addr_bitmap_patch+0x14/0x1c0
       [0000000000665de0] _spin_unlock_irqrestore+0x40/0x60
       [0000000000462bb8] mod_timer+0x118/0x1a0
       [00000000005ec254] sk_reset_timer+0x14/0x40
       [0000000000635e4c] tcp_event_new_data_sent+0x8c/0xc0
       [0000000000639374] __tcp_push_pending_frames+0x34/0xc0
      ---[ end trace 73d5c42c1e9f11c4 ]---
      Mapped at:
       [<000000001002f148>] happy_meal_start_xmit+0x308/0x480 [sunhme]
       [<00000000005fc858>] dev_hard_start_xmit+0x318/0x3c0
       [<000000000060fec4>] sch_direct_xmit+0x1a4/0x200
       [<00000000005fced0>] dev_queue_xmit+0x410/0x560
       [<0000000000604a1c>] neigh_resolve_output+0xfc/0x300
      Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff236f7a
  15. 19 11月, 2009 1 次提交
  16. 01 9月, 2009 1 次提交
  17. 06 7月, 2009 1 次提交
  18. 13 6月, 2009 1 次提交
  19. 09 3月, 2009 1 次提交
  20. 11 2月, 2009 1 次提交
    • M
      sunhme: Fix Quattro HME irq registration on proble failures · 7b7a799d
      Meelis Roos 提交于
      Currently, the sunhme driver installs SBus Quattro interrupt handler 
      when at least one HME card was initialized correctly and at least one 
      Quattro card is present. This breaks when a Quattro card fails 
      initialization for whatever reason - IRQ is registered and OOPS happens 
      when it fires.
      
      The solution, as suggested by David Miller, was to keep track which 
      cards of the Quattro bundles have been initialized, and request/free the 
      Quattro IRQ only when all four devices have been successfully 
      initialized.
      
      The patch only touches SBus initialization - PCI init already resets the 
      card pointer to NULL on init failure.
      
      The patch has been tested on Sun E3500 with SBus and PCI single HME 
      cards and one PCI Quattro HME card in a situation where any PCI card 
      failed init when the SBus routines tried to init them by mistake.
      
      Additionally it replaces Quattro request_irq panic with error return - 
      if this card fails to work, at least let the others work.
      
      Tested on E450 with PCI HME and PCI Quad HME.
      
      [ Minor coding style fixups -DaveM ]
      Signed-off-by: NMeelis Roos <mroos@linux.ee>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7b7a799d
  21. 07 2月, 2009 1 次提交
  22. 08 1月, 2009 1 次提交
  23. 13 11月, 2008 1 次提交
    • W
      netdevice: safe convert to netdev_priv() #part-3 · 8f15ea42
      Wang Chen 提交于
      We have some reasons to kill netdev->priv:
      1. netdev->priv is equal to netdev_priv().
      2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
         netdev_priv() is more flexible than netdev->priv.
      But we cann't kill netdev->priv, because so many drivers reference to it
      directly.
      
      This patch is a safe convert for netdev->priv to netdev_priv(netdev).
      Since all of the netdev->priv is only for read.
      But it is too big to be sent in one mail.
      I split it to 4 parts and make every part smaller than 100,000 bytes,
      which is max size allowed by vger.
      Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8f15ea42
  24. 04 11月, 2008 1 次提交
  25. 28 10月, 2008 1 次提交
  26. 31 8月, 2008 1 次提交
  27. 29 8月, 2008 4 次提交
  28. 21 7月, 2008 1 次提交
  29. 05 6月, 2008 1 次提交
  30. 29 1月, 2008 2 次提交
  31. 16 11月, 2007 1 次提交
  32. 06 11月, 2007 1 次提交
  33. 11 10月, 2007 2 次提交
  34. 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
  35. 11 7月, 2007 1 次提交