Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp659810pxb; Thu, 15 Apr 2021 03:38:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPQNXJ9t35m3LN/DrGd0spEBigMI7W1FcbWLNWS2mubV1UZ6+fhgsx4tR9bziqPuFGSfKt X-Received: by 2002:a17:902:9b97:b029:eb:7a1b:5b88 with SMTP id y23-20020a1709029b97b02900eb7a1b5b88mr2018695plp.77.1618483134676; Thu, 15 Apr 2021 03:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618483134; cv=none; d=google.com; s=arc-20160816; b=xRa7q89+EWcaIm1DzVlm4R2DmNsOFdiu/4i4uObNhBsRAZng8G+2zFKupilAQC72mq mZxB/qZJTSir8E2N/Lb9e8FWvK+mXHr37iP6RGEPrqFfdj/25EETszdyEdu+lBCykjeI Uj3mn02BREDVZ72KGIo5XpnPvV3shM0v0j+DC5+z6a4R4BvycP4pLIAsOTrhnvWSEsbT Kqmyk27qpb2yOTPeGaXDqHJs1xZ5P0Pl2egonCyxxOalkCTUXvqDmpw3NCc1fPQXBVlP 7rQMJdP8RG0eAaeXar0klug08B4LRTxsVxgOplwgmRYni6Fj8agmqALKQA4pBe1z26Hu w9jQ== 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=bkIhygoPIShVm01ZuvybPW60a0RNP6esiwz662OOKzA=; b=sU5ZLFTZB17iBall1rIgNtDtyTDNmimoN0kDadkNJDslfRvmSJYeomTzoiF3n3xEoA DG5TiyLOlWYb7rMomaHk+Fk2ZYiT8cnfPMJD1P5HrgWzNimuWSt6QTD0EJBXMtoSPU/G J18i8hWXCXIe7BUDYjw26Lmisss+z3IiNe4vJfTuKJ4E06hXwvWFiNlkoMFN684KFT/J 01t+0/InhY6XSLGMTXAMbfNP2z0a167KbRl0dZQv14bawkCUZukK29IJTOpSYaqU0YwX WC1pYAGqBfKZSscY/JM4My+U3TSKqYND0Srs7X7Ssuv6yP4kHRnk4kcwoVXVL1O8tTLo v5nw== 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 o8si2796063pfd.51.2021.04.15.03.38.41; Thu, 15 Apr 2021 03:38:54 -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 S232401AbhDOKg7 (ORCPT + 99 others); Thu, 15 Apr 2021 06:36:59 -0400 Received: from mga07.intel.com ([134.134.136.100]:25587 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232233AbhDOKgy (ORCPT ); Thu, 15 Apr 2021 06:36:54 -0400 IronPort-SDR: IEnvXnyjXYVYrezVu2r7nicDeVzAtyb8S0rdydNq79UhbqEiDRsnPpEXbaXNmKs2Px+FIh7zcE U5zbpfhWH4FQ== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="258789617" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="258789617" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 03:36:30 -0700 IronPort-SDR: JWGyp9+PPSR53zav66bKAZd/Xsmd/rWmwo2rlRUx4L7nniUkwlQUJOrKA7mp+07hmz2SRoJI37 Rul1GLppECHQ== X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="399530258" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 03:36:27 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lWzMG-004DhB-5Q; Thu, 15 Apr 2021 13:36:24 +0300 Date: Thu, 15 Apr 2021 13:36:24 +0300 From: Andy Shevchenko To: Yicong Yang , Masahiro Yamada Cc: Geert Uytterhoeven , Geert Uytterhoeven , 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> <21d833f0-b1b8-9732-21c7-3a73676e07d3@hisilicon.com> <39f6bbed-9eea-963a-1ef1-a83248f162aa@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39f6bbed-9eea-963a-1ef1-a83248f162aa@hisilicon.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 05:04:39PM +0800, Yicong Yang wrote: > On 2021/4/15 16:18, Yicong Yang wrote: > > On 2021/4/15 2:06, 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? > > > > 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/ If you think that ACPI dependency is good to have there, go ahead, not my worries of the consequences. I just consider that as unneeded dependencies. The proper fix would be to have a split in Kbuild infra for compile dependencies and run-time dependencies. +Cc: Masahiro for the discussion, maybe it had already taken place and there is an impediment to do so. -- With Best Regards, Andy Shevchenko