diff options
author | Tony Lindgren <tony@atomide.com> | 2016-05-31 15:05:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-01 21:58:59 (GMT) |
commit | 12b7db2bf8b88938798c60416172b53225207b1f (patch) | |
tree | 43e7c3b09fec20d63799e5a2740e0e1b26c25f46 /net/9p/protocol.c | |
parent | a118df07f5b19e4879fd67e98a69f4644136877f (diff) | |
download | linux-12b7db2bf8b88938798c60416172b53225207b1f.tar.xz |
usb: musb: Return error value from musb_mailbox
At least on n900 we have phy-twl4030-usb only generating cable
interrupts, and then have a separate USB PHY.
In order for musb to know the real cable status, we need to
clear any cached state until musb is ready. Otherwise the cable
status interrupts will get just ignored if the status does
not change from the initial state.
To do this, let's add a return value to musb_mailbox(), and
reset cached linkstat to MUSB_UNKNOWN on error. Sorry to cause
a bit of churn here, I should have added that already last time
patching musb_mailbox().
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/9p/protocol.c')
0 files changed, 0 insertions, 0 deletions