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)
commit098de42ad6708866501a00155ba85350bc0b29e5
tree862b74e2285f3ffe175e6b4138564d980223d505
parent12f5908080bdccca2cb2f7ad850cb360c92f481a
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: fdea2d09b997 ("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