]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Mar 2020 09:58:02 +0000 (11:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Mar 2020 09:58:02 +0000 (11:58 +0200)
added patches:
i2c-hix5hd2-add-missed-clk_disable_unprepare-in-remove.patch

queue-4.9/i2c-hix5hd2-add-missed-clk_disable_unprepare-in-remove.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/i2c-hix5hd2-add-missed-clk_disable_unprepare-in-remove.patch b/queue-4.9/i2c-hix5hd2-add-missed-clk_disable_unprepare-in-remove.patch
new file mode 100644 (file)
index 0000000..4f63442
--- /dev/null
@@ -0,0 +1,31 @@
+From e1b9f99ff8c40bba6e59de9ad4a659447b1e4112 Mon Sep 17 00:00:00 2001
+From: Chuhong Yuan <hslester96@gmail.com>
+Date: Mon, 4 Nov 2019 23:00:48 +0800
+Subject: i2c: hix5hd2: add missed clk_disable_unprepare in remove
+
+From: Chuhong Yuan <hslester96@gmail.com>
+
+commit e1b9f99ff8c40bba6e59de9ad4a659447b1e4112 upstream.
+
+The driver forgets to disable and unprepare clk when remove.
+Add a call to clk_disable_unprepare to fix it.
+
+Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
+Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
+Cc: stable@kernel.org
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/i2c/busses/i2c-hix5hd2.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/i2c/busses/i2c-hix5hd2.c
++++ b/drivers/i2c/busses/i2c-hix5hd2.c
+@@ -498,6 +498,7 @@ static int hix5hd2_i2c_remove(struct pla
+       i2c_del_adapter(&priv->adap);
+       pm_runtime_disable(priv->dev);
+       pm_runtime_set_suspended(priv->dev);
++      clk_disable_unprepare(priv->clk);
+       return 0;
+ }
index ec9f850d3d4c62f5c52283a4f32ea0ddbbb1ef7e..924864035077bd9a18ce453a602b91a934d6d88f 100644 (file)
@@ -55,3 +55,4 @@ dt-bindings-net-fman-erratum-a050385.patch
 scsi-ipr-fix-softlockup-when-rescanning-devices-in-p.patch
 mac80211-do-not-send-mesh-hwmp-preq-if-hwmp-is-disab.patch
 sxgbe-fix-off-by-one-in-samsung-driver-strncpy-size-.patch
+i2c-hix5hd2-add-missed-clk_disable_unprepare-in-remove.patch