CHROMIUM: media/ipu6: do not underflow power usage counter
ipu_pci_probe() enters with device PM usage counter of 2: one from driver_probe_device()->pm_runtime_barrier() and one from pci_device_probe()->__pm_runtime_resume(). Then it drops it down to 0, while the device probing is not done yet and has a number of fail points. One such scenario is when FW mapping fails and ipu_pci_probe() hits the error out path, with PM counter adjusted: [ 29.815181] intel-ipu6 intel-ipu: Runtime PM usage count underflow! UPSTREAM-TASK=b:149068439 UPSTREAM-TASK=b:149068672 BUG=b:241824013 TEST=boot on redrix and dedede Signed-off-by:Sergey Senozhatsky <senozhatsky@chromium.org> Change-Id: I3931039f099f9381691ffcf95084bd3508d43b03 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3820542 Reviewed-by:
Ricardo Ribalda <ribalda@chromium.org>
Loading
Please register or sign in to comment