Skip to contentSkip to conversation

PCI: qcom: Improve exception handling in qcom_pcie_probe()

PATCH Markus Elfring 1 participant 1 message May 26, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Please avoid a typo in the patch subject (by a possible alternative?).

Quoted 1 line

In function qcom_pcie_probe(), there are several error-handling problem.

Wording adjustments:
This function contained improvable implementation details according to exception handling.

Quoted 2 lines

because refcount will be increased even pm_runtime_get_sync() returns an error.

because the reference count will be increased despite of the failure. Thus add the missed function call.

Quoted 1 line

2. pm_runtime_disable() are called twice, …

…
Thus remove redundant function calls.

Regards,
Markus