Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp604799pxb; Thu, 15 Apr 2021 02:06:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcBuT0hhEF9JyJxKsYvf32/6kb3qxG8COLEMYErvmLwSE28D6saqZW1CHf+b9dML2ZLNVI X-Received: by 2002:a50:f395:: with SMTP id g21mr2958494edm.238.1618477598838; Thu, 15 Apr 2021 02:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618477598; cv=none; d=google.com; s=arc-20160816; b=VaaoQacrf+EVDjApUr3w6oW1FJwC/VA/OKSNvLAjDghnRnspU6A2KxyzkAZQmccFSC qtbiGc8R4Lne8tbEgmFs7r3XtJpzEVQ7l3NTSwYIee7E/p/myxhQaoYyYgf5M1w8aA7L 3sqkI+qPgc0yUmC6hB0FPnK9qVCH7KUpa6wAqlAk1Uir6iJiqVTnl6m/aOmqIuunCdRV C/L4gfTn2qmOpc3Nw/kjIQQAjmR7/kdMb4YI6GhSosJg/MWplewZlR2xSJr7Cd1b770I ML4bdEPM7cep5X6rqTyevrdDDKWAsXSO29VaIFOzvV3ONgTle/VLpR3PiGTG9TkDI3Qy Vl3g== 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=a4spAWE7UIx1FXmcMbbjs0xVE+LgmYJDNZERLQ8fOtM=; b=NsFO7iOoWZm1NBbqeNiyVSqI5GNC2HOv5LoGZEGIv635sxzgShQ7jZo549y+gJPSiM 6hx3SAkzCS8i2Za+IpjCgQzW7fEo6D8PMYdUc8lSxDI6IqGbEM7YI39bhPOsZcYHOddK t39dnklqAtZQCiyk/PBuSt/9O2tj4i6gF4/v9Ecs2jkKp4G892ldnOUzkpNZanPXuArD XsoGHi9KB9jIDBMgpKZEJoncr6jej5Fn5ipEOJTB+aFF8pHpzM6pPQ4ZjWsaFX8X564H mj/52ypSvE2TN0RLw4q5yh+eOMI0wP4DguM2sBTAHMM1gj2bqlinnjmmWLylj/++A/Yi mP+A== 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 j7si614276ejm.280.2021.04.15.02.06.15; Thu, 15 Apr 2021 02:06:38 -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 S232078AbhDOJFM (ORCPT + 99 others); Thu, 15 Apr 2021 05:05:12 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15685 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231482AbhDOJFM (ORCPT ); Thu, 15 Apr 2021 05:05:12 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FLYHj6D7vzpY5v; Thu, 15 Apr 2021 17:01:53 +0800 (CST) Received: from [127.0.0.1] (10.69.38.196) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Thu, 15 Apr 2021 17:04:39 +0800 Subject: Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI To: Geert Uytterhoeven CC: Geert Uytterhoeven , Wei Xu , Wolfram Sang , "Andy Shevchenko" , Dmitry Osipenko , Linux I2C , Linux ARM , Linux Kernel Mailing List , Linuxarm References: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> <21d833f0-b1b8-9732-21c7-3a73676e07d3@hisilicon.com> From: Yicong Yang Message-ID: <39f6bbed-9eea-963a-1ef1-a83248f162aa@hisilicon.com> Date: Thu, 15 Apr 2021 17:04:39 +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: <21d833f0-b1b8-9732-21c7-3a73676e07d3@hisilicon.com> 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/15 16:18, Yicong Yang wrote: > On 2021/4/15 2:06, Geert Uytterhoeven wrote: >> Hi Yicong, >> >> On Wed, Apr 14, 2021 at 11:24 AM Yicong Yang wrote: >>> 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. >> >> Thanks for your answer! >> >> I guess it's still fine to add a dependency on ACPI? > > yes. currently we only use this driver through ACPI. So at least > for this driver, it make sense to keep the dependency. > sorry. i was a little mess about this. I dropped this in [1]. so just keep it as is. [1] https://lore.kernel.org/linux-i2c/YGMntYT2iz72wgrd@smile.fi.intel.com/ >> >> Thanks again! >> >>>> 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. >> \ >> Gr{oetje,eeting}s, >> >> Geert >> > > > . >