Re: [PATCH] usb: dwc3: fix runtime PM in error path

From: Felipe Balbi
Date: Fri Jun 10 2016 - 05:17:14 EST



Hi,

Roger Quadros <rogerq@xxxxxx> writes:
> If there is a failure after pm_runtime_enable/get_sync()
> we need to call pm_runtime_disable/put_sync().
>
> Otherwise it will lead to an unbalanced pm_runtime_enable() on the
> subsequent probe if the earlier probe bailed out due to -EPROBE_DEFER.
>
> Signed-off-by: Roger Quadros <rogerq@xxxxxx>

where is this supposed to be applied? You're not checking if
pm_runtime_get() failed at all.

--
balbi

Attachment: signature.asc
Description: PGP signature