commit | eece26411028c83a896c2e14e1f115489b3018dd | [log] [tgz] |
---|---|---|
author | Geert Uytterhoeven <geert+renesas@glider.be> | Fri Mar 17 11:20:50 2023 +0100 |
committer | Geert Uytterhoeven <geert+renesas@glider.be> | Mon Mar 20 16:29:32 2023 +0100 |
tree | c0711974ddbee81040b00e8087bf4daf2a2f6948 | |
parent | a4bd2edeacdeb0c9e03bb14454dc7d59dcfc57bd [diff] |
[RFC] treewide: Fix instantiation of devices in DT overlays When loading a DT overlay that creates a device, the device is not instantiated, unless the DT overlay is unloaded and reloaded again. Saravana explains: Basically for all overlays (I hope the function is only used for overlays) we assume all nodes are NOT devices until they actually get added as a device. Don't review the code, it's not meant to be :) Based on a hacky patch by Saravana Kannan, which covered only platform and spi devices. Fixes: 4a032827daa89350 ("of: property: Simplify of_link_to_phandle()") Link: https://lore.kernel.org/r/CAGETcx_+rhHvaC_HJXGrr5_WAd2+k5f=rWYnkCZ6z5bGX-wj4w@mail.gmail.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/328e557aaee9d3f5f1bcaf2b8ac2de0e04c4fbb8.1679049188.git.geert+renesas@glider.be --- Marked RFC as Saravana said this is an ugly hack. Still, this is a regression in v6.3-rc1 that should be fixed.