mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
media: staging/ipu7: Call synchronous RPM suspend in probe failure
If firmware authentication failed during driver probe, driver call an
asynchronous API to suspend the psys device but the bus device will be
removed soon, thus runtime PM of bus device will be disabled soon, that
will cancel the suspend request, so use synchronous suspend to make
sure the runtime suspend before disabling its RPM.
IPU7 hardware has constraints that the PSYS device must be powered off
before ISYS, otherwise it will cause machine check error.
Cc: Stable@vger.kernel.org
Fixes: b7fe4c0019 ("media: staging/ipu7: add Intel IPU7 PCI device driver")
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
9ad65684b9
commit
1433e6ccc2
|
|
@ -2620,7 +2620,7 @@ static int ipu7_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
if (!IS_ERR_OR_NULL(isp->isys) && !IS_ERR_OR_NULL(isp->isys->mmu))
|
||||
ipu7_mmu_cleanup(isp->isys->mmu);
|
||||
if (!IS_ERR_OR_NULL(isp->psys))
|
||||
pm_runtime_put(&isp->psys->auxdev.dev);
|
||||
pm_runtime_put_sync(&isp->psys->auxdev.dev);
|
||||
ipu7_bus_del_devices(pdev);
|
||||
release_firmware(isp->cpd_fw);
|
||||
buttress_exit:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user