1. 13 7月, 2009 27 次提交
  2. 11 7月, 2009 3 次提交
  3. 09 7月, 2009 1 次提交
  4. 07 7月, 2009 1 次提交
    • K
      Fix virt_to_phys() warnings · 5bfd7560
      Kevin Cernekee 提交于
      These warnings were observed on MIPS32 using 2.6.31-rc1 and gcc-4.2.0:
      
      mm/page_alloc.c: In function 'alloc_pages_exact':
      mm/page_alloc.c:1986: warning: passing argument 1 of 'virt_to_phys' makes pointer from integer without a cast
      
      drivers/usb/mon/mon_bin.c: In function 'mon_alloc_buff':
      drivers/usb/mon/mon_bin.c:1264: warning: passing argument 1 of 'virt_to_phys' makes pointer from integer without a cast
      
      [akpm@linux-foundation.org: fix kernel/perf_counter.c too]
      Signed-off-by: NKevin Cernekee <cernekee@gmail.com>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5bfd7560
  5. 04 7月, 2009 1 次提交
  6. 26 6月, 2009 3 次提交
  7. 16 6月, 2009 4 次提交
    • P
      USB: xhci depends on PCI. · 1b6ed69f
      Paul Mundt 提交于
      While it looks like xhci was written with both PCI and non-PCI in mind,
      apparently only the former has seen any testing. xhci-mem.o can be "fixed"
      with a linux/dmapool.h include, but there are still parts of the code that
      make use of struct pci_dev directly. So, at least more work is needed before
      this can be turned on for non-PCI builds:
      
        CC      drivers/usb/host/xhci-mem.o
      drivers/usb/host/xhci-mem.c: In function 'xhci_segment_alloc':
      drivers/usb/host/xhci-mem.c:45: error: implicit declaration of function 'dma_pool_alloc'
      drivers/usb/host/xhci-mem.c:45: warning: assignment makes pointer from integer without a cast
      drivers/usb/host/xhci-mem.c: In function 'xhci_segment_free':
      drivers/usb/host/xhci-mem.c:67: error: implicit declaration of function 'dma_pool_free'
      drivers/usb/host/xhci-mem.c: In function 'xhci_alloc_virt_device':
      drivers/usb/host/xhci-mem.c:239: warning: assignment makes pointer from integer without a cast
      drivers/usb/host/xhci-mem.c:248: warning: assignment makes pointer from integer without a cast
      drivers/usb/host/xhci-mem.c: In function 'xhci_mem_cleanup':
      drivers/usb/host/xhci-mem.c:578: error: implicit declaration of function 'dma_pool_destroy'
      drivers/usb/host/xhci-mem.c: In function 'xhci_mem_init':
      drivers/usb/host/xhci-mem.c:657: error: implicit declaration of function 'dma_pool_create'
      drivers/usb/host/xhci-mem.c:658: warning: assignment makes pointer from integer without a cast
      drivers/usb/host/xhci-mem.c:663: warning: assignment makes pointer from integer without a cast
      make[3]: *** [drivers/usb/host/xhci-mem.o] Error 1
      
        CC      drivers/usb/host/xhci-pci.o
      drivers/usb/host/xhci-pci.c: In function 'xhci_pci_reinit':
      drivers/usb/host/xhci-pci.c:39: error: implicit declaration of function 'pci_set_mwi'
      drivers/usb/host/xhci-pci.c: At top level:
      drivers/usb/host/xhci-pci.c:151: error: 'usb_hcd_pci_probe' undeclared here (not in a function)
      drivers/usb/host/xhci-pci.c:152: error: 'usb_hcd_pci_remove' undeclared here (not in a function)
      drivers/usb/host/xhci-pci.c:155: error: 'usb_hcd_pci_shutdown' undeclared here (not in a function)
      drivers/usb/host/xhci-pci.c:159: warning: function declaration isn't a prototype
      drivers/usb/host/xhci-pci.c:164: warning: function declaration isn't a prototype
      make[3]: *** [drivers/usb/host/xhci-pci.o] Error 1
      
      Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      1b6ed69f
    • S
      USB: xhci: Add Makefile, MAINTAINERS, and Kconfig entries. · eb6bab13
      Sarah Sharp 提交于
      Add Makefile and Kconfig entries for the xHCI host controller driver.
      List Sarah Sharp as the maintainer for the xHCI driver.
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      eb6bab13
    • S
      USB: xhci: Respect critical sections. · f88ba78d
      Sarah Sharp 提交于
      Narrow down time spent holding the xHCI spinlock so that it's only used to
      protect the xHCI rings, not as mutual exclusion.  Stop allocating memory
      while holding the spinlock and calling xhci_alloc_virt_device() and
      xhci_endpoint_init().
      
      The USB core should have locking in it to prevent device state to be
      manipulated by more than one kernel thread.  E.g. you can't free a device
      while you're in the middle of setting a new configuration.  So removing
      the locks from the sections where xhci_alloc_dev() and
      xhci_reset_bandwidth() touch xHCI's representation of the device should be
      OK.
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f88ba78d
    • S
      USB: xHCI: Fix interrupt moderation. · a4d88302
      Sarah Sharp 提交于
      Mask off the lower 16 bits of the interrupt control register, instead of
      masking off the upper 16 bits.  The interrupt moderation interval field is
      the lower 16 bytes, and is set to 0x4000 (1ms) by default.  The previous
      code was adding 40 us to the default value, instead of setting it to 40
      us.  This makes performance really bad.
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a4d88302