Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp979632lqj; Mon, 3 Jun 2024 06:57:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBMs0QGkNDJamGlPlyvPmbIwkkNjjx7BpDBNHq8SOFsFvbw3RloI6cUzEwbCYjDMDWBTBleFkr7reqxh0YeVQxfKsYq6CxjqGxNYsLvQ== X-Google-Smtp-Source: AGHT+IFMw1w35ZGt+P9KuetnL2PD5HjaMam9AiCQpNYZIbOvD+Y2PuNWcGL7Pg6pt3pteZZMYynU X-Received: by 2002:a05:6358:e49e:b0:199:5ed1:5738 with SMTP id e5c5f4694b2df-19b490b7d1fmr1307327655d.22.1717423031521; Mon, 03 Jun 2024 06:57:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717423031; cv=pass; d=google.com; s=arc-20160816; b=zMNO5wcX576A/DD/lv9WFvRLRy7LllO47+PAIGQHuXETjDJYlnbpCZViOi869kBDur zoQM5ZDliGJlXUiXt/ELXR/lYjRBQp5RRvZWAkgkKboivv750xeIIOMPRR2SCuLO0Br7 iRnhyurHULT8hQL+hNJ/Wb5YtMyOzz4gIIug8ZB1AX5MIpMsggkyutpIgmWvf40O+xUD lIieMxGK+RFM9P5/6YB+WfAdJDdWyPr956Pn7vXUq/ISbl+8gugOnmEWNJepGj0tJaoH 99bVU8NPLefJqTn8xwjwc2NggRIZu/rc9yKw3NSTJl/sefnSmx5qWQjJ9TjE5N28mxQW DYAg== 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=cXC1sjcrHdEZ6HawRW6jIzH3SHjywXQg3aJke+QfBaY=; fh=fJ+7CVsIyDlf0DAb5dL5wG8/2sR4qnSxd+UVeaTcx9w=; b=admwSS5XeR3vtTc22GnXoBuLpYGmCdSI9S9CRNje6pKmj9DTvFoQyQ+QDChmvFlHqf aE8mW5vDaqVlyRxlZpMMx3igzV0LXEKOsSYLSGH1DZAaVWMRdpY6px5ZAn0bivLe7NZS cb7t+4j0egwp4+gzzZB779qRceymT4Hmtdv2lXTV7vmijBHNWXaM4bLGQ+24dKPRN5YP mnSy1a53fZYwJx6F71O/k42RANA1CC7fqpi58uLprKtkgLzcoUfasgv1MDmDWjwL8Lxi h+D/mVVdDpB9GgzCmEjaN/kAQ27wmMJFBEwMMwFI8IBhio231d93PUFEXyydLFDNnlSm pqHA==; 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-199230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e07285si6410764a12.370.2024.06.03.06.57.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:57:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-199230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199230-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 62C8BB2457B for ; Mon, 3 Jun 2024 13:39:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD53A12E1C5; Mon, 3 Jun 2024 13:39:26 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B45012DD94 for ; Mon, 3 Jun 2024 13:39:24 +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=1717421966; cv=none; b=hZPHsNY3McIIidVVWmvkDHhmcALLsKcDyr8Hx0+21uWA7MaIhZjL8uBQaIoFlvo1vAiDMo3ubcge9bVbwxZqC8ZGwtdxgf9I+V6V0MeBWybnB86FhUkssmVRuQZoJcOqNvvbHnFQ3/LTS0Yq49RL2FlIm9fXo/mD0qMkARBytts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717421966; c=relaxed/simple; bh=OahMZUYoVHVoUKzOotRrQHjhatSUK3OGMQ0LIAqYYMQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d91cmnI1I9bxBBVkyDAQZcpwi0a27AiFyQlg976X/PgXZz+BX8n8h6ClhQdkpOUDUWR9z7lPDQKZjlBWRQpLRVx0eQ33N1VeQa9ubwRkilZu5Qi6SHa0tteANMIG0AaluaxT+aKon109sVZbwWPMzDRVnX71vm8LQC4qjxWEmgM= 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 91D791042; Mon, 3 Jun 2024 06:39:47 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6538A3F64C; Mon, 3 Jun 2024 06:39:22 -0700 (PDT) Date: Mon, 3 Jun 2024 14:39:20 +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: 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 Wed, May 29, 2024 at 01:36:42PM +0200, Geert Uytterhoeven wrote: > Hi Cristian, > > 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. 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. I don't know what is the right or preferred approach here. I am fine either way. -- Regards, Sudeep