This is a note to let you know that I've just added the patch titled media: ipu3-cio2: Fix PM runtime usage_count in driver unbind to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: media-ipu3-cio2-fix-pm-runtime-usage_count-in-driver-unbind.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 909d3096ac99fa2289f9b8945a3eab2269947a0a Mon Sep 17 00:00:00 2001 From: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> Date: Wed, 21 Dec 2022 09:30:11 +0100 Subject: media: ipu3-cio2: Fix PM runtime usage_count in driver unbind From: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> commit 909d3096ac99fa2289f9b8945a3eab2269947a0a upstream. Get the PM runtime usage_count and forbid PM runtime at driver unbind. The opposite is being done in probe() already. Fixes: commit c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver") Cc: stable@xxxxxxxxxxxxxxx # for >= 4.16 Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> Reviewed-by: Bingbu Cao <bingbu.cao@xxxxxxxxx> Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c @@ -1860,6 +1860,9 @@ static void cio2_pci_remove(struct pci_d v4l2_device_unregister(&cio2->v4l2_dev); media_device_cleanup(&cio2->media_dev); mutex_destroy(&cio2->lock); + + pm_runtime_forbid(&pci_dev->dev); + pm_runtime_get_noresume(&pci_dev->dev); } static int __maybe_unused cio2_runtime_suspend(struct device *dev) Patches currently in stable-queue which might be from sakari.ailus@xxxxxxxxxxxxxxx are queue-4.19/media-i2c-ov7670-0-instead-of-einval-was-returned.patch queue-4.19/media-i2c-ov772x-fix-memleak-in-ov772x_probe.patch queue-4.19/media-ipu3-cio2-fix-pm-runtime-usage_count-in-driver-unbind.patch