Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp65538lqj; Sat, 1 Jun 2024 08:12:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZ4oEF77B2eAqm+OJdfJmicCM7qEQsDJJfH3+v+GSNQsf/hmugV2yjjg8dhCf+ouGtK9RWjHbgI4vp/rrRvjZpJSWX106B2VCj6SyD1A== X-Google-Smtp-Source: AGHT+IFLAzjg4SSAfNHSjU0e79dlsBPnQLr4IbrH9jeZJMJFOwytUC/C4XfM+HO/dHORS+niNTRi X-Received: by 2002:a17:906:8306:b0:a63:41f7:d80f with SMTP id a640c23a62f3a-a6819336061mr438131366b.18.1717254775643; Sat, 01 Jun 2024 08:12:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717254775; cv=pass; d=google.com; s=arc-20160816; b=b4pCakEaf3MNP27ynGGAJVfydsvUglFTTDwHiimzrOpJg77Myt/VZRPwscq+reSoJE 1vmMnZhYswpZFzyKX3cZz0NOq+0fn0PvPJDf6swuZ5+WWnyzAi7Hs8Awr8xvUNVcr+09 QMFiOqqsLxfgaR+K78bw1PT29j3YWaIFLAcGWmspn1ubit8zZ9x/mpKVSRKvvkcvGien 5kkeX+ncCGBdi8VwclGLFOF2kTelGai3FPvAYfljILVHekDtE/wcqckyFPufryxCoszx G6zYQ4ETz1X8ne+W+8in+tzIR5tXPMRrLoPKit6zcIewJw8ot7DqHDZQ/nJTn6zVeEpW P6XA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Xln7tORKkifGXhXo2mks++Fmg8FnhH/zBNmrN9CYLQo=; fh=PvDGckjcgZ7R4ifsB5W/sICmor2EBNF64xF/DE9NQjg=; b=B2Q5rYQU7YRA/MGgWaB2uj1/hN+iIDTfnOMx2PSp4D6ZwOaEwZBrBtVxiV/XQzoMPY ySni1s9+83cru6FiQB1K+a5q55TmvmIvMbSz/Te3yOECsQYwiCAo677EouPy9LrHIa2O 0gT2oq3gmXl2jB15TzAUAe9TzmB6cigCCFV3XglOZmLXQBNDbWzx+VIkpbVkVc95LTax sGZzj3351oVt0cJR5lTxbrI24OqUumnI6rphrX03kiDicyy64S+OUIVgN7+tAtvjylW2 hMd6NdhO6GvEkYgte2PnRGxtIMetRpjCh9kdOqv+Rwy72692+qYBDM8ChmpNmoqVwSG3 C2gA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=BBBbQ44E; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-197913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197913-linux.lists.archive=gmail.com@vger.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 a640c23a62f3a-a68c661783csi44480966b.32.2024.06.01.08.12.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 08:12:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197913-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=@ventanamicro.com header.s=google header.b=BBBbQ44E; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-197913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197913-linux.lists.archive=gmail.com@vger.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 ACB8D1F23EF7 for ; Sat, 1 Jun 2024 15:06:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B2D3153BF6; Sat, 1 Jun 2024 15:05:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="BBBbQ44E" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8BE71534EA for ; Sat, 1 Jun 2024 15:05:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717254321; cv=none; b=llkV6B1CK8ojnY/HxR6bv4U29B1zlD9z1ovejDrvyu3NH8EA3ARZd/FUUGY0hynO3ZRH21YVpEjTKJ9mhCJYXlbIaG9P2SgdEBHJU/ifYvNOBdVwN/QDzL2EXVKbNhPDWuLP+WKFQiXkvtUhiNycm/BY4A8RzdacafDEz9SM3Fg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717254321; c=relaxed/simple; bh=W0OyoZZELdi3XoEeDkVWUSqd7/veUNR99vJr5QS1Ml4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lylRllv0Omuc/YQQh7ScrauSDQQNIRYvDM/bTCKvrhsIDGUEEDGeAdt44hEjuOHKOBsqpk68KeictX6WtbbfRpQ2zMzMX6tbGfIFXULFZmtx7+gNwEKdCKFukus3OqVp7en+7BF3ckkZKSMTxuv7tabsazAchfIi0q/wZRYtGHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=BBBbQ44E; arc=none smtp.client-ip=209.85.166.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-36ddf683ad7so12232405ab.2 for ; Sat, 01 Jun 2024 08:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1717254318; x=1717859118; darn=vger.kernel.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=Xln7tORKkifGXhXo2mks++Fmg8FnhH/zBNmrN9CYLQo=; b=BBBbQ44EhKJlAEZX1vP2lnI4YaNZsvpym9ajQvc8XbakKS0jNtInMBSr7SEw0Ulhx9 LplchPBhUaYXkb3cxGAcnZYodC7ZK3wyyF7ZKUbX0zUgtageYczPHWd0TLTqTOjLF4ou OHuTI1FEuaExMX+cRQhqfORaFOu0BktQOwoWq2djKiPvMfyeuDUl7Yf2gxR5ClqbQmZP 8ABTFCvSUn7411sCWThf+A6Ezawxpv632d5aiaXVxHMNj3Gl+nEopUB+5OsBw4/oPkhY hh7wQvEHoblnKMugUX0rcM1SJgrDQXctt0k9zX2YseOK+/zETkvkDfGcCLZ6hrrCj7WL 8VRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717254318; x=1717859118; 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=Xln7tORKkifGXhXo2mks++Fmg8FnhH/zBNmrN9CYLQo=; b=X/yv6uBvtwV/A1lmHgoQBwriCtj9gbHRXJ377YPoZ5FOzevi1q3bcPo+5NyB1W81fR JU9piqSUYlH3+SDEfiD0J9ksak15McdhsUTZ4ezf5daRvfG4IzcSkb5+8teOwe900Mz4 pYAfuOKvc22KwIfycwmGCQaTlNOmBZDiDcgL+jCdZpTt2M7GnopC2AbZrgIx/iRx4T29 RvRBfJhzRwFzIm9gdxujqqoZ3Hj5OI2i8cveCbOYp4wofdEBFDTi2HFyh5XKmwN9iWjW 64G98/nil7by8/Yt/rZyjT/JDxDA4yskO1nha/gZA4yGXn0MPYR48OurdOKtd8+WfCsc Sldg== X-Forwarded-Encrypted: i=1; AJvYcCVoytVcXxx8AglPpXLinSVL5lEz2sQ4CJAVmsw31hP4fhzglERUAcNPL3hneioce0naCTlgfyk8RoQ7kGVzz+0++Jvd1zrYdqe6vPRS X-Gm-Message-State: AOJu0YyaaRbM1UExTWLzYn0uWtHBkt6K+OirNJ04mX1Ip9EQeUSpvGHi nwFx3q91hUPe23atgji5PpeGcve9GyzZD2WE35fW9ctNyft503+MHj1ndin76Xo= X-Received: by 2002:a05:6e02:198a:b0:374:5641:bb8f with SMTP id e9e14a558f8ab-3748b9dd6a4mr60478395ab.27.1717254317893; Sat, 01 Jun 2024 08:05:17 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.187.237]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6c35a4ba741sm2559410a12.85.2024.06.01.08.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 08:05:17 -0700 (PDT) From: Sunil V L To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, acpica-devel@lists.linux.dev Cc: Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Robert Moore , Conor Dooley , Andrew Jones , Andy Shevchenko , Marc Zyngier , Atish Kumar Patra , Haibo1 Xu , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Sunil V L Subject: [PATCH v6 08/17] ACPI: pci_link: Clear the dependencies after probe Date: Sat, 1 Jun 2024 20:34:02 +0530 Message-Id: <20240601150411.1929783-9-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240601150411.1929783-1-sunilvl@ventanamicro.com> References: <20240601150411.1929783-1-sunilvl@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 918e71fc54cb..0280056a326b 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -834,6 +834,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 }; -- 2.40.1