Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1572993lqp; Mon, 15 Apr 2024 10:08:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURPPtXKjFC1loqzn+t3P2k+Eo/UL292XZ62md9msBUOOp4EbcfZUzyMGms1MnIiYdRo1Uj+ZDwvPpBDKqQ2FI7t9k6W5f36sDTwx7nqA== X-Google-Smtp-Source: AGHT+IFdV2UWKo/UT3h0JZXSoCq7bcCOiSUgLzMHECdTBwFMKDflTNgd06Nah2ljE4TAu8PaWLWZ X-Received: by 2002:a17:903:1107:b0:1e4:53b6:6cf with SMTP id n7-20020a170903110700b001e453b606cfmr12038565plh.50.1713200909241; Mon, 15 Apr 2024 10:08:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713200909; cv=pass; d=google.com; s=arc-20160816; b=lEloIv2gJfXFp7nWMamup/Oi0B+tog/c4CyRtUcZQskfahVKjeL1/4vXGGF8oORa8D IpIolOeNqPyUhZ48Rq258XuW/wwzBU4+XlUVqleMJCsSUj6fuWzUVG0ik9L/wwvJUaeq /fE9k2PwZ0PTg97LBqujc95KiznED1wR+jpu9hqwu2aK7LTksfLbw39ttKW5L0t4CsMP G5gY91gIUgeey+weSx3HAMglUoZ+f16Viq2R3F32hkq41YNXJOECdMjle0XvInZBcg1B V/FgFO4AVc/QgBy+MbcPFuc5QePpAll4qyTwlDAeBZh+qQZW1Cbq2+hW9KU3iuY/irWu H7qA== 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=O4XnyCkVtMil3j8A/KjvpJf48jXr01BLYuVmlXnWMII=; fh=nKOUVhGOh//qJ8x11rWrIUadp1DDs7Cqo1O3nstpFbI=; b=JlybJ1Rf8Csnd0wBY6IfV8/71KQ/c4k3F9bZJD9g+pCVb6qFls3sRBK3fb8I5LSZEE geymVfSQePdE1ambdPxPQjFW9PaGOm4nXeulSVt+/BNZXdBqVB+ezPvXFwSasjy2CoCZ kIVfFhwP+u186oj9L1G9xcq0yjquv3U35rPf4Us6WqTUNhORgDr54dOexvcnHus2OAzV gBT8BghOOCXh2XXMdfaH/Nz7akRbYSwMx6qBQRx8gp2y8Y3zcw8WrLkVtasyxWA4vyJs ibBK3EuI+o5FbYi5MTy14zBcVO8wDEvt5luxyihyl3Ngwju/8PZZXJpErwlx2YGSbNXr 3wOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=S+2Xh3yf; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-145622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145622-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q12-20020a17090311cc00b001e7883704easi1328153plh.548.2024.04.15.10.08.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 10:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=S+2Xh3yf; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-145622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145622-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1F23C286056 for ; Mon, 15 Apr 2024 17:07:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 940B786259; Mon, 15 Apr 2024 17:03:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="S+2Xh3yf" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 8594612AADE for ; Mon, 15 Apr 2024 17:03:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713200619; cv=none; b=TIZCJYLTyx/D8bAhbU8aEQww1hnQhlpnjeNY3n5VAUYYg5dCltDiyh5rvboizQcWtffIwYh63uV7J6EkHLcXj3taBpeEUsC2Qd4rYsSKYnznU8Hyxat+axGRoSnwbbHjkcVAOEt5QXr4jU6zbl3obFFu1ZhKZsqVGi3JIhQPHAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713200619; c=relaxed/simple; bh=egibTauTOK5De6SrAZsOC/2NVkpwGlv29Ym3R/RrsZM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Q2ptgCcrQrWAVkLYWUqOgaZ06hvgf+Wo03HkjpIoYvmvmH0x+TV606WXxYBBclZaihwQLBnVGC9VeQvlU53g1IgX3Pf5WT2qTGFWbktd1T5Ci+JIr4yBvWZnaCJZTOiyD5ICbdCrNQytW6mAIwIVcHaajV5Z1gy3AAtJCjLBPFM= 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=S+2Xh3yf; arc=none smtp.client-ip=209.85.210.182 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-pf1-f182.google.com with SMTP id d2e1a72fcca58-6ecff9df447so3555286b3a.1 for ; Mon, 15 Apr 2024 10:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1713200618; x=1713805418; 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=O4XnyCkVtMil3j8A/KjvpJf48jXr01BLYuVmlXnWMII=; b=S+2Xh3yfocQEr4U7oungQ9wWoas84CArQ5iojn3Jhxjg1TrR+U9MkCtaGNUzfdaYQ4 MMrYMjrOHTlj+tbeEssAovI0oz1ao6nlGeW5qP0a7SymcRXQWhx3YejF28sF5aHcn1Gt Ik9mvV5L00m+PIpOZFqwuQniQcbJylajPnGnr9hG/Mi2DwfYIw8VB0YxeQad8s3guGYu 6pc5fat7iv5BLOeaCi5PYs1XkBJGGEBvVRziGRH71ngc33KsAi6WiWRLMgdLvY7P/4XS kJkeH/ft//1Pd1QqJ0P2MItbXxxXX6NOKMi1UwXYK6MgKoN21o06Zlbpvedl4VlqKRfP Dtvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713200618; x=1713805418; 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=O4XnyCkVtMil3j8A/KjvpJf48jXr01BLYuVmlXnWMII=; b=PgPPsIqFXWK3MZoE3av2hIEAs+cq79ikbdpLybcLlCK2fDA3/lYs6tMyka/8htQe5v G5J2up+eKYgMqeO5IzyfqJPjl1CXq4nz+YBtpdV8Y97dvRlCUKsg7lq5tPvFgtMebnKg H8sT5yRoLvWyL8pzXsNqImW8r4K0YIeCDodh2QrpLoweWHP/00s02kTatHTN26PQ6DG5 hmXW7YxUbTykPmZ291cfyINH2DPDr1KiBjgA71k3nbwlKPNdAycIrk0eKXrZ5C7vLaEG nOfhYfCoizmEXub81EN/LCOjT5aO0N1zS2uK5Ijv7YadCqvDBTpRs2T9qAOJSoRHlEKz zrnA== X-Forwarded-Encrypted: i=1; AJvYcCUH27Y07MsmhTYZvG2xBY+i+sQX2rJXYEIPKDXLBxm5FN2qGaFlXwjrF38tD9CVXPhJz5UnB23Bzai0WqlMmP4dRsbyX18AkbkKHk8R X-Gm-Message-State: AOJu0YwKxleoHavAOCtTY5PNBIFre31aOGdI2UkbjBikX9vMe+K3PA3B xC1sEis+GDpeEnK6b+GqVQg2YslgExCQR7YXNsBLy+Zkery1ToKymgE4dSw4b2Jh3bNNVDecn2+ Dr8M= X-Received: by 2002:a05:6a00:acb:b0:6ed:21d5:fc2c with SMTP id c11-20020a056a000acb00b006ed21d5fc2cmr12682862pfl.26.1713200617123; Mon, 15 Apr 2024 10:03:37 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.187.230]) by smtp.gmail.com with ESMTPSA id 1-20020a056a00072100b006ed045e3a70sm7433158pfm.25.2024.04.15.10.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 10:03:36 -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 , Haibo1 Xu , Conor Dooley , Andrew Jones , Atish Kumar Patra , Andrei Warkentin , Marc Zyngier , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Sunil V L Subject: [RFC PATCH v4 20/20] ACPI: pci_link: Clear the dependencies after probe Date: Mon, 15 Apr 2024 22:31:13 +0530 Message-Id: <20240415170113.662318-21-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240415170113.662318-1-sunilvl@ventanamicro.com> References: <20240415170113.662318-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 | 3 +++ drivers/acpi/scan.c | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index aa1038b8aec4..48cdcedafad6 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c @@ -748,6 +748,9 @@ static int acpi_pci_link_add(struct acpi_device *device, if (result) kfree(link); + if (IS_ENABLED(CONFIG_ARCH_ACPI_DEFERRED_GSI)) + acpi_dev_clear_dependencies(device); + return result < 0 ? result : 1; } diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 086ae040a5ad..32865af071ce 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -835,6 +835,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