Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2100694lqo; Mon, 13 May 2024 07:57:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7teHefRejf2m7z4kzBIE2hhr0kWVbKaTbtnHjgeQwb4FLKfB+1Hof5MvG0bRSmbtrEBSe1EPf5Y//y0kUvspYH9umpcpI2uc3h/C8tg== X-Google-Smtp-Source: AGHT+IFdjjNmhUnquYeRRp2Gqp3y4RkkJDY5Mw4HTRPB/Y0tuLdLxzALDvMp+MRwOf3CW+DMfpnP X-Received: by 2002:a50:d496:0:b0:572:42ac:9b19 with SMTP id 4fb4d7f45d1cf-5734d440712mr6563460a12.0.1715612258147; Mon, 13 May 2024 07:57:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715612258; cv=pass; d=google.com; s=arc-20160816; b=ptK6v5V6N9iE4TdPIMy+yjgbnT6wmN0kPLA/cgrQrteQLxqx8vze88DFvmQD/iCQNJ ESKJkn2fZ/WPcQyQc7okSSF2dj92W6NrQMRU6QC0qovfhi5Qj2fbM8sG0ZauYi57ZJSU tp/oxwIyYDO2ccK9WT8+5HfSn/1n/TNDopnYiLCQqf3XiRsUJLne1EMKYAmNXIYwauHp dzHm3yCkvFxAjJ90NBsN88CqWj27GuLWF1bQ573/nidd9UutpuF3Dy6Vjn8mbBuViOHY 4iu5C/EvMzPuGHPz9Q+MzLCHPEzxNW384wAC93kYsh9fKTk98VCT3Nalgrc2jAjcp1q9 XrlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zs9GtIy5yaHuYGor5M9p2cPGQXBH6GXLjIlVMwgAr1E=; fh=uBp9TYU7i/gkhg0r2z/Hic3dhyQgTsNew9H/+IVp9Sg=; b=LyayOzlVlB6k59wF7xjixFymrE8h8bcv8SiQ/d4zmbBjXUb6fK+lhB3fKM7qOJ3O0h HILuKI6bD5dZTDAuZhvxm46BWrgl5kFXbNGNSHZe+ohIHIl/XX748s0HJQqQAaHJJy8j eWGNpds7R/ZEMGywYto41omylR6sEVazp9YkE1lv9WyOhhBHNhB3F+D3VYhZMapQbdmy JAgZhPuIdW6PWWN4oiUuvZUTBYAiBp6BTESwuXN6cQWJ+JyOBBSn/8h+mWgpF1bGPbya y//cefW4Yho8P8PqflpAtPPZFaQG1XNMx8HA6yMAwjgms6W8sePxGKE/ivHNvxB+bQxY rgrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nlfm238f; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c32ce30si5002173a12.460.2024.05.13.07.57.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 07:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nlfm238f; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177715-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0675A1F2459A for ; Mon, 13 May 2024 14:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A0736AC2; Mon, 13 May 2024 14:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nlfm238f" 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 9CFCC538A; Mon, 13 May 2024 14:57:11 +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=1715612231; cv=none; b=pRBuk0gUIYX5kSI0bX01XGTQZbNhiTS2ttJnV/eWakp5jz37ASDCbwwS7xfECA9or/4fhCKJDH1lYArb6Mnj/wWs3MpzV5YdZyyzYIQIAtKbHZmywt1ej//lOkZ1LoRtMkwNQ52M+AzKwzwsQitrObvY+1VdZA72p8UX+9Fy/TY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715612231; c=relaxed/simple; bh=0w9mbGT1UZZt1dOpgC8NPTR0pigL8NKPJ4Gx+UMc4No=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B/CXm8XbavvxDeOajNTV8LNSHhf583V7rlt58RJoJhtd6g/H0peu+tuPPbj73z8D58bjAFRw3FS6PJXecUXu9w5SKPWLGsRhWqqz75gdiC8ITaiosxitW25NA3d9W/ig0m2pPzaxEFZxtDmeFzGqm4x1sOMdrxV/z8bJzSOayZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nlfm238f; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E950DC113CC; Mon, 13 May 2024 14:57:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715612231; bh=0w9mbGT1UZZt1dOpgC8NPTR0pigL8NKPJ4Gx+UMc4No=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nlfm238fMGiVIDMNGnEKc97gNmE29hdsLp7YKC9Wpqq8IWVhjJOyzeE4d72H+4zii 8TMHr1INhhSxLq7XjhdouQqKS31hGdQMfWd6fOJ4zfJFAcgD0xMuX2jnSuWxJNA20x t5G1Z194+qKS2gfSXhW/tHGhzSw/j45xXTtOKObCug+qUO0V1fditIlV7aHLJVd2qm ZvkFm5erZ9XOw3zu/ucAuBs5LWwSL4FN4vIS4vWmwyNNZ6j3slga4IbqfjW5ULH7Hg SNwPM57X0TwGJ7OgpyhhJQxHQ7CXyCcSZu5CPq97FNK6BPg7z5W2gfmLIojzFZM+a0 JEcbmHifAhrGw== Date: Mon, 13 May 2024 09:57:09 -0500 From: "Rob Herring (Arm)" To: Anup Patel Cc: Anup Patel , Andrew Jones , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Sunil V L , Saravana Kannan , Atish Patra , Paul Walmsley , Palmer Dabbelt Subject: Re: [PATCH v4] of: property: Add fw_devlink support for interrupt-map property Message-ID: <171561222690.2595290.16864995832552950240.robh@kernel.org> References: <20240509120820.1430587-1-apatel@ventanamicro.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240509120820.1430587-1-apatel@ventanamicro.com> On Thu, 09 May 2024 17:38:20 +0530, Anup Patel wrote: > Some of the PCI host controllers (such as generic PCI host controller) > use "interrupt-map" DT property to describe the mapping between PCI > endpoints and PCI interrupt pins. This is the only case where the > interrupts are not described in DT. > > Currently, there is no fw_devlink created based on "interrupt-map" > DT property so interrupt controller is not guaranteed to be probed > before the PCI host controller. This affects every platform where > both PCI host controller and interrupt controllers are probed as > regular platform devices. > > This creates fw_devlink between consumers (PCI host controller) and > supplier (interrupt controller) based on "interrupt-map" DT property. > > Signed-off-by: Anup Patel > Reviewed-by: Saravana Kannan > --- > Changes since v3: > - Added a comment about of_irq_parse_raw() > - Removed redundant NULL assignments to sup_args.np > Changes since v2: > - No need for a loop to find #interrupt-cells property value > - Fix node de-reference leak when index is greater than number > of entries in interrupt-map property > Changes since v1: > - Updated commit description based on Rob's suggestion > - Use of_irq_parse_raw() for parsing interrupt-map DT property > --- > drivers/of/property.c | 52 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) > Applied, thanks!