From patchwork Tue Jan 3 06:46:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Crawford X-Patchwork-Id: 13087251 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3CE4C3DA7D for ; Tue, 3 Jan 2023 06:51:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236807AbjACGv4 (ORCPT ); Tue, 3 Jan 2023 01:51:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236776AbjACGvz (ORCPT ); Tue, 3 Jan 2023 01:51:55 -0500 X-Greylist: delayed 304 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 02 Jan 2023 22:51:50 PST Received: from ipmail06.adl3.internode.on.net (ipmail06.adl3.internode.on.net [150.101.137.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EFEA25F7F for ; Mon, 2 Jan 2023 22:51:50 -0800 (PST) IronPort-SDR: R8jY60ch4jtfGFHMW2Snq4VxPG1Ay1HkGBxgdRTNHUrzEQn8bn4FHARMKLD4NhNH5zFT79oNcF ybJQaYsSMXy3I9lxO2Lej9GaLzzGOtErswQV+AfqOlj/PYVH0sU+x7DYwhhuy1HmTYpc+Dg4Zy c+a8Wg/amXnDBt6Nr8mqLBVcHdGRt+Ib9OcFADzd6utf4MCTaVJc4+8lI9fwT5u59eVnKy9rlO YLByyt4S+yRU86dqt9Krd1QhQwZadVmRECrXTZIKnjec8e0DIONg2j9Mlg9MXE70QhpDYX4PbB CBvts8jNO61BxTqK8QTX9gBG X-SMTP-MATCH: 0 X-IPAS-Result: A2BeBwAozrNjjPQc8jxaHgE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Q F+L9/lbJa6NZpHvHmkREwx5PO6N4u5FyDDd4MM8LFj++CIqrqGMVl9fPkfQhSFQcOl1PYciz btzscIa8Vbk2BArLs3AhTpd6GqLNHBGXqA68JAWRob201J5xlZHaJ3aKyn3/JDWNYoUaxJ0f mfIifqQnalYy2rDb2E3SyrH091dspJS6hpE+0BTdV2Gl+3MiuIzwBAMoy88SR5Yz0sb3u8va HJnMVZ5efeH8zty35IRATjpQV0bQUfJvxatlx0SiGTFTkLuSnTCLSs2PuPL9V1AqzBQeT1S/ be5zmf5UG+0I5mohXVuARJo+675UNh81gzeg8T7Tc6LKJ9rMzPqj5inaXcMtxa6U9g6g1fKp Lc28et9AUEh2fX8f0Hm51Gm6Ikt IronPort-HdrOrdr: A9a23:1LCVCqn6aPV0AwEKEVnLICBwaDrpDfIC3DAbv31ZSRFFG/Fw9/ rFoB3U737JYVEqKRYdcbLpAsS9qBbnmaKdjrNhXotKMDOIhILKFvAH0WKd+UyDJ8SWzIc0vp uIGJIfNDSfNzZHZUmW2njfLz9Z+qjjzEmxv5al855yd3AQV0i+1XYBNu5LencGPDV7OQ== X-IronPort-Anti-Spam-Filtered: true Received: from 60-242-28-244.static.tpgi.com.au (HELO bits.crawford.emu.id.au) ([60.242.28.244]) by ipmail06.adl3.internode.on.net with ESMTP; 03 Jan 2023 17:16:44 +1030 Received: from agc.com.au (agc.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc07]) (authenticated bits=0) by bits.crawford.emu.id.au (8.17.1/8.17.1) with ESMTPSA id 3036kRlL2641329 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 3 Jan 2023 17:46:38 +1100 Authentication-Results: bits.crawford.emu.id.au; arc=none smtp.remote-ip=fdd2:7aad:d478:1::cb10:cc07 DKIM-Filter: OpenDKIM Filter v2.11.0 bits.crawford.emu.id.au 3036kRlL2641329 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawford.emu.id.au; s=s1; t=1672728399; bh=Bbwgq2hqU7ZXey8rvM0AUpl/mIlGyl3htk5ddBRu00c=; h=From:To:Cc:Subject:Date:From; b=H2JxwLhSUNGz94BPXL2x/fKs6QBLuQwQ6G+uExbx8BCJP6H0qhVHdubmMxFFGcKE+ Qthtmbls+/Tbh1jkqtvxmM80qgYut85F/aDOpfhgCz9ueahpxD6wkwZlyTar7yAHWf loS4jr4qZyuwHMq4MMtthjv8NRc335Nwlp7mk0Ldkh6dtfzwC1ba88MhmCW2G3TvW6 3btXFPa43wAygDfaAuEJ7+d5ivix0jEcHTt6bZkwRW6xK4F5ZYWxga6Uk0VwM1NLvF XsaWhB14ywHtddquk2JdYZgVxtScyW3XP30xXheKEqVqP87FTqWa+oB9uJGy0kb7xt XJNo6C5cu5c8w== From: Frank Crawford To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Frank Crawford Subject: [PATCH v1 0/2] hwmon: (it87) Set second Super-IO chip in configuration mode Date: Tue, 3 Jan 2023 17:46:10 +1100 Message-Id: <20230103064612.404401-1-frank@crawford.emu.id.au> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (bits.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc01]); Tue, 03 Jan 2023 17:46:39 +1100 (AEDT) X-Virus-Scanned: clamav-milter 0.103.7 at bits.crawford.emu.id.au X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org On various Gigabyte AM4 boards (AB350, AX370), the second Super-IO chip (IT8792E) needs to be in configuration mode before accessing the first due to a bug in IT8792E which otherwise results in LPC bus access errors. This needs to be done before accessing the first Super-IO chip since the second chip may have been accessed prior to loading this driver. The problem is also reported to affect IT8795E, which is used on X299 boards and has the same chip ID as IT8792E (0x8733). It also appears to affect systems with IT8790E, which is used on some Z97X-Gaming boards as well as Z87X-OC. Frank Crawford (2): Allow calling __superio_enter outside mux Set second Super-IO chip in configuration mode drivers/hwmon/it87.c | 71 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 4 deletions(-)