1. 18 11月, 2015 1 次提交
  2. 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
  3. 16 10月, 2015 1 次提交
  4. 27 9月, 2015 1 次提交
  5. 14 9月, 2015 2 次提交
  6. 26 5月, 2015 5 次提交
  7. 08 5月, 2015 3 次提交
  8. 08 4月, 2015 1 次提交
  9. 11 3月, 2015 18 次提交
  10. 09 3月, 2015 2 次提交
    • F
      usb: musb: core: improve musb_interrupt() a bit · 31a0ede0
      Felipe Balbi 提交于
      instead of using manually spelled out bit-shits
      and iterate over each of the 16-bits (one for
      each endpoint) on each direction, we can make use
      of for_each_set_bit() which internally uses
      find_first_bit().
      
      This makes the code slightly more readable while
      also making we only iterate over bits which are
      actually set.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      31a0ede0
    • F
      usb: musb: core: fix TX/RX endpoint order · e3c93e1a
      Felipe Balbi 提交于
      As per Mentor Graphics' documentation, we should
      always handle TX endpoints before RX endpoints.
      
      This patch fixes that error while also updating
      some hard-to-read comments which were scattered
      around musb_interrupt().
      
      This patch should be backported as far back as
      possible since this error has been in the driver
      since it's conception.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e3c93e1a
  11. 23 2月, 2015 1 次提交
    • F
      usb: musb: core: add pm_runtime_irq_safe() · 3e43a072
      Felipe Balbi 提交于
      We need a pm_runtime_get_sync() call from
      within musb_gadget_pullup() to make sure
      registers are accessible at that time.
      
      The problem is that musb_gadget_pullup() is
      called with IRQs disabled and, because of that,
      we need to tell pm_runtime that this pm_runtime_get_sync()
      is IRQ safe.
      
      We can simply add pm_runtime_irq_safe(), however, because
      we need to make our read/write accessor function pointers
      have been initialized before trying to use them. This means
      that all pm_runtime initialization for musb_core needs to
      be moved down so that when we call pm_runtime_irq_safe(),
      the pm_runtime_get_sync() that it calls on the parent, won't
      cause a crash due to NULL musb_read/write accessors.
      Reported-by: NPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      3e43a072
  12. 05 2月, 2015 1 次提交
    • B
      usb: musb: fix device hotplug behind hub · 9298b4aa
      Bin Liu 提交于
      The commit 889ad3b "usb: musb: try a race-free wakeup" breaks device
      hotplug enumeraitonn when the device is connected behind a hub while usb
      autosuspend is enabled.
      
      Adding finish_resume_work into runtime resume callback fixes the issue.
      
      Also resume root hub is required to resume the bus from runtime suspend,
      so move musb_host_resume_root_hub() back to its original location, where
      handles RESUME interrupt.
      Signed-off-by: NBin Liu <b-liu@ti.com>
      Tested-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      9298b4aa
  13. 25 11月, 2014 3 次提交