Patch "media: ipu3-cio2: Fix PM runtime usage_count in driver unbind" has been added to the 6.2-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 6.2-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-6.2 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-main.c |    3 +++
 1 file changed, 3 insertions(+)

--- a/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c
+++ b/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c
@@ -1843,6 +1843,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-6.2/media-ov5640-fix-soft-reset-sequence-and-timings.patch
queue-6.2/media-max9286-fix-memleak-in-max9286_v4l2_register.patch
queue-6.2/media-i2c-tc358746-fix-missing-return-assignment.patch
queue-6.2/media-i2c-tc358746-fix-ignoring-read-error-in-g_regi.patch
queue-6.2/media-i2c-ov7670-0-instead-of-einval-was-returned.patch
queue-6.2/media-i2c-imx219-fix-binning-for-raw8-capture.patch
queue-6.2/media-i2c-imx219-split-common-registers-from-mode-ta.patch
queue-6.2/media-mc-get-media_device-directly-from-pad.patch
queue-6.2/media-i2c-ov772x-fix-memleak-in-ov772x_probe.patch
queue-6.2/media-i2c-tc358746-fix-possible-endianness-issue.patch
queue-6.2/media-ov5675-fix-memleak-in-ov5675_init_controls.patch
queue-6.2/media-ov5640-handle-delays-when-no-reset_gpio-set.patch
queue-6.2/media-ipu3-cio2-fix-pm-runtime-usage_count-in-driver-unbind.patch
queue-6.2/media-ov2740-fix-memleak-in-ov2740_init_controls.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux