]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/bus/ti-sysc.c
bus: ti-sysc: Add fck clock alias for children with notifier_block
authorTony Lindgren <tony@atomide.com>
Thu, 22 Feb 2018 21:58:03 +0000 (13:58 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 26 Feb 2018 22:16:10 +0000 (14:16 -0800)
commit2c355ff6b6ca6e0153cc6845aa004b9f5212d81e
tree25d78419eddb76afc316193794ddc379b8395c90
parentd060b40523dcd91428c7fb2aaa307de37887484a
bus: ti-sysc: Add fck clock alias for children with notifier_block

The functional clock is used by several child device drivers to query
the rate for the child device internal configuration. The functional
clock is really for the whole interconnect target module, and not just
for the child device, and can also be shared across multiple children.
At least the timers, i2c and mmc driver query the fck for rate.

So let's just create a clock alias for the child fck if it does not
yet exits. We can do this with the BUS_NOTIFY_ADD_DEVICE before the
child is probed.

Note that we need to now also remove the legacy mode check for getting
the dts clocks in ti-sysc driver.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c