Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5032625c authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Gerrit - the friendly Code Review server
Browse files

usb: ci13xxx_udc: Process interrupts as long as USB is outside LPM



The UDC IRQ handler is not acknowledging any interrupt that comes after
the cable is disconnected. This leaves a small window where the controller
can generate an interrupt just after marking the vbus_active to false and
before disabling the controller interrupts. When this happens, the kernel
disables the interrupt thinking it is a broken or bad IRQ after an
interrupt storm. The kernel keeps simulating this interrupt at regular
intervals and if that happens when USB clocks are off, it results in an
unclocked access.

commit c02df9c3 (usb:phy-msm-usb: Fix unclocked access during host bus
suspend) added the vbus_active check in UDC IRQ. Instead add a check to
see if USB is in LPM or not before accessing the registers.

CRs-Fixed: 762343
Change-Id: I153fef046266fe92454ea6ec3cf5a07181af7630
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent f499a65b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment