OSDN Git Service

bus: imx-weim: add DT overlay support for WEIM bus
authorIvan Bornyakov <i.bornyakov@metrotek.ru>
Tue, 22 Feb 2022 05:20:59 +0000 (08:20 +0300)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Feb 2022 06:55:12 +0000 (14:55 +0800)
commite6cb5408289f4202f4088731a4ac98c7ffaedb9d
treeddfa14dde24c01a70e92d8e09a88abf2c01f5a15
parent16dcfe972b7e6f3fbe08771b8d8feaf9044b54fa
bus: imx-weim: add DT overlay support for WEIM bus

Add OF reconfiguration notifier handler for WEIM bus to setup Chip
Select timings on runtime creation of child devices.

However, it is not possible to load another DT overlay with conflicting
CS timings with previously loaded overlay, even if the first one is
unloaded. The reason is that there is no acces to CS timing property of
a device node being removed, thus we can't track which of configured CS
are available for re-configuration.

Signed-off-by: Ivan Bornyakov <i.bornyakov@metrotek.ru>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/bus/imx-weim.c