Skip to content

Commit

Permalink
ahci: st: Add ports-implemented property in support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrice Chotard authored and Tejun Heo committed Aug 10, 2016
1 parent 16af080 commit e719069
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/ata/ahci_st.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ static struct scsi_host_template ahci_platform_sht = {

static int st_ahci_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct st_ahci_drv_data *drv_data;
struct ahci_host_priv *hpriv;
int err;
Expand All @@ -170,6 +171,9 @@ static int st_ahci_probe(struct platform_device *pdev)

st_ahci_configure_oob(hpriv->mmio);

of_property_read_u32(dev->of_node,
"ports-implemented", &hpriv->force_port_map);

err = ahci_platform_init_host(pdev, hpriv, &st_ahci_port_info,
&ahci_platform_sht);
if (err) {
Expand Down

0 comments on commit e719069

Please sign in to comment.