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

Commit 8e64c400 authored by ChandanaKishori Chiluveru's avatar ChandanaKishori Chiluveru
Browse files

USB: android: Remove PM QOS request during cable disconnect



USB android driver is registering for PM QOS by adding PM QOS request
with request type to PM_QOS_REQ_AFFINE_IRQ and irq number. Then pm_qos
driver sets affinity_notify callback for the irq to get notification.
The same irq will be used for host mode with different irq handler.
When host cable is disconnected, USB driver removes hcd and deregisters
host irq handler by calling free_irq(dev_id). Here irq manager is
throwing warning because driver is registered qos notifier and
calling free_irq for this irq.

Fix this by adding support for removing PM QOS request during
disconnect/suspend and add back again on USB connect.

Change-Id: I6025be2d4f55a6fb2a3158f058b02727d09c7761
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: default avatarChandanaKishori Chiluveru <cchilu@codeaurora.org>
parent d171201f
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