From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6CA65C6FD1F for ; Tue, 26 Mar 2024 20:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+tU5jud6TDNEsnUYQ1KNoZaEqI8Xf+ghiioZwUybUqU=; b=fjFTYxbYX42ZJa KRLrlY2o3y/jcTN38xfvxsHMxoeVGveV0LnQ9nf23E4Jeg5Ke8OSabnyxGOJRXtzqQbVkvOU8QdOv qDRzFjxojnxBqBYgoymp9A6GXGRV0f7qWiNTnELAtaT60AaiG/GaIZIJjPB76VlNZWtXFi9ElFLib r0ia9AT+pBHk7AkOA3WFnueExuY638Ta4i0WxG7T+NC34332xHCD9HpL6SL0bKuZmbGjRJ1IuzjJi js5H6s2tQvtcxgmevP7vOOwKUEbep6Fcw5qw7UMJbXw0ymtuwN3woghhfST1blNs6M/rqn24ksIWW M7Nm/WW0VfN02afS7gHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpD2T-00000006Fml-3S30; Tue, 26 Mar 2024 20:04:53 +0000 Received: from mgamail.intel.com ([192.198.163.14]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpD2Q-00000006Fm7-2gsJ for linux-arm-kernel@lists.infradead.org; Tue, 26 Mar 2024 20:04:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711483490; x=1743019490; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=BmIFG4WcPLJlFIuPlSfB+NIT8dikrnWScED+BVvdLYE=; b=Vs4cG9Ntxy6SLzVoekalY3mFWDaF4Fk3NA6uTLtbTl75u6K0cagx8xdV iMcCpoys9LCRttjHc4wKNyz+WisOKyuGLiJ8vBaj3NnEng4E4ane7nhsg D8XxtPQtUAtw3eAGXaG/0v+nrwVkag+EsGBkIUGrkb5pPsaDi2gM6qEiV NR+6hX2dXHN3zxxrsDRz1yXPjieFsrpWMUnHxGSrENoFKlG88kikLxDlX tIbV/CLciXE9Mf00biAaMem856KisB9IsELOYwqRCWQARZ3w1/D+HmB3+ SVe0iCW4bgfdYh+g7ea7Brns1ShOO8/cnuYeNDUXX/vbCW5rpFDwf472Y g==; X-CSE-ConnectionGUID: IpXIS5w7T/+2y7gyGICdEw== X-CSE-MsgGUID: zWttbGj5TzuOI5wdrNx/pg== X-IronPort-AV: E=McAfee;i="6600,9927,11025"; a="6768769" X-IronPort-AV: E=Sophos;i="6.07,156,1708416000"; d="scan'208";a="6768769" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 13:04:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11025"; a="914889497" X-IronPort-AV: E=Sophos;i="6.07,156,1708416000"; d="scan'208";a="914889497" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 13:04:46 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rpD2J-0000000GRSv-1dJS; Tue, 26 Mar 2024 22:04:43 +0200 Date: Tue, 26 Mar 2024 22:04:43 +0200 From: Andy Shevchenko To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King Subject: Re: [PATCH v1 01/10] spi: pxa2xx: Drop ACPI_PTR() and of_match_ptr() Message-ID: References: <20240326181027.1418989-2-andriy.shevchenko@linux.intel.com> <14f08a50-edef-4b36-891e-2b4b2283f40c@sirena.org.uk> <424de3ed-f0ea-4fc1-80f5-3ab1d23cf1e1@sirena.org.uk> <4241ecb8-07e4-4613-a289-4699c39d0d08@sirena.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_130450_821131_AAE8DC6C X-CRM114-Status: GOOD ( 23.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 26, 2024 at 07:32:47PM +0000, Mark Brown wrote: > On Tue, Mar 26, 2024 at 09:20:05PM +0200, Andy Shevchenko wrote: > > > For my knowledge there is none of the ACPI-based platform where CONFIG_ACPI > > needs to be 'n' while having the real device (as per ACPI ID table) to be on. > > That's why I answered purely from the compilation point of view. > > I don't understand the relevance of that, and frankly can't make much > sense of it. It's relevant to the ID table presence at run-time. But it seems I wrongly got your point (see below). > > Personally I see that dependency more confusing than hinting about anything. > > When you don't have a dependency in Kconfig then people get offered the > device even if it is impossible for it to be useful on their platform. There is currently a dependency among others PCI || ACPI || COMPILE_TEST >From the point of view of the real platforms it means that if there is a PCI compiled we support PCI devices that use this "platform" driver. Similar with ACPI. What you want is to hide this in the menuconfig for the irrelevant platforms which have PCI _or_ ACPI enabled, correct? But if we add x86 dependency to that, it will drop the support for non-x86 ACPI-based platforms with this device. I have no clue what are those. Yes, we may try to have ((PCI || ACPI) && X86) at the end, but I believe this will have a good regression effect. > The purpose of any || COMPILE_TEST dependency is to improve the > usability of Kconfig. Right, when I see FOO || COMPILE_TEST I interpret FOO as *functional* dependency, meaning that without FOO the certain driver makes no sense from functional point of view. -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel