Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262097AbVCaXpq (ORCPT ); Thu, 31 Mar 2005 18:45:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262096AbVCaXjj (ORCPT ); Thu, 31 Mar 2005 18:39:39 -0500 Received: from mail.kroah.org ([69.55.234.183]:34784 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S262097AbVCaXYJ convert rfc822-to-8bit (ORCPT ); Thu, 31 Mar 2005 18:24:09 -0500 Cc: khali@linux-fr.org Subject: [PATCH] I2C: Skip broken detection step in it87 In-Reply-To: <1112311390208@kroah.com> X-Mailer: gregkh_patchbomb Date: Thu, 31 Mar 2005 15:23:11 -0800 Message-Id: <1112311391247@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Reply-To: Greg K-H To: linux-kernel@vger.kernel.org, sensors@Stimpy.netroedge.com Content-Transfer-Encoding: 7BIT From: Greg KH Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1733 Lines: 45 ChangeSet 1.2329, 2005/03/31 14:07:24-08:00, khali@linux-fr.org [PATCH] I2C: Skip broken detection step in it87 One of the detection steps in the it87 chip driver was reported to be broken for some revisions of the IT8712F chip [1] [2]. This detection step is a legacy from the lm78 driver and the documentation available for the IT8705F and IT8712F chips does not mention it at all. For this reason, I propose to skip this detection step for Super-I/O chips. Super-I/O chips have already been identified when we reach this step, so it is redundant (additionally do being broken). This closes bug #4335. [1] http://bugzilla.kernel.org/show_bug.cgi?id=4335 [2] http://archives.andrew.net.au/lm-sensors/msg29962.html Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman drivers/i2c/chips/it87.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -Nru a/drivers/i2c/chips/it87.c b/drivers/i2c/chips/it87.c --- a/drivers/i2c/chips/it87.c 2005-03-31 15:18:29 -08:00 +++ b/drivers/i2c/chips/it87.c 2005-03-31 15:18:29 -08:00 @@ -734,10 +734,9 @@ goto ERROR0; /* Probe whether there is anything available on this address. Already - done for SMBus clients */ + done for SMBus and Super-I/O clients */ if (kind < 0) { - if (is_isa) { - + if (is_isa && !chip_type) { #define REALLY_SLOW_IO /* We need the timeouts for at least some IT87-like chips. But only if we read 'undefined' registers. */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/