Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) (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 B5B7B1527AC for ; Sat, 1 Jun 2024 15:05:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717254320; cv=none; b=Z/8LPnAKqrh9LnOdFHdin8NVBS6JuU/FEZxNwvPCKGN0LACARoVFTV2zKfrZcbzkS02sYBh3tQvXC5/JKLf8GHLDUBLtaCA/RX5l8giTG/b80cf1ZneIVF5rVizwqx18rCf6BVfLWuyBtz2j0Sqc8+YRHpIsW7nl60tkARx3rgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717254320; c=relaxed/simple; bh=W0OyoZZELdi3XoEeDkVWUSqd7/veUNR99vJr5QS1Ml4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Zj2hOM7WIWvVfGcamEsnZhXvpoPW2tg27T9PZLLnEVYK8sZL7wd36etSawFPOr6VZYBILvPALgIBeV+qzvDUnul5mFNF13QgWe3YY9LsLt10qGGwWCD/TZDrZInAr9+2YCIpOQuch3gqkXDKzNV5uO/QAV1ldju+nMdxaSE6ohI= 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=DJEB6oWi; arc=none smtp.client-ip=209.85.166.180 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="DJEB6oWi" Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-36dd56cf5f5so11579005ab.3 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=lists.linux.dev; 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=DJEB6oWi4Hu/fMiyVkim3KJDWjrvk/bPp1JJV6X0JmmR18VneksQuePwA57hR0oFbx +kw7xCY995+YK5i8B+pS4e3A561k8GgEez1bkm2bBLO6lGwjys+9+2FL8ABlKdT+ZuRl bqGlx7T6y8RXtiZskYUjUTD/cMdbYP8/Gs7GZWwaPO0ogbk3hQY4q/nKHiPrt3IzjEbw XFqujgNSR0yt3o4BcwpG4BreX+RY8HHy5YEdoyb5a8eGgHNQAtLfNnGjzquFiM135m5Q fx4eHGq8icvBWBcbQoPL/NMMluaIxWBR53PbcgbizcSUAUjnwsHrlsMz/20hJfdMGFPi 6NCg== 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=w/qH2I5vu9lxDzmKEgWW7wsZDkUuYpOydO6fQid/a6ZUibyteVJFagDjk00gOn0dC3 wtPdT1KWthDdcKncd6EtbBVhcmxlX6vvX4NKwDkR93U95ICGrlUNmkpAI14TWY4qOaj+ ELEtJF/1WllKLR/V2c1IXyv1C4gkjHoUMcNuVqJ1IqOynNOYyVEtALyd4OriZsgeXVHA Lzc0tKWpj66Nnie0nzFHkOxdALC/2eqFrB9bUW86YGMCIne88eY7B5kUndV+gWTzZbeV 5WZ2V3KYn28uOfolUtqNu7Gi9SK2NNVad8RoVntfzVg8zPzUKhOqdVLOiGQhJ50Z31+r nSPg== X-Forwarded-Encrypted: i=1; AJvYcCUSAxkW4gtsjhulvfH0Ht+xHd0/kU+ZPHGGm8bdl2IROfgFbm+hdvBtyX3zNRGp0Gj45SDW6cX0DD+fbDP4Qftkq2/KuawsnFeFbZQt X-Gm-Message-State: AOJu0YyrniTQnebhVbSN3tOtlGs5w7E8zDLWdZbKgY3OQ/Xuu0SRA3cv 6FTZe+zffTuUIrgb4vjlRsYOOst+nCplPSRABV/z/8rWb8Tj98jtXXXAvAwpLbU= X-Google-Smtp-Source: AGHT+IGwBTAKeY5fhp4d/uHQX4CpW74WCuXLPUcacrekwQIOgiTzG+e+uX/rDZRV2vhHKygHe3+bDg== 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: acpica-devel@lists.linux.dev 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