From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379661; b=QdfUsY5cQsyQcAI0HuXMk5YmTYGY/uTrGn9ta4uOw//6jnoOmEmV88GZ0KgFhM3LOypO aAYpu7OgEO6fHyh86Z3k4iC13C5VLSqIM75nKRfPaFuhNeY+R1ufMNDPhIHg/1QzRkjo1 b2q7UN6qC3iHqqdTjMfcNdOCL+WIuwC9VuV80hSEa71KZUi1UyCNttvjKtuJ3IL/x0Plu dugcoJJIyaA1xmk0SjgYDouPA1f8gmmX77gFt84s4FBs6CN7+Dv7mDKGGTJbA2WG1Svdg n1CUmzKaAQX5SLCmxAxyrUQ6sWBStlDfDIGTav0MPmwuqPqxr4Y6kal7lw4OtO12zWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379661; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=WIFFZb5Icqat34fQtjir6LjUftqY1SW+jAMhwsU0Rmc=; b=enpnM+/8cfND2tFNgkjxl3HB78/Dm4ivjKISqtExJa51TLNZ3aHjhPdS6ol/QgPgZ4qO uCk49pomDMVngoGz7P0MAiVOpBwZYhHJLHkXkKf9VeUIFGDQOS8ArSOpPzEh7Jd6P8vEV JdyykT+wIFhDY/uJyDV4C1n6UWgu9VAG4Qur3vjlHoiAt3xXH3wuV7w0jS6fxEf4SVfIF qqkRB9MS2ktJFgkwt4dvb2rOzMgDsw3MPNiZaIggRvX6HS7EGx/Ovdpe42h9BJ0cGAxOc 00ARAU2BpJROvWSEmlSZbK/9stOuiliQMBOGVtCUw0tbDx/xcgn3FkpvKRrjRQ1a7tg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pPFOLebU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4219606A322; Fri, 4 Dec 2026 10:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pPFOLebU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78D561F000C2; Fri, 4 Dec 2026 10:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379660; bh=WIFFZb5Icqat34fQtjir6LjUftqY1SW+jAMhwsU0Rmc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pPFOLebUM9G8NajE9acMYPSYbiMagicPkRmo3yj0+AQsoRc1rlILu8C/fYLBF/Uym +7Pub4+axGH3/4JEyw986DWScLuyGhzXJRPyyUwVD1IHw0jwK6qIrDztCgUQSZDu96 6metYFKZXgPcCrO9Lcl/8m2lednNISIyHVPTiYZM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alban Bedel , Mark Brown , Sasha Levin Subject: [PATCH 6.1 0058/1059] spi: Fix ACPI SPI resources using relative path Date: Fri, 4 Dec 2026 18:53:09 +0900 Message-ID: <20261204100645.586480268@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alban Bedel [ Upstream commit 4825287f6d2346e9273f35a928d1ef40e68bc58b ] ACPI resources can use relative path when pointing to other resources. This didn't work with SPISerialBus resources because the device defining the resource was not passed to acpi_get_handle(). Pass the ACPI device handle through the lookup context to also allow for relative paths. Signed-off-by: Alban Bedel Link: https://patch.msgid.link/20261001153507.2011806-1-alban.bedel@lht.dlh.de Signed-off-by: Mark Brown Stable-dep-of: 2d0953ab69d3 ("spi: acpi: only look up the IRQ of confirmed SPI devices") Signed-off-by: Sasha Levin --- drivers/spi/spi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 9658d4100c40f..411d2aee9ecec 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2464,6 +2464,7 @@ EXPORT_SYMBOL_GPL(spi_new_ancillary_device); #ifdef CONFIG_ACPI struct acpi_spi_lookup { struct spi_controller *ctlr; + acpi_handle device_handle; u32 max_speed_hz; u32 mode; int irq; @@ -2560,7 +2561,7 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data) if (lookup->index != -1 && lookup->n++ != lookup->index) return 1; - status = acpi_get_handle(NULL, + status = acpi_get_handle(lookup->device_handle, sb->resource_source.string_ptr, &parent_handle); @@ -2652,6 +2653,7 @@ struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr, return ERR_PTR(-EINVAL); lookup.ctlr = ctlr; + lookup.device_handle = acpi_device_handle(adev); lookup.irq = -1; lookup.index = index; lookup.n = 0; -- 2.53.0