drivers: bus: simple-pm-bus: Use clocks
authorLiu Ying <victor.liu@nxp.com>
Mon, 17 Oct 2022 07:40:38 +0000 (15:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 18:02:15 +0000 (19:02 +0100)
commit882cf4c913d730a74175db039d941005b883de38
tree209e4c580659b14427afd2719cd5747adc98e01a
parenta3fc57bc49a24960fd6a907457f9360a3e65b968
drivers: bus: simple-pm-bus: Use clocks

Simple Power-Managed bus controller may need functional clock(s)
to be enabled before child devices connected to the bus can be
accessed.  Get the clock(s) as a bulk and enable/disable the
clock(s) when the bus is being power managed.

One example is that Freescale i.MX8qxp pixel link MSI bus controller
needs MSI clock and AHB clock to be enabled before accessing child
devices.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Link: https://lore.kernel.org/r/20221017074039.4181843-2-victor.liu@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/simple-pm-bus.c