Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1311519lqb; Thu, 30 May 2024 06:54:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdCc7iexb9z4IMuaCAMz0GWFe62wjc1FbnpeKq3oBIp5gSXQu09zKzJYRcmeZ6Hgl7zsxWcFjnU2NGm5rNYucXzkY2mq/EFJezkwaCUQ== X-Google-Smtp-Source: AGHT+IExCRsCVj+DtdkTy1d3VnEkNm5UO/SRNtq4gjnq6ET6bSeRKVTYvA/HGflODb/SInWmlDVj X-Received: by 2002:a05:6870:63a5:b0:22e:de2d:8c00 with SMTP id 586e51a60fabf-25060bda50amr3160833fac.24.1717077295524; Thu, 30 May 2024 06:54:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717077295; cv=pass; d=google.com; s=arc-20160816; b=EDWVoqxNMxrVsJUx1YnK3+ecx5g8lQG2nXdkTQUGX3Qz9Dw9fEy8Hs8lqb28csSkzR 8fAknpXN1Ra0hqsE47p4Zv5hVjfWPL0ksA0u57/c1WU+SAFuatYUJNPsONNx0EiFita6 P4S5e/G/ev1AFCujwtf7kta4mOfsw0AY12qLcZSpEkoV34fQ5hDcLzxFuIKGHjTDp73K JSkje34Kge6PTzWl0Y+rmSFPSLwW5x8pdG1qTPUKDhDtHYIiUGGBGrgVY348rsh6jwe5 XbqK+jWeSCWysFh0+6Dsumb7Z9x4zpGbpq+5wdkh1WCQLP+CZXe2CpwHrgaJaynjrSv3 ys6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=dwO3R9ysYpOoR5mcfve6YSk7T28xuTkYwLH15jyKraQ=; fh=c9VPDXwofGArHz1b2FhZTrjvBtzVrOJKaFDTO4qyW20=; b=XeyKBYWl+aHHYDtv9DfvOXH6dr0qG3t39jX4egsupnfXC3M3W2SCiXYclaNL6codJI LaaCA3n+yQT9kVmhygP+tUi9h3TnlLp6iERO25TnNsL35knpKTSxP41fasVOTmln3fCV Gz+mMua2JVL7668LeibrJn51DOl2x2ulknXG+dM3oweZDyf3gq9IaQrHCNrny+L7z/IT yYI4yikORS/y46glvv1+ZRzmPXBF2CXyg9wjzkEPJDeoDf1EznU7NKbUdi5iw2SQQL4n 2mFlLve5/JiMveJphBnzpYSH8PL6PmXGmyh1X5xi5Sz6HKUMx/BJrx853Z7eyLJVHYWr gylg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g61V7Een; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fdba59e45si63244701cf.458.2024.05.30.06.54.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g61V7Een; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195470-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E9D31C20B6B for ; Thu, 30 May 2024 13:54:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 376B8186E33; Thu, 30 May 2024 13:54:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g61V7Een" 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 5C8513D68; Thu, 30 May 2024 13:54:47 +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=1717077288; cv=none; b=UF4CwdHU7Mug6BUzB/Zkf1zffTpK2dcqAKB7fC2jrzZTbAikNqSRSCw17aSGdbeE/MTH6stI5bAhH+SJZdvVnL5XWDt8k8B6eJt8KeHf+8lfcp91YorttR1unCyb6GnAP5WWTD/v2XD9082hvx1Eon3cH41BXMOv7dPAOqr+1A4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717077288; c=relaxed/simple; bh=q3qGYkWoISiLK4CH2M4GGiP+fm0cRhpFmjJb9qqJnno=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=giu1KYgkJBfwtdYNxHpLOQQJMHIeSSyqWjuWQRyd8PcS1Ln/VSUCOBgIPEY/FGEQ13lkt5HGkLr5iUkUzKT0PfLxxJpJG6GR8P6s4svxkiECfe9lgywyk94PLDiM1ZnNmODLziHcERwV4C2NOxOFKQdCJKbWysgv7t5rj9kYLX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g61V7Een; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D09E0C2BBFC; Thu, 30 May 2024 13:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717077287; bh=q3qGYkWoISiLK4CH2M4GGiP+fm0cRhpFmjJb9qqJnno=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=g61V7EenqhG+KV90gKh5/eSORsAYlgXDU9Kzj8sTwRLAJy4tEWHgtFONYSK8oh9+5 k4LdLjFbsZbUBUUVkgVoZtE6/K8Dm9DWYivHvowfBy1PryJvZezS1BpVtRGdhI2K5n k6ZJDalpk5MBwWzwU+zpZVCHCAYT9k/wazHsUDowSP7/U6CNvnjLtinmE5hxlVuq/1 5dwZBDqN4HwhpUjMTcwibhbpi2xfVPCqitLVfcz4XuaRbYJx71dolggH3RfaOO5V2w pBcaX4xGpwrEkpU8vZdf27Cr6hUUD8bYVZ520YwyfTtIF3PdYILK3dFvZoktgd/wUK uC4xBcvqBfMIQ== 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 1sCgEv-00GuVb-Le; Thu, 30 May 2024 14:54:45 +0100 Date: Thu, 30 May 2024 14:54:44 +0100 Message-ID: <86wmnbl80r.wl-maz@kernel.org> From: Marc Zyngier To: "Rob Herring (Arm)" Cc: Saravana Kannan , Anup Patel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 0/2] of: Fix interrupt-map for fw_devlink In-Reply-To: <20240529-dt-interrupt-map-fix-v2-0-ef86dc5bcd2a@kernel.org> References: <20240529-dt-interrupt-map-fix-v2-0-ef86dc5bcd2a@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=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: robh@kernel.org, saravanak@google.com, apatel@ventanamicro.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org 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 20:59:19 +0100, "Rob Herring (Arm)" wrote: > > The duplicated parsing continued to bother me, so I've refactored things > to avoid that for parsing the interrupt parent and args in the > interrupt-map. > > It passes testing with unittests on QEMU virt platform, but I don't > think that catches the problematic cases. So please test. > > v1: https://lore.kernel.org/all/20240528164132.2451685-1-maz@kernel.org/ > - Refactor existing interrupt-map parsing code and use it for > fw_devlink > > Signed-off-by: Rob Herring (Arm) > --- > Marc Zyngier (1): > of: property: Fix fw_devlink handling of interrupt-map > > Rob Herring (Arm) (1): > of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_parse_raw() > > drivers/of/irq.c | 127 +++++++++++++++++++++++++++++------------------- > drivers/of/of_private.h | 3 ++ > drivers/of/property.c | 30 ++++-------- > 3 files changed, 89 insertions(+), 71 deletions(-) I've just gave it a go on an M1 and as a kvmtool guest, and nothing caught fire. Must be perfect. Tested-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.