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=1796384267; b=bV/GXIKo2A4UMbvhCf4WE7CnPMBpS0JyBt4unDZ38J9wa055zKkhMxW7/H51wrVbDgJv wrYzvb7RajFx0tsSp/BXxKEDr0ywSOhGrOKg2jnWEb9Vg80v84AT/g242zXgBhEgucp5q nsDPqa/IxubsI5x3OofPA/+s0Y6yLDOGJCO0vwmF1VGrrIKPqXFqEWNJwaoanDJhf5ABX 3kKmtdK89NAnbWblZS22ZyfK4Lc2nKyrF7vfizG4ZdNnRpp98TYo3WFZWXL68uvexQrPp eq6lcqprPZpVwKLo2bi+8M1wYniwh1yyguzsE2tRYB19y9zkIb1p6+RweEQASeCwLuA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384267; 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=YJ299o0CCud68NGonDyA337qesR+LkZCVLKKqqBdg+8=; b=M4oSwqAM79trAnNypQVs1LWx030kgTEBgze40JPaUy4GmeUWmfn1J7XpsB+0aauqamTS rWjOp6Gzs0dwmovzvFepLlBhTrBb9k9MFBTo8RrVHRS60NsV9o9nurq6ljuYC7+vMMLq8 etuzoblELl9INgpDUgWO4vrz9zZXMt7Oyx2F31h/8HxCfOXcvheKTcKVSIe3W1D/DuRGZ nxGqdBg2OUjCHejH8kDb88yUO7drZUiZEIZPGo4BSUv4LVLXYcFysMK1na7lZB2/979Lq 9ToirgoigUcTWEvbgQZHbF9z/DdP2jrGo+km+ITRXQ/X+49beiYzNK2XuKheAsq7FfQ== 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=1qoV6pkq; 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 9BF26606A322; Fri, 4 Dec 2026 11:37:47 +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=1qoV6pkq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 131A51F000CE; Fri, 4 Dec 2026 11:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384267; bh=YJ299o0CCud68NGonDyA337qesR+LkZCVLKKqqBdg+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=1qoV6pkq4XPS7D4IBg4FrMXy2ZKgMjCwBwcKGAYMTxUE3uxQ0vvuky8RCxe4Nj7yb iYCH6LK3X2/xVExpaEZWFB4fHyeU1+r5lnBGFR+Fyk9tLrKvxs8Uo2bV/Z9vTfXAz/ ZCrL/lOEJyIbuvP43R/sndbkIVYFoJFOLOuFY0sY= 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.6 0079/1167] spi: Fix ACPI SPI resources using relative path Date: Fri, 4 Dec 2026 18:51:46 +0900 Message-ID: <20261204100704.145262020@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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.6-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 9681b05e0d5b6..9cc5371326104 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2468,6 +2468,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; @@ -2564,7 +2565,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); @@ -2656,6 +2657,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