ata: sata_rcar: Add rudimentary Runtime PM support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 20 Jul 2018 12:27:39 +0000 (14:27 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 23 Jul 2018 15:18:43 +0000 (08:18 -0700)
commit1ecd34ddf63ef1d4015da5e5de6881e6845a6b0a
tree833769609ee48758c8d4b196a8ec7d09de4110d1
parentc01e229f24eb133ca85453597447477974b07f20
ata: sata_rcar: Add rudimentary Runtime PM support

Replace the explicit clock handling to enable/disable the SATA module by
calls to Runtime PM.

This makes the driver independent of actual SoC clock/power hierarchies,
and is needed to support virtualization, where the guest is not in full
control of power management.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_rcar.c