kernel: bump 5.15 to 5.15.86
[openwrt/staging/ldir.git] / target / linux / bcm27xx / patches-5.15 / 950-0578-spi-spidev-Restore-loading-from-Device-Tree.patch
1 From 98ffb29a71923d14a79b3b8ef4d2540e6c6a6363 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 29 Nov 2021 12:14:49 +0000
4 Subject: [PATCH] spi: spidev: Restore loading from Device Tree
5
6 As happens occasionally, an upstream change has once again prevented
7 spidev from being loaded via Device Tree. We now need "spidev" to be
8 included in the new spi_device_id list, otherwise although the
9 spidev driver gets loaded no /dev/spidev*.* entries will appear.
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
12 ---
13 drivers/spi/spidev.c | 1 +
14 1 file changed, 1 insertion(+)
15
16 --- a/drivers/spi/spidev.c
17 +++ b/drivers/spi/spidev.c
18 @@ -680,6 +680,7 @@ static const struct file_operations spid
19 static struct class *spidev_class;
20
21 static const struct spi_device_id spidev_spi_ids[] = {
22 + { .name = "spidev" },
23 { .name = "dh2228fv" },
24 { .name = "ltc2488" },
25 { .name = "sx1301" },