]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: cppi41: Fix unpaired pm runtime when only a USB hub is connected
authorTony Lindgren <tony@atomide.com>
Wed, 9 Nov 2016 16:47:59 +0000 (09:47 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 14 Nov 2016 05:27:32 +0000 (10:57 +0530)
commita19b59b26d1ca3d53613b8443fb143c4e949a6b1
tree862b74e2285f3ffe175e6b4138564d980223d505
parent5818ee9d17e1bfb1b14ff16d7b1078024754e90b
dmaengine: cppi41: Fix unpaired pm runtime when only a USB hub is connected

On am335x with musb host we can end up with unpaired pm runtime calls
if a hub with no devices is connected and disconnected.

This is because of the conditional pm runtime calls which are always
a bad idea. Let's fix the issue by making them unconditional and
paired in each function.

Fixes: 34dc38e881bc ("dmaengine: cppi41: Add basic PM runtime support")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c