1. 09 8月, 2013 1 次提交
  2. 02 8月, 2013 1 次提交
    • J
      usb: dwc3: pci: add CONFIG_PM_SLEEP to suspend/resume functions · fb74d282
      Jingoo Han 提交于
      Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
      build warning when CONFIG_PM_SLEEP is not selected. This is because
      sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used
      when the CONFIG_PM_SLEEP is enabled. Unnecessary CONFIG_PM ifdefs
      are removed.
      
      drivers/usb/dwc3/dwc3-pci.c:215:12: warning: 'dwc3_pci_suspend' defined but not used [-Wunused-function]
      drivers/usb/dwc3/dwc3-pci.c:224:12: warning: 'dwc3_pci_resume' defined but not used [-Wunused-function]
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fb74d282
  3. 31 7月, 2013 1 次提交
  4. 29 7月, 2013 24 次提交
  5. 15 7月, 2013 4 次提交
    • G
      usb: dwc3: USB_DWC3 should depend on HAS_DMA · 8744303e
      Geert Uytterhoeven 提交于
      If NO_DMA=y:
      
      drivers/built-in.o: In function `dwc3_free_one_event_buffer':
      drivers/usb/dwc3/core.c:132: undefined reference to `dma_free_coherent'
      drivers/built-in.o: In function `dwc3_alloc_one_event_buffer':
      drivers/usb/dwc3/core.c:154: undefined reference to `dma_alloc_coherent'
      drivers/built-in.o: In function `dma_set_coherent_mask':
      include/linux/dma-mapping.h:93: undefined reference to `dma_supported'
      drivers/built-in.o: In function `dwc3_free_trb_pool':
      drivers/usb/dwc3/gadget.c:407: undefined reference to `dma_free_coherent'
      drivers/built-in.o: In function `dwc3_gadget_exit':
      drivers/usb/dwc3/gadget.c:2693: undefined reference to `dma_free_coherent'
      drivers/built-in.o: In function `dwc3_alloc_trb_pool':
      drivers/usb/dwc3/gadget.c:391: undefined reference to `dma_alloc_coherent'
      drivers/built-in.o: In function `dwc3_gadget_init':
      drivers/usb/dwc3/gadget.c:2598: undefined reference to `dma_alloc_coherent'
      drivers/usb/dwc3/gadget.c:2667: undefined reference to `dma_free_coherent'
      drivers/usb/dwc3/gadget.c:2674: undefined reference to `dma_free_coherent'
      drivers/usb/dwc3/gadget.c:2678: undefined reference to `dma_free_coherent'
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      8744303e
    • R
      usb: dwc3: fix the error returned with usb3_phy failure · 315955d7
      Ruchika Kharwar 提交于
      When there is an error with the usb3_phy probe or absence, the error returned
      is erroneously for usb2_phy.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NRuchika Kharwar <ruchika@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      315955d7
    • H
      usb: dwc3: fix wrong bit mask in dwc3_event_type · 1974d494
      Huang Rui 提交于
      Per dwc3 2.50a spec, the is_devspec bit is used to distinguish the
      Device Endpoint-Specific Event or Device-Specific Event (DEVT). If the
      bit is 1, the event is represented Device-Specific Event, then use
      [7:1] bits as Device Specific Event to marked the type. It has 7 bits,
      and we can see the reserved8_31 variable name which means from 8 to 31
      bits marked reserved, actually there are 24 bits not 25 bits between
      that. And 1 + 7 + 24 = 32, the event size is 4 byes.
      
      So in dwc3_event_type, the bit mask should be:
      is_devspec	[0]		1  bit
      type		[7:1]		7  bits
      reserved8_31	[31:8]		24 bits
      
      This patch should be backported to kernels as old as 3.2, that contain
      the commit 72246da4 "usb: Introduce
      DesignWare USB3 DRD Driver".
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NHuang Rui <ray.huang@amd.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      1974d494
    • F
      usb: dwc3: gadget: don't prevent gadget from being probed if we fail · cdcedd69
      Felipe Balbi 提交于
      In case we fail our ->udc_start() callback, we
      should be ready to accept another modprobe following
      the failed one.
      
      We had forgotten to clear dwc->gadget_driver back
      to NULL and, because of that, we were preventing
      gadget driver modprobe from being retried.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      cdcedd69
  6. 13 6月, 2013 4 次提交
  7. 01 6月, 2013 1 次提交
  8. 29 5月, 2013 3 次提交
  9. 17 5月, 2013 1 次提交
    • S
      USB: set device dma_mask without reference to global data · 3b9561e9
      Stephen Warren 提交于
      Many USB host drivers contain code such as:
      
      if (!pdev->dev.dma_mask)
              pdev->dev.dma_mask = &tegra_ehci_dma_mask;
      
      ... where tegra_ehci_dma_mask is a global. I suspect this code originated
      in commit 4a53f4e6 "USB: ehci-tegra: add probing through device tree" and
      was simply copied everywhere else.
      
      This works fine when the code is built-in, but can cause a crash when the
      code is in a module. The first module load sets up the dma_mask pointer,
      but if the module is removed and re-inserted, the value is now non-NULL,
      and hence is not updated to point at the new location, and hence points
      at a stale location within the previous module load address, which in
      turn causes a crash if the pointer is de-referenced.
      
      The simplest way of solving this seems to be to copy the code from
      ehci-platform.c, which uses the coherent_dma_mask as the target for the
      dma_mask pointer.
      Suggested-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NTony Prisk <linux@prisktech.co.nz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3b9561e9