ata: libahci: allow to use multiple PHYs
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Wed, 30 Jul 2014 18:13:57 +0000 (20:13 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 30 Jul 2014 19:39:46 +0000 (15:39 -0400)
commitb1a9edbda040a43583ff14d63ebeb91abe5848b9
tree6ff80c6cafbd903fbf3bdea1af7ef4c696ee9f90
parent725c7b570fda4207e465ff8856c2c12c2645a685
ata: libahci: allow to use multiple PHYs

The current implementation of the libahci does not allow to use multiple
PHYs. This patch adds the support of multiple PHYs by the libahci while
keeping the old bindings valid for device tree compatibility.

This introduce a new way of defining SATA ports in the device tree, with
one port per sub-node. This as the advantage of allowing a per port
configuration. Because some ports may be accessible but disabled in the
device tree, the port_map mask is computed automatically when using
this.

Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.h
drivers/ata/libahci_platform.c