diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2016-08-22 22:24:22 +0300 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2016-09-14 08:29:11 +0300 |
commit | 78489c7c48d462c2a4fa9f388dd091f829573b64 (patch) | |
tree | dd29b8eec5108cc10d0dd23b12ffe34a59ff5404 /drivers/firewire/nosy.h | |
parent | 919ab2524c52e5f801d8873f09145ce822cdd43a (diff) | |
download | linux-78489c7c48d462c2a4fa9f388dd091f829573b64.tar.xz |
phy-twl4030-usb: better handle musb_mailbox() failure
setting twl->linkstat = MUSB_UNKNOWN upon error in musb_mailbox as
introduced in
commit 12b7db2bf8b8 ("usb: musb: Return error value from musb_mailbox")
causes twl4030_usb_irq() to not detect a state change form cable connected
to cable disconnected after such an error so that
pm_runtime_put_autosuspend() will not be called and the usage counter
gets unbalanced. Such errors happen e.g. if the omap2430 module is not
(yet) loaded during plug/unplug events.
This patch introduces a flag instead that indicates whether there is
information for the musb_mailbox pending and calls musb_mailbox() if
that flag is set.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/firewire/nosy.h')
0 files changed, 0 insertions, 0 deletions