]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ata: libahci: Allow using multiple regulators
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 15 Jan 2015 14:09:37 +0000 (15:09 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 19 Jan 2015 14:53:26 +0000 (09:53 -0500)
commitc7d7ddee7e24eedde6149eefbcfbfbc7125b9ff0
treea2b9b1404322dc69e75752f4da8a8aece5b73ac3
parent6bd15996071096456578871b286d3e2185bd91e6
ata: libahci: Allow using multiple regulators

The current implementation of the libahci allows using multiple PHYs
but not multiple regulators. This patch adds the support of multiple
regulators. Until now it was mandatory to have a PHY under a subnode,
now a port subnode can contain either a regulator or a PHY (or both).

In order to be able to asociate a port with a regulator the port are
now a platform device in the device tree case.

There was only one driver which used directly the regulator field of
the ahci_host_priv structure. To preserve the bisectability the change
in the ahci_imx driver was done in the same patch.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.h
drivers/ata/ahci_imx.c
drivers/ata/libahci_platform.c
include/linux/ahci_platform.h