Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1414900lqj; Tue, 4 Jun 2024 00:07:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7zn3u8Pzvv9GP102XUwaRKVkgGsK+pYj4kgJwBbTmlF/ycRHZLgiMmg8rG3w2p/S3/6cmQjHRGDr/N1G4/TAzqaHUGM4a9+/2/7Jicg== X-Google-Smtp-Source: AGHT+IHAE3fdFpEEgerkm+RQYEjCi3T34ER/KBLAK2Wken10XkuWCm0hB00s0ea/MulabTxF4l+G X-Received: by 2002:ac8:5947:0:b0:43b:173e:ce1b with SMTP id d75a77b69052e-44019dd5bcfmr26998781cf.32.1717484852412; Tue, 04 Jun 2024 00:07:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717484852; cv=pass; d=google.com; s=arc-20160816; b=rwok7KTfljzC/BR1SD7/e9mEFkBaot6ZTipL35uibn2OPPFqSN/rhSNcZ8mK6wTVnN J02jP+rrDysdx5ywW9oW81aW9/eHlpZLh8/cWCH7ThfkWBDhwiYeELCdW+m/3+OWW/ok 4lU8TfCnjvKKnLFczDtfY9UVCOiG6NuYhAVDjBdem9sGtxtTl4mqeS/JPn0wXDRe8zBf s8nDgWYssPH7sebuVqb5wR6hu9on18X+yNLj9nCtnu00mW7T/uLLfXwKFVkPrU1SESFl SIR61L0tgvcnOqmPtseA9HUcbA7528/WKdCwVo0nByyWz2wMGwSEx3rrEmwN6br5aNLb hN5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=oB6OjSk73/kmY8DFvRmTku4TfzmI6bi/6sJotWITDxc=; fh=fJ+7CVsIyDlf0DAb5dL5wG8/2sR4qnSxd+UVeaTcx9w=; b=GmoajALheJsbGLldNEEMhbmakWVlM1pJWrf2jXYc/OImPMrXYhz//GwGW+GxElhesl fsZMz6AVNrsXHACbu/2boRu7CGBoHwG3/J7BLQpNM03vYxyhWOmlUwR/bBqMz0F+Vo/P w0zxj8e5m5jilQq3B9Z1MfB9CEiP5xehYC6DUerMY9d0+lIT51nJ1s7hAoGjDcBPJ60I KS8tT5OBdWQfY5d8ZAiKvf6Q+uuPa6Ianv/GEf9dEBh5MJ1dl9f+NuZ1rrUGI0lI1/zA H/H5sRlyeVvLsB7Ucp3em7aFAS9C+V6GVnM/zNgpo5lds86tARycWKPbtNh9UEfFy9RN JjeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-200131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f32a56ccsi999603985a.544.2024.06.04.00.07.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 00:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-200131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C4A4F1C23F61 for ; Tue, 4 Jun 2024 07:07:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C0FD13F45B; Tue, 4 Jun 2024 07:07:26 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 936842209B for ; Tue, 4 Jun 2024 07:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717484845; cv=none; b=P8bl+CG3UnC29lxrK26nuIfJBXXwxMqxBQOi59kahxEbvLIj1hBWTydzKvJHJ7aqoVvj116mKexiL9Oj+M9BvkPs/J9TPtnUvP//12PC43+clzD5hvMX+biCHRrE2yt+hbmnATJyrS86T5aSBoJ953EU9dfcEwdgVj1xxVEZpsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717484845; c=relaxed/simple; bh=9CVxG7AdM0uDmmiiCgGYm/XZmw3BVqjApRPqCenU1RY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gdST+q4I8AaR1c0Wcp6YDrmubtJAwhigYKtwCVoPyo3F0gffATecc/HKG1VwCBt2n2mK6TXZcOKN/b+bJF23oi4v++jABJWMhqKEou78oVpmC2Rs8T+nt3nJS0BZxANF0bdh6mV+iP9dVKiQbYjrsHKO67LqYrKag+t7MYtAOtU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BB3B51042; Tue, 4 Jun 2024 00:07:45 -0700 (PDT) Received: from bogus (unknown [10.57.83.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D69EC3F762; Tue, 4 Jun 2024 00:07:19 -0700 (PDT) Date: Tue, 4 Jun 2024 08:07:18 +0100 From: Sudeep Holla To: Geert Uytterhoeven Cc: Cristian Marussi , Sudeep Holla , Jassi Brar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mailbox: ARM_MHU_V3 should depend on ARM64 Message-ID: <20240604070718.ypymfv6j2smvxldr@bogus> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Jun 03, 2024 at 07:52:56PM +0200, Geert Uytterhoeven wrote: > Hi Sudeep, > > On Mon, Jun 3, 2024 at 3:39 PM Sudeep Holla wrote: > > On Wed, May 29, 2024 at 01:36:42PM +0200, Geert Uytterhoeven wrote: > > > On Wed, May 29, 2024 at 12:13 PM Cristian Marussi > > > wrote: > > > > On Wed, May 29, 2024 at 09:30:45AM +0200, Geert Uytterhoeven wrote: > > > > > The ARM MHUv3 controller is only present on ARM64 SoCs. Hence add a > > > > > dependency on ARM64, to prevent asking the user about this driver when > > > > > configuring a kernel for a different architecture than ARM64. > > > > > > > > the ARM64 dependency was dropped on purpose after a few iterations of > > > > this series since, despite this being an ARM IP, it has really no technical > > > > dependency on ARM arch, not even the usual one on ARM AMBA bus, being this a > > > > platform driver, so it seemed an uneeded artificial restriction to impose... > > > > ...having said that, surely my live testing were performed only on arm64 models > > > > as of now. > > > > > > For that, we have COMPILE_TEST=y. > > > > > > > So, I am not saying that I am against this proposed fix but what is the > > > > issue that is trying to solve, have you seen any compilation error ? or > > > > is it just to avoid the user-prompting ? > > > > > > I did not see a compile error (I didn't enable it on any non-ARM > > > platform). > > > > > > But it is rather futile to ask the user about (thousands of) drivers > > > for hardware that cannot possibly be present on the system he is > > > configuring a kernel for. > > > > I am fine with this fix but I have seen quite opposite argument. That is > > not to add dependency if it is not strictly required. > > Can you please point me to that reference? > I don't have one handy, I need to dig but I have been asked to remove in the past. > > Also since you state that the fix is to avoid users of other archs being > > posed with the question that they may get annoyed or can't answer, I > > wonder if the right approach is to make this driver default "n" instead. > > The driver already defaults to "n" (which is the default default ;-) Ah Cristian mentioned the same in private. I may have misunderstood then, for some reason I thought explicit default "n" would avoid getting the prompt. As I said I am fine with the proposed change, just took this discussion as a way to learn little more about Kconfig. -- Regards, Sudeep