summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorPrashanth K <quic_prashk@quicinc.com>2023-02-24 11:16:58 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-09 15:31:15 +0100
commit4decf4060ecfee1f7a710999fcd421645ac0c419 (patch)
tree460b80b03f376de1d51f763c70c95c856d995478 /drivers/usb/gadget/composite.c
parentb84ba26c922a99c7541d53ab1971f070b65264fe (diff)
usb: dwc3: gadget: Change condition for processing suspend event
Currently we process the suspend interrupt event only if the device is in configured state. Consider a case where device is not configured and got suspend interrupt, in that case our gadget will still use 100mA as composite_suspend didn't happen. But battery charging specification (BC1.2) expects a downstream device to draw less than 2.5mA when unconnected OR suspended. Fix this by removing the condition for processing suspend event, and thus composite_resume would set vbus draw to 2. Fixes: 72704f876f50 ("dwc3: gadget: Implement the suspend entry event handler") Signed-off-by: Prashanth K <quic_prashk@quicinc.com> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/1677217619-10261-2-git-send-email-quic_prashk@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
0 files changed, 0 insertions, 0 deletions