From patchwork Tue Apr 13 12:26:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12200395 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 76797C433B4 for ; Tue, 13 Apr 2021 12:30:28 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B88561369 for ; Tue, 13 Apr 2021 12:30:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B88561369 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=lNL5wltWeeUtqBsnfgNgdkMWsIYeNu6012AquFKgtDs=; b=VOLMnzsjnbQzQPAT3QGIS9YYTE Rj3QWAWZP+0KpU+qbwyFAvGBNHsEvb5YcOf/Z4Qz522x0ffyQs/PcKXzB2V/7OUoGq1zkTlILbnAJ 0xeHEK+CWyFhxZOVv3HRVbdaJC+ZqHUkqCUaFkOB7YgRPfP63u8KHPJUuZvhywvXty8uWa7+twkMj CyIZd08IQ+RujxRW8c5K2Sf9pIvg9xy1WJ/xWpOWlc+57WG7vXtRy1ldyUsPI77jQFAOc+WtFvqru X3gG2Dt4KwNqRb8A6Z1iNfWylJLsc1FiK9ytFGMJxqCSafmyVjSix+XY+tMTJaGbU67l3F0vztvjM aukHQKgA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWI9Q-009E6W-5y; Tue, 13 Apr 2021 12:28:16 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWI7b-009Dh9-FZ for linux-arm-kernel@desiato.infradead.org; Tue, 13 Apr 2021 12:26:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=HL335b/BgH5GSu9KsQwnigquvyHAasw8URmSNbqRagk=; b=nP7tXInAWOwL1Xc9w3PjYcBnvL Auql0yXXZVLBMWgYGtctO0zHBelQdrwLsb0oXNf4FxxoREcrnZUCXUG7ZR6qRHi8JkZpXQzaNyl87 bY41M5Lu1bUq97qQ0TVefovqmfalwaT/RzMA1jJumxKR5/2T3DiCIgY4C50OGbz0XLjQTJANJ+gj1 n9lyP/Ix2yFQgYogGuNoRHlMZYo12FFDPbuKG4bx/2gOeA5vpdA40X6+6REAyurclLObvlQrIZ2eJ ZL5nODrbncNUclL7Z79U7RcRTCtBw2XWAxR8pUoI/Y0SDObvOBCNo9Yg58WxfHAbaAhYZYk3lMBst Tud1G1xg==; Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWI7Y-0071ED-Qe for linux-arm-kernel@lists.infradead.org; Tue, 13 Apr 2021 12:26:22 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:ed15:b7e9:afd7:f062]) by xavier.telenet-ops.be with bizsmtp id sCSH2400E1dBBzp01CSHQK; Tue, 13 Apr 2021 14:26:18 +0200 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 1lWI7V-00FJMe-1a; Tue, 13 Apr 2021 14:26:17 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lWI7U-002kW9-HP; Tue, 13 Apr 2021 14:26:16 +0200 From: Geert Uytterhoeven To: Yicong Yang , Wei Xu , Wolfram Sang Cc: Andy Shevchenko , Dmitry Osipenko , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI Date: Tue, 13 Apr 2021 14:26:15 +0200 Message-Id: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210413_052621_027718_C708A731 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The HiSilicon Kunpeng I2C controller is only present on HiSilicon Kunpeng SoCs, and its driver relies on ACPI to probe for its presence. Hence add dependencies on ARCH_HISI and ACPI, to prevent asking the user about this driver when configuring a kernel without Hisilicon platform or ACPI firmware support. Fixes: d62fbdb99a85730a ("i2c: add support for HiSilicon I2C controller") Signed-off-by: Geert Uytterhoeven Reviewed-by: Andy Shevchenko --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index b5b4e0d0ff4dd0bc..3ead6d9e130b2ebc 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -647,7 +647,7 @@ config I2C_HIGHLANDER config I2C_HISI tristate "HiSilicon I2C controller" - depends on ARM64 || COMPILE_TEST + depends on (ARM64 && ARCH_HISI && ACPI) || COMPILE_TEST help Say Y here if you want to have Hisilicon I2C controller support available on the Kunpeng Server.