public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] usb: musb: fix vbus_show
@ 2018-02-27 22:27 Merlijn Wajer
  2018-02-27 22:27 ` [PATCH v2 1/1] usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers Merlijn Wajer
  0 siblings, 1 reply; 6+ messages in thread
From: Merlijn Wajer @ 2018-02-27 22:27 UTC (permalink / raw)
  To: linux-omap
  Cc: tony, merlijn, Bin Liu, Greg Kroah-Hartman, linux-usb,
	linux-kernel

Hi,

This fixes reading vbus status in musb.

v2 places the pm_runtime_{get,put}_sync calls outside of the spinlocks, because
pm_runtime_{get,put}_sync would otherwise (sometimes, depending on the platform)
cause deadlocks.
Hopefully this fixes the deadlock issue that Bin Liu ran into. I've tested this
patch on my Nokia N900 and it works for me.

Cheers,
Merlijn

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-05 18:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 22:27 [PATCH v2 0/1] usb: musb: fix vbus_show Merlijn Wajer
2018-02-27 22:27 ` [PATCH v2 1/1] usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers Merlijn Wajer
2018-02-28 21:59   ` Tony Lindgren
2018-03-05 17:38     ` Bin Liu
2018-03-05 18:35       ` Ivaylo Dimitrov
2018-03-05 18:57         ` Bin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox