Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp357337pxb; Wed, 14 Apr 2021 17:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLFjH0222N6g83pJhbFBUF8jcQTd6kzJPco0iyTEs1gZSb74oy+A/KmRH9JpMSnWR1xTzO X-Received: by 2002:a17:902:ac89:b029:e6:d199:29ac with SMTP id h9-20020a170902ac89b02900e6d19929acmr1021260plr.46.1618447408206; Wed, 14 Apr 2021 17:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618447408; cv=none; d=google.com; s=arc-20160816; b=yvRRaHnzhS7GpDZjSEQ4MEAkMC72a3BKMKtGLfCjUlWKfCFQbJ2jw7+Ql/nPiYa2Cg 9R0WgoiwkXKDVLGdMgQPAcJ3oWWxSfVYa77+/dEsciW6mae9wu7pyHP4vBUrKMCq+RSl lVh8soNV4ZhaYBV8aTKIV3r1MrCCMX4mXiCgDKNN6x6YCXEn/5oEjTjRjmmSHnq+bDRQ iR5U98vK+mc1SDJVwEgRL7xELGAw18UeHiUfNxi1BSpxBz/271X0lt0A1F2TJ+eYVEyJ +esfdBysdAPRAjx57IIGRHiv5Ucp2xpfek65lf3GJZNiUUxgB7PSDAfq7URz8eQKTzBE UbqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=DSmLnHTvXws7aaU430qmBleJZVjMHaoWUz+6BPnoCyY=; b=ZQVGvoucuxSvgW/glCEXFUb9t4oiJHne88pvpjvSeiYlhQRpK4A7tIbbeCq3pMuyVx J/2fUInqK8Sn11u4rsSeuybeoyQQGExP1HWXEdOAJ/gObI4UZLAVpFVclN3oIFz2u6wf tRLF0URSKQz0nEDsmQg4JJmKBYCIekmFJTd3Eaeb8/vncp7A8LEHAymjXu861ZSxI/0S olGVSNg5tssuz5UQ39B9DI7eSHCzkZJWJRRiSI1hB76UrGrRGJGbyqDoWuhsYSC81Lq5 3cXF13ph1peR+XRzeQDQ4vhbkCQKgUng3uen8FnlWvXKYoEDg0zRP7cmE68F4ttK4NGZ C/EQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si1252360pji.27.2021.04.14.17.43.16; Wed, 14 Apr 2021 17:43:28 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352175AbhDNTOf (ORCPT + 99 others); Wed, 14 Apr 2021 15:14:35 -0400 Received: from mga17.intel.com ([192.55.52.151]:6090 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234810AbhDNTOd (ORCPT ); Wed, 14 Apr 2021 15:14:33 -0400 IronPort-SDR: xBgx9sbQT3IsgryJ/amAmSLeUiPG+Uas9BMJKmEL+oPXF2KKYdtzI+/W0BMhHrNfIYztL7dlDy 8NqnkyCNWhRQ== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="174820144" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="174820144" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 12:14:11 -0700 IronPort-SDR: zikZ0vApu1KHhNyZ89lWF495VbGWfFolKVkrJN9M51UT0i2Lon4fSa5vXCxs5GuOmtk7olwrHP gwjNJYORAKQQ== X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="382464970" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 12:14:08 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lWkxg-00456I-Uc; Wed, 14 Apr 2021 22:14:04 +0300 Date: Wed, 14 Apr 2021 22:14:04 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: Yicong Yang , Wei Xu , Wolfram Sang , Dmitry Osipenko , Linux I2C , Linux ARM , Linux Kernel Mailing List , Linuxarm Subject: Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI Message-ID: References: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021 at 08:55:21PM +0200, Geert Uytterhoeven wrote: > On Wed, Apr 14, 2021 at 8:18 PM Andy Shevchenko > wrote: > > On Wed, Apr 14, 2021 at 08:06:18PM +0200, Geert Uytterhoeven wrote: > > > 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? > > > > But why? > > Please tell me how/when the driver is used when CONFIG_ACPI=n. I'm not using it at all. Ask the author :-) But if we follow your logic, then we need to mark all the _platform_ drivers for x86 world as ACPI dependent? This sounds ugly. So, if you are going to send a such patch, NAK here from me. Same here. NAK. -- With Best Regards, Andy Shevchenko