FAILED: patch "[PATCH] iio: adc: ad7923: add the AD7927 to the SPI ID table" failed to apply to 6.12-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y
git checkout FETCH_HEAD
git cherry-pick -x 594157b4f3f64db5833dee679194c33a5968f92e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026112501-chamomile-occupier-b81e@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 594157b4f3f64db5833dee679194c33a5968f92e Mon Sep 17 00:00:00 2001
From: Josef Bacik <[email protected]>
Date: Tue, 27 Oct 2026 17:19:10 +0100
Subject: [PATCH] iio: adc: ad7923: add the AD7927 to the SPI ID table
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The binding describes the AD7927 as
compatible = "adi,ad7927", "adi,ad7928";
The OF match takes the second string. The modalias of the SPI device is made from the first one, "ad7927", which is not in the spi_device_id table:spi_get_device_id() returns NULL and ad7923_probe() dereferences it for the chip information. The module is not loaded automatically either, as the uevent of an SPI device says "spi:ad7927".
Add the name, with the data of the AD7928.
drivers/iio/adc/ad7923.c +1 -0
@@ -366,6 +366,7 @@ static const struct spi_device_id ad7923_id[] = { { .name = "ad7924", .driver_data = AD7924 }, { .name = "ad7908", .driver_data = AD7908 }, { .name = "ad7918", .driver_data = AD7918 }, + { .name = "ad7927", .driver_data = AD7928 }, { .name = "ad7928", .driver_data = AD7928 }, { } };
Sasha Levin
maintainerPATCH 1/1 iio: adc: ad7923: add the AD7927 to the SPI ID table
From: Josef Bacik <[email protected]>
[ Upstream commit 594157b4f3f64db5833dee679194c33a5968f92e ]
The binding describes the AD7927 as
compatible = "adi,ad7927", "adi,ad7928";
The OF match takes the second string. The modalias of the SPI device is made from the first one, "ad7927", which is not in the spi_device_id table:spi_get_device_id() returns NULL and ad7923_probe() dereferences it for the chip information. The module is not loaded automatically either, as the uevent of an SPI device says "spi:ad7927".
Add the name, with the data of the AD7928.
--- drivers/iio/adc/ad7923.c | 1 + 1 file changed, 1 insertion(+)
drivers/iio/adc/ad7923.c +1 -0
@@ -367,6 +367,7 @@ static const struct spi_device_id ad7923_id[] = { { "ad7924", AD7924 }, { "ad7908", AD7908 }, { "ad7918", AD7918 }, + { "ad7927", AD7928 }, { "ad7928", AD7928 }, { } };
Signature · 1 line
2.53.0