]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9301f53513e598f6a6a47f63e2ad788c2580ad6
tree5cd13dc53c3ed624c68bc91337759c5c96294d65
parent2cf41c5ebe4b686db4b848cc2b9165c0f9456497
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