From patchwork Mon Jul 29 14:22:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 13745159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77B24C3DA61 for ; Mon, 29 Jul 2024 14:55:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SFDunmtzDxNSJrEf+jYEf48MjjKh1U2DF8SfSHqhi3s=; b=rqykhe1pnZoRaiH6ebV/HD4QDF 8NCxpggmMbqm4KDBuUU07IIqM1jCLhVA+MwrzWGFh2Ctg2qBEKZTqtEmf9tiwJrYo9/Up8OMzx8kB IJU/etSmk4TeHXw1zJCIvsaMCrDnEBjC6zeWn7WxOX2iMG/HHOHM3negArAHssvhVp58Y61EUVCNu 9pN7iTuXEvojmBFGGQdfFvEP+XTZTWCLSXR+B2aJtTOISYZ02dmo0UaHcadxLhHn6wGPU5zP6g/DJ zAZMxSqOaNtSRbK5cL2caoCztcupvdVbu/TmMLC7h+v/g/DevTJKMkzP/WLjhoRayaw796eFV7SGM N9xTS9ZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYRmT-0000000Bl0x-0nKv; Mon, 29 Jul 2024 14:55:21 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYRHp-0000000BYnn-13bR for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 14:23:44 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1fec34f94abso20415645ad.2 for ; Mon, 29 Jul 2024 07:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1722263020; x=1722867820; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SFDunmtzDxNSJrEf+jYEf48MjjKh1U2DF8SfSHqhi3s=; b=nOOVv3UsoUD63dyHUjfSFKbXj41XwcYINO2FnzVMsoklr+1chJVadoJYj50iOs4Vnn S1xE0AbSZCC+al9+ZtWZcSd3p/pKAQ44VYQ02aOF4lZCoZXmXHOuQTrFFWSOK5KBMVlL 2h+3KNBUdnOYvgzIwtc5p5X1HM6iZtD5dAcKs4URwxb/ViYsUY+AKv2QUTp3nmZ7nHT4 W4pjZo2UsBt6ctNjCqkYC9VeOh5muMd2++VLx1Q4KZUhNB1Q9GUL9RRmzRRgh4cYA4a4 ww1lAvCc3ENmLW+GJHo/xjz30fDqqVrNb3fVGvuuIpHHToD2TtkafD/82vIwMY6EJfTL L1Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722263020; x=1722867820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SFDunmtzDxNSJrEf+jYEf48MjjKh1U2DF8SfSHqhi3s=; b=cqSO7rTFn4T3mc0m6IPVu1kC/mekFnE2gj/lE8AztBP3JqUlZrjviX6ZA9y7clVm4Z cEr7WeufnEHHdxcFlUIMqpJUaIM9E15RA+3k5sMJmwxk3GBB/Qu8pzjP79wLl4u1EV4W 7dd6G5He5o3uUsUG0pXuIk1pqy5eKr4LeOTr+d04gmzF4/1Izi8S6y7R92UJZQO1KomR 5iVYWTvAhKBHfg+lUk1ay7Al/xykhVvidSnyjeOGQmJHYo72uuR40Wt3F/Y21cxbtSsY edL+n4wbjx8KQhrUAbTqnclCeUYRR/eJk/E1WYeS0h5PLRtAJcUkdyhJTYriAHofmMKm e19g== X-Forwarded-Encrypted: i=1; AJvYcCUPjYgRSu/S0+uj0d6IP63lNUP/9uFvg+COqDWCgi2kD0uK+6ZyO3SwhElyucLve5ErMyb8JaGlfzjR5nXr6RvBzeEBd/xbqrIfCQ8Kn2I38/+A620= X-Gm-Message-State: AOJu0Yz/EHNbFYlIMwpRkLdNkk8H49MnAIVogwiGwxNJDpPeGkmvf+y4 bcuheD9N0IN/J1E192FfQmtwzG4gMAjayTdxIzcgiasFrUbk0nJe7gy/LDX5GbQ= X-Google-Smtp-Source: AGHT+IGU3odbD3sPqAp4C/YNgby17mm2kU5A273xs06JOeimMLExymMBUikKyGUV8C6cXEETPaqERA== X-Received: by 2002:a17:902:e84a:b0:1fb:82f5:6641 with SMTP id d9443c01a7336-1ff0481bb94mr68486545ad.23.1722263020193; Mon, 29 Jul 2024 07:23:40 -0700 (PDT) Received: from sunil-pc.tail07344b.ts.net ([106.51.198.16]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7fa988dsm83512965ad.263.2024.07.29.07.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 07:23:39 -0700 (PDT) From: Sunil V L To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-pci@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Robert Moore , Conor Dooley , Andrew Jones , Haibo Xu , Atish Kumar Patra , Drew Fustini , Sunil V L Subject: [PATCH v7 08/17] ACPI: pci_link: Clear the dependencies after probe Date: Mon, 29 Jul 2024 19:52:30 +0530 Message-ID: <20240729142241.733357-9-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240729142241.733357-1-sunilvl@ventanamicro.com> References: <20240729142241.733357-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_072341_344276_E96C3847 X-CRM114-Status: GOOD ( 11.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org RISC-V platforms need to use dependencies between PCI host bridge, Link devices and the interrupt controllers to ensure probe order. The dependency is like below. Interrupt controller <-- Link Device <-- PCI Host bridge. If there is no dependency added between Link device and PCI Host Bridge, then the PCI end points can get probed prior to link device, unable to get mapping for INTx. So, add the link device's HID to dependency honor list and also clear it after its probe. Signed-off-by: Sunil V L --- drivers/acpi/pci_link.c | 2 ++ drivers/acpi/scan.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index aa1038b8aec4..b727db968f33 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c @@ -748,6 +748,8 @@ static int acpi_pci_link_add(struct acpi_device *device, if (result) kfree(link); + acpi_dev_clear_dependencies(device); + return result < 0 ? result : 1; } diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 28a221f956d7..753539a1f26b 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -863,6 +863,7 @@ static const char * const acpi_honor_dep_ids[] = { "INTC10CF", /* IVSC (MTL) driver must be loaded to allow i2c access to camera sensors */ "RSCV0001", /* RISC-V PLIC */ "RSCV0002", /* RISC-V APLIC */ + "PNP0C0F", /* PCI Link Device */ NULL };