Message ID | 20230416042510.1929077-5-frank@crawford.emu.id.au (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-hwmon-owner@vger.kernel.org> 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 0F93DC77B61 for <linux-hwmon@archiver.kernel.org>; Sun, 16 Apr 2023 04:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229970AbjDPEZn (ORCPT <rfc822;linux-hwmon@archiver.kernel.org>); Sun, 16 Apr 2023 00:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjDPEZm (ORCPT <rfc822;linux-hwmon@vger.kernel.org>); Sun, 16 Apr 2023 00:25:42 -0400 Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [150.101.137.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 023542D4C for <linux-hwmon@vger.kernel.org>; Sat, 15 Apr 2023 21:25:40 -0700 (PDT) IronPort-SDR: 643b78c3_2F9B1D0oTPNsjasTbE69YPfHHiXBniVAFLCyukcUH1a9Hs/ Uvfx1xio4ETL28FP604p5JRRcM8PfHznr9+1HLA== X-SMTP-MATCH: 0 X-IPAS-Result: A2ArAACkdztkjPQc8jxaHAEBAQEBAQcBARIBAQQEAQFJgTMGAQELAYItgk+zYYF+DwEPAQFEBAEBhQYChTwmNQgOAQIEAQEBAQMCAwEBAQEBAQMBAQYBAQEBAQEGBBQBAQEBQEWFaA2GBAIBAzIBDQEBNwEPGThXBgESgn6CXa83gQGCCAEBBoJimmqBXgmBQQGLdIEWgzZ6Qj+BToR+gQWKAZpWgTR2gSAOSnKBBAIJAhFrgRAIaoF5QAINZAsOb4FJgyoE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vORoGwJcW58OKKBUlbg== 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 ipmail03.adl2.internode.on.net with ESMTP; 16 Apr 2023 13:55:40 +0930 Received: from agc.crawford.emu.id.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 33G4PCj53415316 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 16 Apr 2023 14:25:36 +1000 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 33G4PCj53415316 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawford.emu.id.au; s=s1; t=1681619136; bh=U6BktsoWzMH67w/TwPnlaIRCOv4RVUAHhIuHtUPVPf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CZwPdFm98aEvH2ToOjyYBSYfC7fZfdKNp+JYSkb+24UMmKF33WohszdAfzuUPB7e9 YsuoIF9uPGcS8vppAsVeHkJ7mTlPxfJOdgF+9s/8FiGezGyG/B7cinvY1yPFUdAetL TuNAMcxJZprr+VPG6CDodMu+DQo3cpjbD9eH42q2GDGwulI8TZGna9H38lJV5BCe0i PdFSM09yiYQxgmdIqJqHrnrXAiRHdjAhmivBBIQS1BAldmvmPMKm8n6nbMBYqf/HkC FH0NBuJ13tuW9G2Lfsnccmb8gH8hGzMuwhHMoL6646T6xwEEpOPFR3Aw9zvUUH9XuC 7I99mSyN73J+g== From: Frank Crawford <frank@crawford.emu.id.au> To: Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net> Cc: linux-hwmon@vger.kernel.org, Frank Crawford <frank@crawford.emu.id.au> Subject: [PATCH v2 4/4] hwmon: (it87) Disable/enable SMBus access for IT8622E chipset Date: Sun, 16 Apr 2023 14:25:10 +1000 Message-Id: <20230416042510.1929077-5-frank@crawford.emu.id.au> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230416042510.1929077-1-frank@crawford.emu.id.au> References: <20230416042510.1929077-1-frank@crawford.emu.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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]); Sun, 16 Apr 2023 14:25:36 +1000 (AEST) X-Virus-Scanned: clamav-milter 0.103.8 at bits.crawford.emu.id.au X-Virus-Status: Clean Precedence: bulk List-ID: <linux-hwmon.vger.kernel.org> X-Mailing-List: linux-hwmon@vger.kernel.org |
Series |
hwmon: (it87) Add access control for SMBus
|
expand
|
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 2922f551b717..9b7628b2a678 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -474,6 +474,7 @@ static const struct it87_devices it87_devices[] = { | FEAT_FIVE_PWM | FEAT_IN7_INTERNAL | FEAT_PWM_FREQ2 | FEAT_AVCC3 | FEAT_VIN3_5V, .peci_mask = 0x07, + .smbus_bitmap = BIT(1) | BIT(2), }, [it8628] = { .name = "it8628",
Configure the IT8622E chip to disable/re-enable access via an SMBus when reading or writing the chip's registers. Signed-off-by: Frank Crawford <frank@crawford.emu.id.au> --- v2: * No change. --- drivers/hwmon/it87.c | 1 + 1 file changed, 1 insertion(+)