1. 14 3月, 2013 1 次提交
  2. 13 3月, 2013 2 次提交
  3. 12 3月, 2013 3 次提交
  4. 11 3月, 2013 2 次提交
  5. 08 3月, 2013 1 次提交
  6. 07 3月, 2013 8 次提交
  7. 05 3月, 2013 7 次提交
    • A
      usb: musb: omap2430: fix sparse warning · 4b58ed11
      Aaro Koskinen 提交于
      Fix the following sparse warning:
      
      drivers/usb/musb/omap2430.c:54:33: warning: symbol '_glue' was not \
      	declared. Should it be static?
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      4b58ed11
    • A
      usb: musb: omap2430: fix omap_musb_mailbox glue check again · f8c4b0e7
      Aaro Koskinen 提交于
      Commit 80ab72e1 (usb: musb: omap2430: fix the readiness check
      in omap_musb_mailbox) made the check incorrect, as we will lose the
      glue/link status during the normal built-in probe order (twl4030_usb is
      probed after musb omap2430, but before musb core is ready).
      
      As a result, if you boot with USB cable on and load g_ether, the
      connection does not work as the code thinks the cable is off and the
      phy gets powered down immediately. This is a major regression in 3.9-rc1.
      
      So the proper check should be: exit if _glue is NULL, but if it's
      initialized we memorize the status, and then check if the musb core
      is ready.
      Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      f8c4b0e7
    • F
      usb: musb: fix compile warning · e574d570
      Felipe Balbi 提交于
      When running 100 randconfig iterations, I found
      the following warning:
      
      drivers/usb/musb/musb_core.c: In function ‘musb_init_controller’:
      drivers/usb/musb/musb_core.c:1981:1: warning: label ‘fail5’ defined \
      	but not used [-Wunused-label]
      
      this patch fixes it by removing the unnecessary
      ifdef CONFIG_SYSFS.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e574d570
    • F
      usb: musb: remove all 'select' from Kconfig · 341a71c7
      Felipe Balbi 提交于
      those are quite unnecessary, the only thing
      we need to be careful about is USB_OTG_UTILS
      which get properly selected by PHY drivers.
      
      For now, MUSB will select only USB_OTG_UTILS
      until we add stubs for the cases when PHY
      layer isn't enabled.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      341a71c7
    • N
      usb: gadget: composite: fix kernel-doc warnings · 43febb27
      Nishanth Menon 提交于
      A few trivial fixes for composite driver:
      
      Warning(include/linux/usb/composite.h:165): No description found for parameter
      	'fs_descriptors'
      Warning(include/linux/usb/composite.h:165): Excess struct/union/enum/typedef
      	member 'descriptors' description in 'usb_function'
      Warning(include/linux/usb/composite.h:321): No description found for parameter
      	'gadget_driver'
      Warning(drivers/usb/gadget/composite.c:1777): Excess function parameter 'bind'
      	description in 'usb_composite_probe'
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Kosina <trivial@kernel.org>
      Cc: linux-usb@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      43febb27
    • A
      USB: EHCI: don't check DMA values in QH overlays · feca7746
      Alan Stern 提交于
      This patch (as1661) fixes a rather obscure bug in ehci-hcd.  In a
      couple of places, the driver compares the DMA address stored in a QH's
      overlay region with the address of a particular qTD, in order to see
      whether that qTD is the one currently being processed by the hardware.
      (If it is then the status in the QH's overlay region is more
      up-to-date than the status in the qTD, and if it isn't then the
      overlay's value needs to be adjusted when the QH is added back to the
      active schedule.)
      
      However, DMA address in the overlay region isn't always valid.  It
      sometimes will contain a stale value, which may happen by coincidence
      to be equal to a qTD's DMA address.  Instead of checking the DMA
      address, we should check whether the overlay region is active and
      valid.  The patch tests the ACTIVE bit in the overlay, and clears this
      bit when the overlay becomes invalid (which happens when the
      currently-executing URB is unlinked).
      
      This is the second part of a fix for the regression reported at:
      
      	https://bugs.launchpad.net/bugs/1088733Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Reported-by: NJoseph Salisbury <joseph.salisbury@canonical.com>
      Reported-and-tested-by: NStephen Thirlwall <sdt@dr.com>
      CC: <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      feca7746
    • A
      USB: EHCI: work around silicon bug in Intel's EHCI controllers · 6402c796
      Alan Stern 提交于
      This patch (as1660) works around a hardware problem present in some
      (if not all) Intel EHCI controllers.  After a QH has been unlinked
      from the async schedule and the corresponding IAA interrupt has
      occurred, the controller is not supposed access the QH and its qTDs.
      There certainly shouldn't be any more DMA writes to those structures.
      Nevertheless, Intel's controllers have been observed to perform a
      final writeback to the QH's overlay region and to the most recent qTD.
      For more information and a test program to determine whether this
      problem is present in a particular controller, see
      
      	http://marc.info/?l=linux-usb&m=135492071812265&w=2
      	http://marc.info/?l=linux-usb&m=136182570800963&w=2
      
      This patch works around the problem by always waiting for two IAA
      cycles when unlinking an async QH.  The extra IAA delay gives the
      controller time to perform its final writeback.
      
      Surprisingly enough, the effects of this silicon bug have gone
      undetected until quite recently.  More through luck than anything
      else, it hasn't caused any apparent problems.  However, it does
      interact badly with the path that follows this one, so it needs to be
      addressed.
      
      This is the first part of a fix for the regression reported at:
      
      	https://bugs.launchpad.net/bugs/1088733Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Tested-by: NStephen Thirlwall <sdt@dr.com>
      CC: <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6402c796
  8. 04 3月, 2013 16 次提交