From patchwork Wed Dec 16 13:46:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 11977627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41684C2BBCA for ; Wed, 16 Dec 2020 13:47:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E1DCB233CE for ; Wed, 16 Dec 2020 13:47:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726350AbgLPNr0 (ORCPT ); Wed, 16 Dec 2020 08:47:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgLPNrZ (ORCPT ); Wed, 16 Dec 2020 08:47:25 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5A7C0617A6 for ; Wed, 16 Dec 2020 05:46:45 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id 51mj2400S4C55Sk011mjbC; Wed, 16 Dec 2020 14:46:44 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kpX8d-00BB86-MB; Wed, 16 Dec 2020 14:46:43 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1kpX8c-005YG7-Pf; Wed, 16 Dec 2020 14:46:42 +0100 From: Geert Uytterhoeven To: Jean Delvare , Guenter Roeck , Kun Yi Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] hwmon: SENSORS_SBTSI should depend on X86 Date: Wed, 16 Dec 2020 14:46:41 +0100 Message-Id: <20201216134641.1323288-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org The AMD SB Temperature Sensor Interface (SB-TSI) is only present on AMD X86 SoCs. Hence add a dependency on X86, to prevent asking the user about this driver when configuring a kernel without AMD X86 platform support. Fixes: e7bb1a2ab8c4b156 ("hwmon: (sbtsi) Add basic support for SB-TSI sensors") Signed-off-by: Geert Uytterhoeven --- drivers/hwmon/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 1ecf697d8d99b70c..63d28f98108d4bb5 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1536,6 +1536,7 @@ config SENSORS_SL28CPLD config SENSORS_SBTSI tristate "Emulated SB-TSI temperature sensor" depends on I2C + depends on X86 || COMPILE_TEST help If you say yes here you get support for emulated temperature sensors on AMD SoCs with SB-TSI interface connected to a BMC device.