musb: fix remote wakeup racing with suspend
Bin Liu
AppliedPATCH v2 1/1 musb: fix remote wakeup racing with suspend
Hi,
Quoted 8 lines · Daniel Glöckner
It has been observed that writing
0xF2to the power register while it reads as0xF4results in the register having the value0xF0, i.e. clearing RESUME and setting SUSPENDM in one go does not work. It might also violate the USB spec to transition directly from resume to suspend, especially when not takingT_DRSMDNinto account. But this is what happens when a remote wakeup occurs between SetPortFeatureUSB_PORT_FEAT_SUSPENDon the root hub andmusb_bus_suspendbeing called.
Quoted 5 lines
This commit returns
-EBUSYwhenmusb_bus_suspendis called while remote wakeup is signalled and thus avoids to reset the RESUME bit. Ignoring this error whenmusb_port_suspendis called frommusb_hub_controlis ok.Signed-off-by Daniel Glöckner <[email protected]>
Applied. Thanks.
Regards,
-Bin.
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html