1. 17 11月, 2015 1 次提交
    • U
      usb: musb: core: fix order of arguments to ulpi write callback · 705e63d2
      Uwe Kleine-König 提交于
      There is a bit of a mess in the order of arguments to the ulpi write
      callback. There is
      
      	int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val)
      
      in drivers/usb/common/ulpi.c;
      
      	struct usb_phy_io_ops {
      		...
      		int (*write)(struct usb_phy *x, u32 val, u32 reg);
      	}
      
      in include/linux/usb/phy.h.
      
      The callback registered by the musb driver has to comply to the latter,
      but up to now had "offset" first which effectively made the function
      broken for correct users. So flip the order and while at it also
      switch to the parameter names of struct usb_phy_io_ops's write.
      
      Fixes: ffb865b1 ("usb: musb: add ulpi access operations")
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      705e63d2
  2. 29 10月, 2015 1 次提交
    • T
      usb: musb: omap2430: Fix regression caused by driver core change · 8f2279d5
      Tony Lindgren 提交于
      Commit ddef08dd ("Driver core: wakeup the parent device before trying
      probe") started automatically ensuring the parent device is enabled when
      the child gets probed.
      
      This however caused a regression for MUSB omap2430 interface as the
      runtime PM for the parent device needs the child initialized to access
      the MUSB hardware registers.
      
      Let's delay the enabling of PM runtime for the parent until the child
      has been properly initialized as suggested in an earlier patch by
      Grygorii Strashko <grygorii.strashko@ti.com>.
      
      In addition to delaying pm_runtime_enable, we now also need to make sure
      the parent is enabled during omap2430_musb_init. We also want to propagate
      an error from omap2430_runtime_resume if struct musb is not initialized.
      
      Note that we use pm_runtime_put_noidle here for both the child and parent
      to prevent an extra runtime_suspend/resume cycle.
      
      Let's also add some comments to avoid confusion between the
      two different devices.
      
      Fixes: ddef08dd ("Driver core: wakeup the parent device before
      trying probe")
      Suggested-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Reviewed-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      8f2279d5
  3. 16 10月, 2015 1 次提交
  4. 10 10月, 2015 1 次提交
  5. 27 9月, 2015 4 次提交
  6. 22 9月, 2015 2 次提交
  7. 14 9月, 2015 3 次提交
  8. 07 8月, 2015 1 次提交
  9. 06 8月, 2015 4 次提交
  10. 05 8月, 2015 2 次提交
  11. 03 8月, 2015 1 次提交
  12. 31 7月, 2015 1 次提交
  13. 29 7月, 2015 3 次提交
  14. 07 7月, 2015 1 次提交
    • F
      usb: musb: host: rely on port_mode to call musb_start() · be9d3988
      Felipe Balbi 提交于
      Currently, we're calling musb_start() twice for DRD ports
      in some situations. This has been observed to cause enumeration
      issues after suspend/resume cycles with AM335x.
      
      In order to fix the problem, we just have to fix the check
      on musb_has_gadget() so that it only returns true if
      current mode is Host and ignore the fact that we have or
      not a gadget driver loaded.
      
      Fixes: ae44df2e (usb: musb: call musb_start() only once in OTG mode)
      Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      Cc: <stable@vger.kernel.org> # v3.11+
      Tested-by: NSekhar Nori <nsekhar@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      be9d3988
  15. 28 5月, 2015 2 次提交
    • F
      usb: musb: ux500: fix build warnings · 30d09223
      Felipe Balbi 提交于
      This patch fixes the following build warnings:
      
      drivers/usb/musb/ux500.c:346:12: warning: ‘ux500_suspend’ defined but
      not used [-Wunused-function]
      drivers/usb/musb/ux500.c:357:12: warning: ‘ux500_resume’ defined but not
      used [-Wunused-function]
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      30d09223
    • F
      usb: musb: am35x: fix build warnings · fea2fc6e
      Felipe Balbi 提交于
      This patch fixes the following build warnings:
      
      drivers/usb/musb/am35x.c:573:12: warning: ‘am35x_suspend’ defined but
      not used [-Wunused-function]
      drivers/usb/musb/am35x.c:589:12: warning: ‘am35x_resume’ defined but not
      used [-Wunused-function]
      drivers/usb/musb/am35x.c:573:12: warning: ‘am35x_suspend’ defined but
      not used [-Wunused-function]
      drivers/usb/musb/am35x.c:589:12: warning: ‘am35x_resume’ defined but not
      used [-Wunused-function]
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fea2fc6e
  16. 26 5月, 2015 6 次提交
  17. 08 5月, 2015 6 次提交