cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading Linux from inux-5.4-stm32mp-r2.2 to linux-5.4-stm32mp-r2.4 causes SPI to fail

CErik.2
Associate II

Hello,

Upgrading Linux 5.4 causes SPI to fail to initiate (see boot log snippet below). Any ideas what would cause this (same DT)?

Again thanks for your great support!

Best Regards

Christer

[   2.782226] spi_stm32 4000c000.spi: failed to request tx dma channel

[   2.787222] spi_stm32 4000c000.spi: failed to request rx dma channel

[   2.853534] ------------[ cut here ]------------

[   2.858162] WARNING: CPU: 0 PID: 21 at drivers/spi/spi.c:2475 spi_register_controller+0x4c8/0x75c

[   2.867232] couldn't get idr

[   2.867236] Modules linked in:

[   2.873229] CPU: 0 PID: 21 Comm: kworker/0:1 Not tainted 5.4.192 #1

[   2.879606] Hardware name: STM32 (Device Tree Support)

[   2.884852] Workqueue: events deferred_probe_work_func

[   2.890102] [<c0111e98>] (unwind_backtrace) from [<c010d544>] (show_stack+0x10/0x14)

[   2.897982] [<c010d544>] (show_stack) from [<c0a71960>] (dump_stack+0xb0/0xc4)

[   2.905342] [<c0a71960>] (dump_stack) from [<c012e530>] (__warn+0xd0/0xf8)

[   2.912349] [<c012e530>] (__warn) from [<c0a611f0>] (warn_slowpath_fmt+0x94/0xb8)

[   2.919977] [<c0a611f0>] (warn_slowpath_fmt) from [<c067dfd0>] (spi_register_controller+0x4c8/0x75c)

[   2.929287] [<c067dfd0>] (spi_register_controller) from [<c068795c>] (stm32_spi_probe+0x3ac/0x558)

[   2.938422] [<c068795c>] (stm32_spi_probe) from [<c05c669c>] (platform_drv_probe+0x48/0x98)

[   2.946936] [<c05c669c>] (platform_drv_probe) from [<c05c4144>] (really_probe+0x208/0x47c)

[   2.955362] [<c05c4144>] (really_probe) from [<c05c4594>] (driver_probe_device+0x78/0x1c4)

[   2.963787] [<c05c4594>] (driver_probe_device) from [<c05c22b8>] (bus_for_each_drv+0x80/0xc4)

[   2.972479] [<c05c22b8>] (bus_for_each_drv) from [<c05c3e9c>] (__device_attach+0xe0/0x178)

[   2.980904] [<c05c3e9c>] (__device_attach) from [<c05c3048>] (bus_probe_device+0x84/0x8c)

[   2.989242] [<c05c3048>] (bus_probe_device) from [<c05c3594>] (deferred_probe_work_func+0x84/0xc4)

[   2.998380] [<c05c3594>] (deferred_probe_work_func) from [<c0149c30>] (process_one_work+0x218/0x5c4)

[   3.007690] [<c0149c30>] (process_one_work) from [<c014a668>] (worker_thread+0x294/0x598)

[   3.016024] [<c014a668>] (worker_thread) from [<c014fef8>] (kthread+0x168/0x180)

[   3.023562] [<c014fef8>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)

[   3.030916] Exception stack(0xd7223fb0 to 0xd7223ff8)

[   3.036064] 3fa0:                                    00000000 00000000 00000000 00000000

[   3.044401] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[   3.052736] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000

[   3.059522] ---[ end trace 0d4694236dd89c10 ]---

[   3.064180] spi_stm32 4000c000.spi: spi master registration failed: -16

[   3.071201] spi_stm32: probe of 4000c000.spi failed with error -16

1 REPLY 1
Erwan SZYMANSKI
ST Employee

Hello @Community member​ ,

STMicroelectronics does not support anymore the deliveries under OSTL 3.1 (Linux Kernel version < 5.10).

I advice you pass on a more recent OpenSTLinux version where a lot of fixes are applied.

Kind regards,

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.