Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp866279lqb; Wed, 29 May 2024 12:59:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSykHHk+KBZGT6FR4s9DK6n57s+PIyb1Esq1CVbT4g7Kp9ref+J2tLXDmTq0nFRnHcvUJ0Sft+ClkyceydkARmDVJSKv6zmeDOM4sUIA== X-Google-Smtp-Source: AGHT+IFO3M60HjIeRtAWcNIsUc6lsAdmD4zI2vWXaCH7eucHmYRkxL6YG0ow9XtxCqTWhOPuBJI6 X-Received: by 2002:a17:903:1cb:b0:1f4:620b:6a27 with SMTP id d9443c01a7336-1f6192f7d3emr919895ad.13.1717012790065; Wed, 29 May 2024 12:59:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717012790; cv=pass; d=google.com; s=arc-20160816; b=BNBUyN07Iyn8ilysH3tezHBb5CuwrUTmW7OxvZjVQ0xO5zPKp6IpOXiWwjPGIGUHcf AM/3O2zg4yPGDv9ZWxaB1dZlW3nYpTdCVkvhde1urgITlZHaBkK8GGND8yYZK6CCGpDv JPdjeI5ZjlppimoIakmqtsuaQv589OLpsnCEB4KI7NDgZbq/rKvHzyRX6R1gsB5oFBXZ V2i2m3YoJ+tmutCR3AM2Ma8ual8SNd0u9Z1SACxsxc2bOv8wrjqPl8FwRjHkP7ykW19Y uyBWVELtt9si4m3IxQ4nemLZ2NxvoYG5m/eyMJnwTReIFusGaNRiLzrOkfXPguGnvc8n N8nA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=k/MKuceMzznStzj9J6E7woZiEItzKDehq1Fl9G0gq4w=; fh=e+vXXKYvG0Xid1LrmpDmPKIE50d+k+jNOteszH/kJXA=; b=JN5O4vRczETwF8ig/CKsWGXQwl4Aznubrzb7/rb2fODg9OPx43HYP3EQg+8vXP8cbf KRcbof47dZhofwnofOFX4e0TWHogZZZeWPJFBGMiD+O2DC0XON0GX5IHh43E1K0r1UYF qPrGqwd+VyCA3MzZ1fLqwyJ32bsEyP4qdteYThS/+zUSMp5iU7u97NjPofkLUmpvIof7 /g0kMU3crQuxUeY2h31G6GHa0W39Z7fi7mFolHDd4v9JxxXoasBD45fz0fe9ps5Hgb0T 1EjAlTTDy0ciE6HUptaXNako/3ENaES37LLKI+CAD+WVoIpVAPQe9P4pHr9YxEBNpgLK lrOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r3QGKidW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c7856adsi103150045ad.107.2024.05.29.12.59.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 12:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194629-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r3QGKidW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194629-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E5883B2391E for ; Wed, 29 May 2024 19:59:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DB1C1C6892; Wed, 29 May 2024 19:59:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="r3QGKidW" 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 57679D27E; Wed, 29 May 2024 19:59:34 +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=1717012775; cv=none; b=accu0qIVFNlAOPm94d7e7h1H6GWZ9wT5BYlcQtjmcB+doECkycsLYdzmEQ1jEvKoqmhQD0hE5/Oy1U9zFyv5NtoWTjAk4c5QNhIv37hEU7s4sjYj08esuFigkDkGmBcgrS6LenbFSMUR6evfHbHm58H3PJlGG9X20gfZnPDV/Ss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717012775; c=relaxed/simple; bh=qh84C1aPyUvP46Gu8Dv17j5i6PpcG0j1xKFVooUqkcE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=g1G5QNMYpxIS3JE2X6L15/ax++TC0wYynouQGE90+7V8hskL7CwEOZ9Mq/sOxvB+Up9azbyDnlf9UYWxI01/jjTEuSMf+aP/QnvU4req2i+3nx78bEGd/Rco5nV98hRAmN3AVRmm59ftRbxxxA+F3rjkaWNzOKLOIyOBAqGbduE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=r3QGKidW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 970E2C32781; Wed, 29 May 2024 19:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717012774; bh=qh84C1aPyUvP46Gu8Dv17j5i6PpcG0j1xKFVooUqkcE=; h=From:Subject:Date:To:Cc:From; b=r3QGKidWT4gN19Wv9KIVZLNIHhVjnObmNEvgLKX/521M45DWEkZSeYXtNaEUYAdIs 3OUgmfdVvbNYWqQqTLAOg8Jc8xvi+GaJdRdauRp+A5ecDvNbz8EkFaMqAnuaIXiTBq p/nJAK2QoFbFM84yY1sPGNEAnOXWQj4ZuH8ZRCgKaJo6rwk7nMuyCKApuqbPTMfHG5 K5M9tqknIXkfcJVJLEVe+Rpz5QLJkYJmYSKmdEStO4YtgNOk2uujdE+28frpES1WI9 UOwB+Ypqt42Odt5wa4NrEoEkuwd/BCjj/Kl7R0gUxtUQq1Yw75ZRoNevC89LwdwD+w EgbkF+EfZ9JYQ== From: "Rob Herring (Arm)" Subject: [PATCH v2 0/2] of: Fix interrupt-map for fw_devlink Date: Wed, 29 May 2024 14:59:19 -0500 Message-Id: <20240529-dt-interrupt-map-fix-v2-0-ef86dc5bcd2a@kernel.org> 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-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABeJV2YC/x2MQQqAMAzAviI9WxhTEf2KeKjaaQ/O0U0RxL87P CaQPBBZhSP0xQPKl0Q5fAZbFjBv5FdGWTKDNbY2je1wSSg+seoZEu4U0MmNVLVTR841MxnIaVD O+t8O4/t+vykBzGYAAAA= To: Saravana Kannan , Anup Patel , Marc Zyngier Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org X-Mailer: b4 0.14-dev 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(-) --- base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 change-id: 20240529-dt-interrupt-map-fix-a37b9aff5ca0 Best regards, -- Rob Herring (Arm)