Hi,

I am trying to make a kernel patch on spidev.c to fix a known issue in linux 
6.6. I have written the patch and I can see that it is applied in my build/tmp 
files however it is not functioning on the image.

My patch method is to create a recipes-kernel/linux directory in a custom 
layer, create a linux-libc-headers_6.6.bbappend file and create a /poky 
directory for the patch files.

Here are what my patch files look like from meta-custom/recipes-kernel/linux:

poky/0004-spidev.patch
1
2 Local patch for spidev
3
4 Upstream-Status: Inappropriate
5 ---
6 diff --git a/drivers/spi/spidev.c b/driver/spi/spidev.c
7 index d13dc15..ce4c8e9 100644
8 --- a/drivers/spi/spidev.c
9 +++ b/drivers/spi/spidev.c
10 @@ -704,6 +704,7 @@ static const struct file_operations spidev_fops = {
11  static struct class *spidev_class;
12
13  static const struct spi_device_id spidev_spi_ids[] = {
14 +       { .name = "bh2228fv" },
15         { .name = "dh2228fv" },
16         { .name = "ltc2488" },
17         { .name = "sx1301" },
18 @@ -739,6 +740,7 @@ static const struct of_device_id spidev_dt_ids[] = {
19         { .compatible = "menlo,m53cpld", .data = &spidev_of_check },
20         { .compatible = "micron,spi-authenta", .data = &spidev_of_check },
21         { .compatible = "rohm,dh2228fv", .data = &spidev_of_check },
22 +       { .compatible = "rohm,bh2228fv", .data = &spidev_of_check },
23         { .compatible = "semtech,sx1301", .data = &spidev_of_check },
24         { .compatible = "silabs,em3581", .data = &spidev_of_check },
25         { .compatible = "silabs,si3210", .data = &spidev_of_check },

linux-libc-headers_6.6.bbappend
1 FILESEXTRAPATHS:prepend := "${THISDIR}:"
2 SRC_URI += "file://0004-spidev.patch"

Please can someone let me know if any part of my patch is incorrect?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64249): https://lists.yoctoproject.org/g/yocto/message/64249
Mute This Topic: https://lists.yoctoproject.org/mt/109512881/21656
Mute #kernel:https://lists.yoctoproject.org/g/yocto/mutehashtag/kernel
Mute #linux:https://lists.yoctoproject.org/g/yocto/mutehashtag/linux
Mute #patch:https://lists.yoctoproject.org/g/yocto/mutehashtag/patch
Mute #scarthgap:https://lists.yoctoproject.org/g/yocto/mutehashtag/scarthgap
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to