usb: dwc3: add in_lpm flag to struct dwc3
This change provides the gadget with awareness regarding the vendor-specific's low-power-mode status. This is done in order to enable proper decision making regarding cases where the gadget would potentially attempt to interface the hardware when it's in lpm. Change-Id: I1508fbddd13228fbb7d6d53d91d98a0acaaf3fd7 Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
This commit is contained in:
parent
87ac720b8a
commit
01edad63c9
1 changed files with 3 additions and 0 deletions
|
@ -797,6 +797,7 @@ struct dwc3_scratchpad_array {
|
||||||
* 2 - No de-emphasis
|
* 2 - No de-emphasis
|
||||||
* 3 - Reserved
|
* 3 - Reserved
|
||||||
* @err_evt_seen: previous event in queue was erratic error
|
* @err_evt_seen: previous event in queue was erratic error
|
||||||
|
* @in_lpm: indicates if controller is in low power mode (no clocks)
|
||||||
*/
|
*/
|
||||||
struct dwc3 {
|
struct dwc3 {
|
||||||
struct usb_ctrlrequest *ctrl_req;
|
struct usb_ctrlrequest *ctrl_req;
|
||||||
|
@ -946,6 +947,8 @@ struct dwc3 {
|
||||||
unsigned err_evt_seen:1;
|
unsigned err_evt_seen:1;
|
||||||
|
|
||||||
struct dwc3_gadget_events dbg_gadget_events;
|
struct dwc3_gadget_events dbg_gadget_events;
|
||||||
|
|
||||||
|
atomic_t in_lpm;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
Loading…
Add table
Reference in a new issue