Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
cpufreq: dt-platdev: Add stm32mp151 and stm32mp153 SOCs in the blacklist
CubeMX code generates dts with compatible string set to "st,stm32mp151" and "st,stm32mp153" for stm32mp151 and stm32mp153 SOCs.
Blacklisting these platforms avoids the following dump at boot when stm32-cpufreq is loaded.

[    1.640541] sysfs: cannot create duplicate filename '/devices/platform/cpufreq-dt'
[    1.640564] CPU: 0 PID: 16 Comm: kworker/0:1 Not tainted 5.4.31-g33ca1c71a-dirty #8
[    1.640575] Hardware name: STM32 (Device Tree Support)
[    1.640602] Workqueue: events deferred_probe_work_func
[    1.640645] [<c01124dc>] (unwind_backtrace) from [<c010d784>] (show_stack+0x10/0x14)
[    1.640669] [<c010d784>] (show_stack) from [<c0b05f94>] (dump_stack+0xb0/0xc4)
[    1.640694] [<c0b05f94>] (dump_stack) from [<c034978c>] (sysfs_warn_dup+0x58/0x64)
[    1.640716] [<c034978c>] (sysfs_warn_dup) from [<c03498c8>] (sysfs_create_dir_ns+0xec/0xfc)
[    1.640737] [<c03498c8>] (sysfs_create_dir_ns) from [<c0b0b5e0>] (kobject_add_internal+0xb4/0x354)
[    1.640758] [<c0b0b5e0>] (kobject_add_internal) from [<c0b0b8dc>] (kobject_add+0x5c/0xc8)
[    1.640781] [<c0b0b8dc>] (kobject_add) from [<c066fad0>] (device_add+0x110/0x644)
[    1.640807] [<c066fad0>] (device_add) from [<c06766c0>] (platform_device_add+0x108/0x248)
[    1.640830] [<c06766c0>] (platform_device_add) from [<c0677270>] (platform_device_register_full+0xd0/0x110)
[    1.640854] [<c0677270>] (platform_device_register_full) from [<c08d0668>] (stm32_cpufreq_probe+0x1ac/0x1b8)
[    1.640876] [<c08d0668>] (stm32_cpufreq_probe) from [<c0676924>] (platform_drv_probe+0x48/0x98)
[    1.640898] [<c0676924>] (platform_drv_probe) from [<c0674440>] (really_probe+0x24c/0x488)
[    1.640918] [<c0674440>] (really_probe) from [<c0674844>] (driver_probe_device+0x78/0x154)
[    1.640938] [<c0674844>] (driver_probe_device) from [<c0672494>] (bus_for_each_drv+0x84/0xd0)
[    1.640958] [<c0672494>] (bus_for_each_drv) from [<c0674154>] (__device_attach+0xe0/0x178)
[    1.640978] [<c0674154>] (__device_attach) from [<c0673268>] (bus_probe_device+0x84/0x8c)
[    1.640998] [<c0673268>] (bus_probe_device) from [<c06737bc>] (deferred_probe_work_func+0x84/0xc4)
[    1.641019] [<c06737bc>] (deferred_probe_work_func) from [<c0142368>] (process_one_work+0x1dc/0x58c)
[    1.641038] [<c0142368>] (process_one_work) from [<c0142960>] (worker_thread+0x248/0x528)
[    1.641059] [<c0142960>] (worker_thread) from [<c01486c0>] (kthread+0x11c/0x144)
[    1.641081] [<c01486c0>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    1.641093] Exception stack(0xd7175fb0 to 0xd7175ff8)
[    1.641109] 5fa0:                                     00000000 00000000 00000000 00000000
[    1.641127] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.641143] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.641161] kobject_add_internal failed for cpufreq-dt with -EEXIST, don't try to register things with the same name in the same directory.
  • Loading branch information
Mauro Salvini authored Oct 22, 2020
commit 4edc083c208dc48da5469566548b02862ca6ccad
2 changes: 2 additions & 0 deletions drivers/cpufreq/cpufreq-dt-platdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ static const struct of_device_id blacklist[] __initconst = {

{ .compatible = "st,stih407", },
{ .compatible = "st,stih410", },
{ .compatible = "st,stm32mp151", },
{ .compatible = "st,stm32mp153", },
{ .compatible = "st,stm32mp157", },

{ .compatible = "sigma,tango4", },
Expand Down