]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blobdiff - queue-4.4/hwmon-lm90-reduce-maximum-conversion-rate-for-g781.patch
Linux 4.4.302
[thirdparty/kernel/stable-queue.git] / queue-4.4 / hwmon-lm90-reduce-maximum-conversion-rate-for-g781.patch
diff --git a/queue-4.4/hwmon-lm90-reduce-maximum-conversion-rate-for-g781.patch b/queue-4.4/hwmon-lm90-reduce-maximum-conversion-rate-for-g781.patch
deleted file mode 100644 (file)
index 5784e1b..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-From 4146e8003728dde3d6060ae77d11fb6b24e0217b Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 6 Jan 2022 11:48:52 -0800
-Subject: hwmon: (lm90) Reduce maximum conversion rate for G781
-
-From: Guenter Roeck <linux@roeck-us.net>
-
-[ Upstream commit a66c5ed539277b9f2363bbace0dba88b85b36c26 ]
-
-According to its datasheet, G781 supports a maximum conversion rate value
-of 8 (62.5 ms). However, chips labeled G781 and G780 were found to only
-support a maximum conversion rate value of 7 (125 ms). On the other side,
-chips labeled G781-1 and G784 were found to support a conversion rate value
-of 8. There is no known means to distinguish G780 from G781 or G784; all
-chips report the same manufacturer ID and chip revision.
-Setting the conversion rate register value to 8 on chips not supporting
-it causes unexpected behavior since the real conversion rate is set to 0
-(16 seconds) if a value of 8 is written into the conversion rate register.
-Limit the conversion rate register value to 7 for all G78x chips to avoid
-the problem.
-
-Fixes: ae544f64cc7b ("hwmon: (lm90) Add support for GMT G781")
-Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/hwmon/lm90.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
-index 420f341272621..6f6f173aca6f2 100644
---- a/drivers/hwmon/lm90.c
-+++ b/drivers/hwmon/lm90.c
-@@ -265,7 +265,7 @@ static const struct lm90_params lm90_params[] = {
-               .flags = LM90_HAVE_OFFSET | LM90_HAVE_REM_LIMIT_EXT
-                 | LM90_HAVE_BROKEN_ALERT,
-               .alert_alarms = 0x7c,
--              .max_convrate = 8,
-+              .max_convrate = 7,
-       },
-       [lm86] = {
-               .flags = LM90_HAVE_OFFSET | LM90_HAVE_REM_LIMIT_EXT,
--- 
-2.34.1
-