diff options
-rw-r--r-- | drivers/ata/libahci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 513b3fa74d78..85ea5142a095 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c | |||
@@ -1168,8 +1168,7 @@ static void ahci_port_init(struct device *dev, struct ata_port *ap, | |||
1168 | 1168 | ||
1169 | /* mark esata ports */ | 1169 | /* mark esata ports */ |
1170 | tmp = readl(port_mmio + PORT_CMD); | 1170 | tmp = readl(port_mmio + PORT_CMD); |
1171 | if ((tmp & PORT_CMD_HPCP) || | 1171 | if ((tmp & PORT_CMD_ESP) && (hpriv->cap & HOST_CAP_SXS)) |
1172 | ((tmp & PORT_CMD_ESP) && (hpriv->cap & HOST_CAP_SXS))) | ||
1173 | ap->pflags |= ATA_PFLAG_EXTERNAL; | 1172 | ap->pflags |= ATA_PFLAG_EXTERNAL; |
1174 | } | 1173 | } |
1175 | 1174 | ||