提交 e7190699 编写于 作者: P Patrice Chotard 提交者: Tejun Heo

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: NPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 16af080e
...@@ -147,6 +147,7 @@ static struct scsi_host_template ahci_platform_sht = { ...@@ -147,6 +147,7 @@ static struct scsi_host_template ahci_platform_sht = {
static int st_ahci_probe(struct platform_device *pdev) static int st_ahci_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev;
struct st_ahci_drv_data *drv_data; struct st_ahci_drv_data *drv_data;
struct ahci_host_priv *hpriv; struct ahci_host_priv *hpriv;
int err; int err;
...@@ -170,6 +171,9 @@ static int st_ahci_probe(struct platform_device *pdev) ...@@ -170,6 +171,9 @@ static int st_ahci_probe(struct platform_device *pdev)
st_ahci_configure_oob(hpriv->mmio); 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, err = ahci_platform_init_host(pdev, hpriv, &st_ahci_port_info,
&ahci_platform_sht); &ahci_platform_sht);
if (err) { if (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册