drivers: bus: simple-pm-bus: Use clocks
authorLiu Ying <victor.liu@nxp.com>
Mon, 26 Dec 2022 03:14:17 +0000 (11:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 12:11:26 +0000 (13:11 +0100)
commitc45839309c3db95b0df01fd164db10aca615c979
tree97457ec87f27ad0afe5ad8b9a2a742c519ba3801
parent7d12970f1746d47155f97113ac48b81fd8af8640
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.

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