Dears,
We added SPI drivers to the Linux kernel and were able to successfully use SPI and peripheral communication, but SPI driver warning messages appear when the Linux kernel is started,below is part of the boot information. May I ask what is the reason, how to resolve?
Thanks.
10 cmdlinepart partitions found on MTD device gpmi-nand
Creating 10 MTD partitions on "gpmi-nand":
0x000000000000-0x000000300000 : "u-boot"
0x000000300000-0x000000400000 : "u-boot-env"
0x000000400000-0x000000500000 : "dtb"
0x000000500000-0x000000d00000 : "kernel"
0x000000d00000-0x000003f00000 : "rootfs"
0x000003f00000-0x000004700000 : "kernel-bak"
0x000004700000-0x000007900000 : "rootfs-bak"
0x000007900000-0x00000ab00000 : "user-data"
0x00000ab00000-0x00000ac00000 : "config"
0x00000ac00000-0x000010000000 : "reserved"
gpmi-nand 1806000.gpmi-nand: driver registered.
spidev spi0.0: buggy DT: spidev listed directly in DT
----------------------
WARNING: CPU: 0 PID: 1 at /home/user/yocto2/apimx6ull/build/tmp/work-shared/imx6ull14x14evk/kernel-source/drivers/spi/spidev.c:731 spidev_probe+0x1a4/0x1c0()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.15-2.1.0+g30278ab #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
[<8001271c>] (show_stack) from [<808064c8>] (dump_stack+0x84/0xc4)
[<808064c8>] (dump_stack) from [<80036b68>] (warn_slowpath_common+0x80/0xb0)
[<80036b68>] (warn_slowpath_common) from [<80036c34>] (warn_slowpath_null+0x1c/0x24)
[<80036c34>] (warn_slowpath_null) from [<8042b05c>] (spidev_probe+0x1a4/0x1c0)
[<8042b05c>] (spidev_probe) from [<80428ea0>] (spi_drv_probe+0x50/0x74)
[<80428ea0>] (spi_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<80385aa0>] (bus_for_each_drv+0x60/0x94)
[<80385aa0>] (bus_for_each_drv) from [<803871c8>] (device_attach+0x80/0x94)
[<803871c8>] (device_attach) from [<8038688c>] (bus_probe_device+0x84/0xa8)
[<8038688c>] (bus_probe_device) from [<80384bdc>] (device_add+0x370/0x56c)
[<80384bdc>] (device_add) from [<804295d0>] (spi_add_device+0x9c/0x134)
[<804295d0>] (spi_add_device) from [<8042a994>] (spi_register_master+0x49c/0x70c)
[<8042a994>] (spi_register_master) from [<8042c1a8>] (spi_bitbang_start+0x9c/0x108)
[<8042c1a8>] (spi_bitbang_start) from [<8042e0ac>] (spi_imx_probe+0x3dc/0x648)
[<8042e0ac>] (spi_imx_probe) from [<80388ad0>] (platform_drv_probe+0x44/0xac)
[<80388ad0>] (platform_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<8038757c>] (__driver_attach+0x8c/0x90)
[<8038757c>] (__driver_attach) from [<803859f8>] (bus_for_each_dev+0x68/0x9c)
[<803859f8>] (bus_for_each_dev) from [<80386afc>] (bus_add_driver+0x148/0x1f0)
[<80386afc>] (bus_add_driver) from [<80387b7c>] (driver_register+0x78/0xf8)
[<80387b7c>] (driver_register) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
[<80009718>] (do_one_initcall) from [<80b2cdbc>] (kernel_init_freeable+0x144/0x1e4)
[<80b2cdbc>] (kernel_init_freeable) from [<8080272c>] (kernel_init+0x8/0xe8)
[<8080272c>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
----
spi_imx 2008000.ecspi: probed
spidev spi1.0: buggy DT: spidev listed directly in DT
----------------------
WARNING: CPU: 0 PID: 1 at /home/user/yocto2/apimx6ull/build/tmp/work-shared/imx6ull14x14evk/kernel-source/drivers/spi/spidev.c:731 spidev_probe+0x1a4/0x1c0()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.1.15-2.1.0+g30278ab #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
[<8001271c>] (show_stack) from [<808064c8>] (dump_stack+0x84/0xc4)
[<808064c8>] (dump_stack) from [<80036b68>] (warn_slowpath_common+0x80/0xb0)
[<80036b68>] (warn_slowpath_common) from [<80036c34>] (warn_slowpath_null+0x1c/0x24)
[<80036c34>] (warn_slowpath_null) from [<8042b05c>] (spidev_probe+0x1a4/0x1c0)
[<8042b05c>] (spidev_probe) from [<80428ea0>] (spi_drv_probe+0x50/0x74)
[<80428ea0>] (spi_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<80385aa0>] (bus_for_each_drv+0x60/0x94)
[<80385aa0>] (bus_for_each_drv) from [<803871c8>] (device_attach+0x80/0x94)
[<803871c8>] (device_attach) from [<8038688c>] (bus_probe_device+0x84/0xa8)
[<8038688c>] (bus_probe_device) from [<80384bdc>] (device_add+0x370/0x56c)
[<80384bdc>] (device_add) from [<804295d0>] (spi_add_device+0x9c/0x134)
[<804295d0>] (spi_add_device) from [<8042a994>] (spi_register_master+0x49c/0x70c)
[<8042a994>] (spi_register_master) from [<8042c1a8>] (spi_bitbang_start+0x9c/0x108)
[<8042c1a8>] (spi_bitbang_start) from [<8042e0ac>] (spi_imx_probe+0x3dc/0x648)
[<8042e0ac>] (spi_imx_probe) from [<80388ad0>] (platform_drv_probe+0x44/0xac)
[<80388ad0>] (platform_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<8038757c>] (__driver_attach+0x8c/0x90)
[<8038757c>] (__driver_attach) from [<803859f8>] (bus_for_each_dev+0x68/0x9c)
[<803859f8>] (bus_for_each_dev) from [<80386afc>] (bus_add_driver+0x148/0x1f0)
[<80386afc>] (bus_add_driver) from [<80387b7c>] (driver_register+0x78/0xf8)
[<80387b7c>] (driver_register) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
[<80009718>] (do_one_initcall) from [<80b2cdbc>] (kernel_init_freeable+0x144/0x1e4)
[<80b2cdbc>] (kernel_init_freeable) from [<8080272c>] (kernel_init+0x8/0xe8)
[<8080272c>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
----
spi_imx 200c000.ecspi: probed
spidev spi2.0: buggy DT: spidev listed directly in DT
----------------------
WARNING: CPU: 0 PID: 1 at /home/user/yocto2/apimx6ull/build/tmp/work-shared/imx6ull14x14evk/kernel-source/drivers/spi/spidev.c:731 spidev_probe+0x1a4/0x1c0()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.1.15-2.1.0+g30278ab #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
[<8001271c>] (show_stack) from [<808064c8>] (dump_stack+0x84/0xc4)
[<808064c8>] (dump_stack) from [<80036b68>] (warn_slowpath_common+0x80/0xb0)
[<80036b68>] (warn_slowpath_common) from [<80036c34>] (warn_slowpath_null+0x1c/0x24)
[<80036c34>] (warn_slowpath_null) from [<8042b05c>] (spidev_probe+0x1a4/0x1c0)
[<8042b05c>] (spidev_probe) from [<80428ea0>] (spi_drv_probe+0x50/0x74)
[<80428ea0>] (spi_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<80385aa0>] (bus_for_each_drv+0x60/0x94)
[<80385aa0>] (bus_for_each_drv) from [<803871c8>] (device_attach+0x80/0x94)
[<803871c8>] (device_attach) from [<8038688c>] (bus_probe_device+0x84/0xa8)
[<8038688c>] (bus_probe_device) from [<80384bdc>] (device_add+0x370/0x56c)
[<80384bdc>] (device_add) from [<804295d0>] (spi_add_device+0x9c/0x134)
[<804295d0>] (spi_add_device) from [<8042a994>] (spi_register_master+0x49c/0x70c)
[<8042a994>] (spi_register_master) from [<8042c1a8>] (spi_bitbang_start+0x9c/0x108)
[<8042c1a8>] (spi_bitbang_start) from [<8042e0ac>] (spi_imx_probe+0x3dc/0x648)
[<8042e0ac>] (spi_imx_probe) from [<80388ad0>] (platform_drv_probe+0x44/0xac)
[<80388ad0>] (platform_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<8038757c>] (__driver_attach+0x8c/0x90)
[<8038757c>] (__driver_attach) from [<803859f8>] (bus_for_each_dev+0x68/0x9c)
[<803859f8>] (bus_for_each_dev) from [<80386afc>] (bus_add_driver+0x148/0x1f0)
[<80386afc>] (bus_add_driver) from [<80387b7c>] (driver_register+0x78/0xf8)
[<80387b7c>] (driver_register) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
[<80009718>] (do_one_initcall) from [<80b2cdbc>] (kernel_init_freeable+0x144/0x1e4)
[<80b2cdbc>] (kernel_init_freeable) from [<8080272c>] (kernel_init+0x8/0xe8)
[<8080272c>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
----
spi_imx 2010000.ecspi: probed
spidev spi3.0: buggy DT: spidev listed directly in DT
----------------------
WARNING: CPU: 0 PID: 1 at /home/user/yocto2/apimx6ull/build/tmp/work-shared/imx6ull14x14evk/kernel-source/drivers/spi/spidev.c:731 spidev_probe+0x1a4/0x1c0()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.1.15-2.1.0+g30278ab #1
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
[<8001271c>] (show_stack) from [<808064c8>] (dump_stack+0x84/0xc4)
[<808064c8>] (dump_stack) from [<80036b68>] (warn_slowpath_common+0x80/0xb0)
[<80036b68>] (warn_slowpath_common) from [<80036c34>] (warn_slowpath_null+0x1c/0x24)
[<80036c34>] (warn_slowpath_null) from [<8042b05c>] (spidev_probe+0x1a4/0x1c0)
[<8042b05c>] (spidev_probe) from [<80428ea0>] (spi_drv_probe+0x50/0x74)
[<80428ea0>] (spi_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<80385aa0>] (bus_for_each_drv+0x60/0x94)
[<80385aa0>] (bus_for_each_drv) from [<803871c8>] (device_attach+0x80/0x94)
[<803871c8>] (device_attach) from [<8038688c>] (bus_probe_device+0x84/0xa8)
[<8038688c>] (bus_probe_device) from [<80384bdc>] (device_add+0x370/0x56c)
[<80384bdc>] (device_add) from [<804295d0>] (spi_add_device+0x9c/0x134)
[<804295d0>] (spi_add_device) from [<8042a994>] (spi_register_master+0x49c/0x70c)
[<8042a994>] (spi_register_master) from [<8042c1a8>] (spi_bitbang_start+0x9c/0x108)
[<8042c1a8>] (spi_bitbang_start) from [<8042e0ac>] (spi_imx_probe+0x3dc/0x648)
[<8042e0ac>] (spi_imx_probe) from [<80388ad0>] (platform_drv_probe+0x44/0xac)
[<80388ad0>] (platform_drv_probe) from [<8038736c>] (driver_probe_device+0x174/0x2b4)
[<8038736c>] (driver_probe_device) from [<8038757c>] (__driver_attach+0x8c/0x90)
[<8038757c>] (__driver_attach) from [<803859f8>] (bus_for_each_dev+0x68/0x9c)
[<803859f8>] (bus_for_each_dev) from [<80386afc>] (bus_add_driver+0x148/0x1f0)
[<80386afc>] (bus_add_driver) from [<80387b7c>] (driver_register+0x78/0xf8)
[<80387b7c>] (driver_register) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
[<80009718>] (do_one_initcall) from [<80b2cdbc>] (kernel_init_freeable+0x144/0x1e4)
[<80b2cdbc>] (kernel_init_freeable) from [<8080272c>] (kernel_init+0x8/0xe8)
[<8080272c>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
----
Hi Jack
seems the similar issue was reported on
https://community.nxp.com/thread/372851
4.1 spidev module complains loudly about "buggy DT" · Issue #1054 · raspberrypi/linux · GitHub
as this is general linux issue it may be posted on kernel mail list
Majordomo Lists at VGER.KERNEL.ORG
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------