USB: Allow skipping device resume during system resume.
Some buses would like to keep their devices in suspend state during system resume. For example HSIC controller driver prevent system suspend when HSIC device is active. If this device is resumed, during system resume HSIC controller acquire wake lock and prevent the subsequent suspend till HSIC device is auto suspended. CRs-Fixed: 403975 Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org> (cherry picked from commit 6f199aa800253a69e5679d1057823039f1bd65c9) Change-Id: Ic8ab631ec1f15685cc35823aa7c57d699738d5fc Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
f49d4d7f53
commit
fd126d6851
@@ -368,6 +368,15 @@ struct usb_bus {
|
||||
struct mon_bus *mon_bus; /* non-null when associated */
|
||||
int monitored; /* non-zero when monitored */
|
||||
#endif
|
||||
unsigned skip_resume:1; /* All USB devices are brought into full
|
||||
* power state after system resume. It
|
||||
* is desirable for some buses to keep
|
||||
* their devices in suspend state even
|
||||
* after system resume. The devices
|
||||
* are resumed later when a remote
|
||||
* wakeup is detected or an interface
|
||||
* driver starts I/O.
|
||||
*/
|
||||
};
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user