aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2016-08-10 11:37:29 -0400
committerTejun Heo <tj@kernel.org>2016-08-10 12:16:49 -0400
commite7190699ca8c8daa52bfc62c01a71dea6decc9ee (patch)
tree0e9abf2e98f60736e271f16cdfafa477e95dd88a /drivers/ata
parent16af080e47785d14919bf94bf8a4097c5c8529fb (diff)
ahci: st: Add ports-implemented property in support
Despite ST AHCI version = 1.3, reading HOST_PORTS_IMPL returns 0. So force_port_map to 1 by using ports-implemented DT property. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci_st.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c
index 8ff428fe8e0f..bc345f249555 100644
--- a/drivers/ata/ahci_st.c
+++ b/drivers/ata/ahci_st.c
@@ -147,6 +147,7 @@ static struct scsi_host_template ahci_platform_sht = {
147 147
148static int st_ahci_probe(struct platform_device *pdev) 148static int st_ahci_probe(struct platform_device *pdev)
149{ 149{
150 struct device *dev = &pdev->dev;
150 struct st_ahci_drv_data *drv_data; 151 struct st_ahci_drv_data *drv_data;
151 struct ahci_host_priv *hpriv; 152 struct ahci_host_priv *hpriv;
152 int err; 153 int err;
@@ -170,6 +171,9 @@ static int st_ahci_probe(struct platform_device *pdev)
170 171
171 st_ahci_configure_oob(hpriv->mmio); 172 st_ahci_configure_oob(hpriv->mmio);
172 173
174 of_property_read_u32(dev->of_node,
175 "ports-implemented", &hpriv->force_port_map);
176
173 err = ahci_platform_init_host(pdev, hpriv, &st_ahci_port_info, 177 err = ahci_platform_init_host(pdev, hpriv, &st_ahci_port_info,
174 &ahci_platform_sht); 178 &ahci_platform_sht);
175 if (err) { 179 if (err) {