Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp653424lqb; Wed, 29 May 2024 07:00:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXZ7nyjdSNS4r6haEdSZ4IhPk86/DeD9Jrm1vykSZ6IK3CgogDnLibmVDbBq4MEhD6slD0X3UJtlMXfsVm4eLw75um4JOuz40OL//ovA== X-Google-Smtp-Source: AGHT+IFsmcSer+EluKgIN+UybCFT7Ptqe1GSXiROE3Vn/DkmRE/yQrcZy/bhw4sIdZoPm+t8dnBj X-Received: by 2002:a17:902:c408:b0:1f3:1ea5:7e0f with SMTP id d9443c01a7336-1f4486e5e80mr184465725ad.3.1716991246304; Wed, 29 May 2024 07:00:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716991246; cv=pass; d=google.com; s=arc-20160816; b=PqS67YQj6Z6hBIE2xNi02H+yLwxmQBebgH+uJAEyHFiLSusf92jHnQe5N74+vtD7fF 32/tkGfUbnB30BdVpNFJeuzj1SyDI9gL6nbL42COp+z2KDa2iI6d95aoJEITu3L30Fki rSRARR0pQSNLPEMbVU6cVlDoElkUd6Kfx1jHHXjizn0wN9gbwGoNknsiMI7C0QsErmoH DzSmnybY8BJgDjn86pmBp3UHHOtwPQzltSyX3FOSbS7KnlYhQOQioOO+m64I+Ab6havq 6e5ihUCA0Eh2UgLtNBHPCk5UJpek4H0IifLg3xfiormpNQXylFK41vKHPQDAbj+NifUA poBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=hvdAEq6G19+Nk5BhoHew/rtbwSAuZsHm1wwUewSRXkQ=; fh=JADKXhjrfTvfsgSWDvF5xZQGA+JN5jPC/MRCmh+ZuZA=; b=pJauNi79BOs8FiJ+zqCVmTSTSp9xiSQ+IgeLvi4ZXOTzPKPJneFDdoeBuSIbQM+vJD 19Y1vV6tbkbVsFr5cvjcwwsQfFPyalg46SPHeNxVdH0pMPeiid67D34F7f8PtMzL9FQG hD1l5XT7bWraFY5+VUih+JQ4i02lJ8rla/Rmh2TqcIpmSDN7P+o8Syz9d4WHaAG1Nhgs Sk6TfJOZpjTYTAI5OkYSQmfMOPGzguRR+UXFDFp921UgIZ+ZalmWk80vwDIag2e8M0l1 E4AEhvdo1ScTzbI43dQGEHsNTCz9kSQDk+pHYv16X9PNyF/HUoENfd04gZw+8Itce1R6 pYCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KickmQUY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c970647si99235635ad.268.2024.05.29.07.00.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KickmQUY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 78CAE286765 for ; Wed, 29 May 2024 14:00:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD6D21C6A1; Wed, 29 May 2024 14:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KickmQUY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFB321BC2F; Wed, 29 May 2024 14:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716991238; cv=none; b=P937SAfDAPq8ZIfEazOxcqbd7Mzn4cXy1oJJlQGBOYwjUxbK4qGAqSISFfQSKos1izFoRRHrM02k6b4Ha4XcUh5jhQtBItLkCUjiMhIYXlaMierag+hJ9fJaXW3hYJHN8dK0SkHGKm5g6w5ZO5lDO7Q+0LviJlKyNJWhFmn2vPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716991238; c=relaxed/simple; bh=QrqwButrkMVOdpfgULKi8N8/H/ojCzpow3uoRbSfgDM=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=nP9AePMvjWa1hSENElyqnCRuR5wshptE32M7YKj7TvnnKT86PnWexpY+3lcrpM9ZVgpEAkSTpyzcUlFuN97/OHRxMHsOUJWZ9+z3NOtE8U6o8CbeI0BkDkXr1CXShqYAgAbiwd00HGd9UFMboz94sZ/wFD9JMFGokDqSl5Q+L8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KickmQUY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 202C4C113CC; Wed, 29 May 2024 14:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716991237; bh=QrqwButrkMVOdpfgULKi8N8/H/ojCzpow3uoRbSfgDM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KickmQUYv1vEyABdW51kYlRjaL6kwtPkx/zYRqaD06XMhjE+Jc1ihr46SS8Sm36K+ gk+qVZJIH/r4oDkPx94o0KyV5tmXH3uC/eLbxlLjIUKG4fUxEGZKo11XUIn5yfeGdk QaaaTj1hPfxvOeqHDRz9moRsgSl9eHlDVQ3TCAkgVX82fERCj0ztwq7Jz5zVL/6tRK ZlFoSgz79zgcVFMJssIfpS/uIUmbp1sNCIVhMuh/VBLyz5Q7n2InR5VSiOXkvRREV1 hb/Kq8DxV0RWZ5a8HQLsbSwenOelWRiJ1wBcMNTnJECURYHPWL/lTOTDOhMtW47lJf dXTApY7ooFmLw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sCJr0-00Gdfc-NU; Wed, 29 May 2024 15:00:34 +0100 Date: Wed, 29 May 2024 15:00:34 +0100 Message-ID: <867cfcn2f1.wl-maz@kernel.org> From: Marc Zyngier To: Rob Herring Cc: Anup Patel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Saravana Kannan Subject: Re: [PATCH] of: property: Fix fw_devlink handling of interrupt-map In-Reply-To: References: <20240528164132.2451685-1-maz@kernel.org> <86bk4pm8j1.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: robh@kernel.org, apatel@ventanamicro.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, saravanak@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Wed, 29 May 2024 14:44:07 +0100, Rob Herring wrote: >=20 > On Wed, May 29, 2024 at 1:33=E2=80=AFAM Marc Zyngier wro= te: > > > > On Wed, 29 May 2024 06:15:52 +0100, > > Anup Patel wrote: > > > > > > This breaks for RISC-V because we don't have "#address-cells" > > > property in interrupt controller DT node and of_bus_n_addr_cells() > > > retrieves "#address-cells" from the parent of interrupt controller. > > > > That's a feature, not a bug. #address-cells, AFAICT, applies to all > > child nodes until you set it otherwise. >=20 > That may be supported in some places, but only because of buggy DTs > (we're talking 2000 era). Current dtc should warn if an interrupt > controller node doesn't have #address-cells AND is referred to by > interrupt-map. Clearly that didn't deter the riscv folks from doing silly things, and we're now stuck with more random hacks. Anyhow, I vented enough about this, and I'm going back to doing semi-useful stuff. M. --=20 Without deviation from the norm, progress is not possible.