X-Git-Url: http://git.efficios.com/?p=deliverable%2Flinux.git;a=blobdiff_plain;f=drivers%2Fata%2Fahci_platform.c;fp=drivers%2Fata%2Fahci_platform.c;h=62a04c8fb5c99c9ab0614bb6dc8f0146c47329e6;hp=40442332bfa7c154b93b540eae3eb8ae94e6d9f3;hb=35cd3f4563c4a0fc99be300afc7b82a822e634c7;hpb=b4184cbff393d9ede2d80efd7088126706c1ce08 diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 40442332bfa7..62a04c8fb5c9 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -51,6 +51,9 @@ static int ahci_probe(struct platform_device *pdev) if (rc) return rc; + of_property_read_u32(dev->of_node, + "ports-implemented", &hpriv->force_port_map); + if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ;