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:Vijayavardhan Vennapusa <vvreddy@codeaurora.org> Signed-off-by:
ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Loading
Please register or sign in to comment