* [PATCH] hwmon: (it87) Remove useless test during device detection
@ 2017-05-04 9:35 Jean Delvare
2017-05-04 11:33 ` Jean Delvare
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2017-05-04 9:35 UTC (permalink / raw)
To: linux-hwmon; +Cc: Russell King, Guenter Roeck
There is no reason to treat the IT8705F differently during device
detection. If a single IT8705F chip indeed answers to both Super-IO
addresses, we have code in place to detect the duplicate device
address and skip the second one.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/it87.c | 7 -------
1 file changed, 7 deletions(-)
--- linux-4.11.orig/drivers/hwmon/it87.c 2017-05-01 04:47:48.000000000 +0200
+++ linux-4.11/drivers/hwmon/it87.c 2017-05-04 11:17:49.868328706 +0200
@@ -3224,13 +3224,6 @@ static int __init sm_it87_init(void)
goto exit_dev_unregister;
found = true;
-
- /*
- * IT8705F may respond on both SIO addresses.
- * Stop probing after finding one.
- */
- if (sio_data.type == it87)
- break;
}
if (!found) {
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] hwmon: (it87) Remove useless test during device detection
2017-05-04 9:35 [PATCH] hwmon: (it87) Remove useless test during device detection Jean Delvare
@ 2017-05-04 11:33 ` Jean Delvare
0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2017-05-04 11:33 UTC (permalink / raw)
To: linux-hwmon; +Cc: Russell King, Guenter Roeck
On Thu, 4 May 2017 11:35:06 +0200, Jean Delvare wrote:
> There is no reason to treat the IT8705F differently during device
> detection. If a single IT8705F chip indeed answers to both Super-IO
> addresses, we have code in place to detect the duplicate device
> address and skip the second one.
> (...)
Bah, scratch this. I can't even convince myself that this is a good
idea. Sure, the rest of the code is enough to deal with the situation,
but why keep looking for something when we already know we will find and
discard a duplicate...
Sorry for the noise,
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-04 11:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-04 9:35 [PATCH] hwmon: (it87) Remove useless test during device detection Jean Delvare
2017-05-04 11:33 ` Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox