Re: [PATCH] [v2] PCI: qcom: Fix runtime PM imbalance on error

2020-07-07 Thread Lorenzo Pieralisi
On Tue, Jul 07, 2020 at 01:50:00PM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. > > Signed-off-by: Dinghao Liu > --- > > Cha

[PATCH] [v2] PCI: qcom: Fix runtime PM imbalance on error

2020-07-06 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Remove redundant brackets. --- drivers/pci/controller/dwc/pci