mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
Revert "usb: dwc3: fix gadget mode suspend interrupt handler issue"
This reverts commit f191711553.
It breaks the Android kernel abi, but will be brought in through a
different branch to ensure it ends up in the tree properly.
Bug: 161946584
Change-Id: I7393417fd72169adce4460c33e283085dcc86ad5
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -1103,7 +1103,6 @@ struct dwc3_scratchpad_array {
|
||||
* 3 - Reserved
|
||||
* @dis_metastability_quirk: set to disable metastability quirk.
|
||||
* @dis_split_quirk: set to disable split boundary.
|
||||
* @suspended: set to track suspend event due to U3/L2.
|
||||
* @imod_interval: set the interrupt moderation interval in 250ns
|
||||
* increments or 0 to disable.
|
||||
* @max_cfg_eps: current max number of IN eps used across all USB configs.
|
||||
@@ -1317,7 +1316,6 @@ struct dwc3 {
|
||||
|
||||
unsigned dis_split_quirk:1;
|
||||
unsigned async_callbacks:1;
|
||||
unsigned suspended:1;
|
||||
|
||||
u16 imod_interval;
|
||||
|
||||
|
||||
@@ -3708,8 +3708,6 @@ static void dwc3_gadget_disconnect_interrupt(struct dwc3 *dwc)
|
||||
{
|
||||
int reg;
|
||||
|
||||
dwc->suspended = false;
|
||||
|
||||
dwc3_gadget_set_link_state(dwc, DWC3_LINK_STATE_RX_DET);
|
||||
|
||||
reg = dwc3_readl(dwc->regs, DWC3_DCTL);
|
||||
@@ -3730,8 +3728,6 @@ static void dwc3_gadget_reset_interrupt(struct dwc3 *dwc)
|
||||
{
|
||||
u32 reg;
|
||||
|
||||
dwc->suspended = false;
|
||||
|
||||
/*
|
||||
* Ideally, dwc3_reset_gadget() would trigger the function
|
||||
* drivers to stop any active transfers through ep disable.
|
||||
@@ -3958,8 +3954,6 @@ static void dwc3_gadget_conndone_interrupt(struct dwc3 *dwc)
|
||||
|
||||
static void dwc3_gadget_wakeup_interrupt(struct dwc3 *dwc)
|
||||
{
|
||||
dwc->suspended = false;
|
||||
|
||||
/*
|
||||
* TODO take core out of low power mode when that's
|
||||
* implemented.
|
||||
@@ -4075,10 +4069,8 @@ static void dwc3_gadget_suspend_interrupt(struct dwc3 *dwc,
|
||||
{
|
||||
enum dwc3_link_state next = evtinfo & DWC3_LINK_STATE_MASK;
|
||||
|
||||
if (!dwc->suspended && next == DWC3_LINK_STATE_U3) {
|
||||
dwc->suspended = true;
|
||||
if (dwc->link_state != next && next == DWC3_LINK_STATE_U3)
|
||||
dwc3_suspend_gadget(dwc);
|
||||
}
|
||||
|
||||
dwc->link_state = next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user