Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3546334pxb; Wed, 14 Apr 2021 07:58:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyohxEdrRiyBiUvJY6RtGyza/M6zjw7IlYaiHgb6lvYyuqCoNAgxM4gYKa5T8Wt8AvWoFCe X-Received: by 2002:a17:906:3952:: with SMTP id g18mr38205179eje.104.1618412330164; Wed, 14 Apr 2021 07:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618412330; cv=none; d=google.com; s=arc-20160816; b=eSROROGnendP2IK+eYcQXEUX9rdeaDWxYKngDjvwNgPqWr/odpQ6/fn64bt+50rxtH z8QGos+hGXGlZFjPDTiJehnGoRaJHFH98d7nuO/XB2NjaljbcTXNDCVeth1Kojxxac0Y YcVxxMxqVEUMN1OYgLoQl2KzfoTV8NwnTdbETZ4gxgixjchYATLWMvsFzy15sQ4p6h5n /wiy+zAKVAUsyqxAj29bNLY/nX960KNS46Oe6svDNEPKckABBmbA55v+t4Q8fTvnQ5zZ SdAa5oaNppqsu3ehYDQ0Se32z2CUg9d1LWcvsY+JYSfJxvZvrAcCy9cMWi1WCY6i1mCd VXDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=mhTZCzNlhwxHcgmoqJ9EMvw9/NzJzvGA87GJpL9JUmw=; b=Y11x2aNi0t7wV05dyP1zEnyhDbK0IFydm0D8e51I11SGr8tkmYpVU9VfHBZUEmfI1I vAPbnP2TcvPrRfUtF33NxKiVEpYS3qC8/nIW0mi1k7od2XvcpQWQCtdobYgwMa06PqX7 DVyMYzdAquonpdoyv2s/OUgrTnSRJSNu0JCQhDWBzIwFz0Pq5bkfJdVyfDDi4jqvLDsW SAdfgYM1BUnmTNR4kfTaaRyrRAetc5yhWHRzxviGwza2yCSKqW3OTjkhk5nb6536rvwY fpESIjikHBCeRQ8UbttM+7ABhwHezdbKgYykho4EsqbSnEDnsjvSV+UQr/retXBKV1M8 SZwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si2990751edi.199.2021.04.14.07.58.25; Wed, 14 Apr 2021 07:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232391AbhDNJTk (ORCPT + 99 others); Wed, 14 Apr 2021 05:19:40 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:17332 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbhDNJTj (ORCPT ); Wed, 14 Apr 2021 05:19:39 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FKxgb1xhRz9yZX; Wed, 14 Apr 2021 17:16:59 +0800 (CST) Received: from [127.0.0.1] (10.69.38.196) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Wed, 14 Apr 2021 17:19:07 +0800 Subject: Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI To: Geert Uytterhoeven , Wei Xu , Wolfram Sang CC: Andy Shevchenko , Dmitry Osipenko , , , , Linuxarm References: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> From: Yicong Yang Message-ID: Date: Wed, 14 Apr 2021 17:19:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.69.38.196] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/4/13 20:26, Geert Uytterhoeven wrote: > 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. > this is a public IP which doesn't specifically depend on ARCH_HISI. I'm not sure all the platform this IP on has ARCH_HISI configured. The driver will not be compiled by default config. This is not correct to have this dependence. > Fixes: d62fbdb99a85730a ("i2c: add support for HiSilicon I2C controller") > Signed-off-by: Geert Uytterhoeven > --- > 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. >