Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2929413pxb; Tue, 13 Apr 2021 14:00:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmkJ+RAGsVVZ1IDtN5f7Ex/gkrMhxFdDEZD4kBsgBBiBweodMbTqQLUVNhvB4VpHEvECK8 X-Received: by 2002:a17:902:a502:b029:eb:1c07:482e with SMTP id s2-20020a170902a502b02900eb1c07482emr8042132plq.10.1618347622020; Tue, 13 Apr 2021 14:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618347622; cv=none; d=google.com; s=arc-20160816; b=VBaVEcqdiOseKcplTIg2TGWg7dxWWOD9Cm/lQB+4WdHHXDGusNU+1201QrailBHD54 xm0oxrV9G8mfdXjmWa1EYL6LcxN7wgRDWNMf6TUOMkHDmthgNBrYIbxd0vwxwwvDyDv2 UhhJJNxqjQoQ7/esgblhv5ThvUsZB6p8dx0ZPdHM/S5RhOZLex6yBise7fDCLGJ0xdS+ ym4zbbD5/sJ2zOIHNtu5IQ9KYLMYC2lG98zL7WNk7FbcEMxwX+O7NqaSuWEJbxjRJb14 aiNq+YJ5QvJTLtMf5mdr+/4oyUKNvrGBFl2FffNUaxDD8P46RaYVqCuilTwGxL+Et7IS e+pw== 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=joNlVv5+5Da5bVihI6TlnZr8WEQ3ke6ISSWLhPN7trY=; b=zn/+5W7hmgqsJT/3A2E3GEdoX260ZSD8Q2t+PzQXlBOQpSadrES0WuNN6Q8UdotN+W yR9iGEsM4pgTSbHYsLJll+e6EJrIclwoZXe+D5sr6ZnsAapWDrQR79PelqHKmIlWrnTX u+xcCV1jN8d8gklnFEzAynA3uhgxgWp0YnLP4kt7UTALbYrhl2N2fRYPQHr2rm/EBLEA RmlQCXa70is4DbF0fjE2ISIvetdm/LAewwJro9KYi4qAYk7PoSd8heUeMCa6TealDkv7 LitoWR8o+KIlm2O3jP07mHGV/M1eHJYx/wFLRI/VQjSSs0l7FNRO+/QjtkrDQMDdmV7Z cWug== 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 ep3si3095479pjb.28.2021.04.13.14.00.06; Tue, 13 Apr 2021 14:00:22 -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 S231223AbhDMPTl (ORCPT + 99 others); Tue, 13 Apr 2021 11:19:41 -0400 Received: from mga04.intel.com ([192.55.52.120]:47879 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbhDMPTh (ORCPT ); Tue, 13 Apr 2021 11:19:37 -0400 IronPort-SDR: utkXdyqFAxWkMSNx88iU+zIYMHlTdxJlIGysw34qz5G7+b/bXws5ORb5wK/d6tbqVQmAmc1Vj9 Jr7NfzeFmwMg== X-IronPort-AV: E=McAfee;i="6200,9189,9953"; a="192308440" X-IronPort-AV: E=Sophos;i="5.82,219,1613462400"; d="scan'208";a="192308440" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2021 08:19:16 -0700 IronPort-SDR: X219gHHz8kzHn2xu7wq2ixh9m7MiJuE4NdlA41TZxuyJl6Zw/I7a9PUqJSjQyI8Gcl4m1HvF1H VKxK4mE3aLzA== X-IronPort-AV: E=Sophos;i="5.82,219,1613462400"; d="scan'208";a="521633732" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2021 08:19:14 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lWKop-003nEY-Oq; Tue, 13 Apr 2021 18:19:11 +0300 Date: Tue, 13 Apr 2021 18:19:11 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: Yicong Yang , Wei Xu , Wolfram Sang , Dmitry Osipenko , Linux I2C , Linux ARM , Linux Kernel Mailing List 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 Tue, Apr 13, 2021 at 04:44:33PM +0200, Geert Uytterhoeven wrote: > On Tue, Apr 13, 2021 at 4:41 PM Andy Shevchenko > wrote: > > On Tue, Apr 13, 2021 at 02:48:15PM +0200, Geert Uytterhoeven wrote: > > > On Tue, Apr 13, 2021 at 2:37 PM Andy Shevchenko > > > wrote: > > > > On Tue, Apr 13, 2021 at 02:26:15PM +0200, 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. > > > > > > > > I don't by the ACPI dependency, sorry. > > > > > > > > The driver is a pure platform driver that can be enumerated on ACPI enabled > > > > devices, but otherwise it can be used as a platform one. > > > > > > Sure, you can manually instantiate a platform device with a matching > > > name, and set up the "clk_rate" device property. > > > But would it make sense to do that? Would anyone ever do that? > > > > It will narrow down the possibility to have One Kernel for as many as possible > > platforms. > > That One Kernel needs to have CONFIG_ACPI enabled to use I2C on the > HiSilicon Kunpeng. If CONFIG_ACPI is disabled, it cannot be used, as there > is no other code that creates "hisi-i2c" platform devices. It is fine, but since you add a dependency to the ARCH variant, the ACPI should be added there, not here. Here is simply wrong place for this dependency as driver is *not* dependent on ACPI per se. -- With Best Regards, Andy Shevchenko