ata: ahci_platform: add support for PHY controller regulator
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Mon, 3 Sep 2018 10:01:56 +0000 (12:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Sep 2018 14:17:13 +0000 (08:17 -0600)
commitf20fb266e77a8af8a6e42eecfb5981178cc4d8a1
tree5cd13dc53c3ed624c68bc91337759c5c96294d65
parentd4fbe64bc6ed4a08f01bfd3a224c5a3ff083ec85
ata: ahci_platform: add support for PHY controller regulator

The SoC R40 AHCI controller need a PHY regulator to work.
But since the PHY is embedded in the controller, we cannot do a DT node for it,
since phy-supply works only in node with a PHY compatible.
So this patch adds a way to add an optional phy-supply regulator on AHCI controller node.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/ahci.h
drivers/ata/libahci_platform.c