Skip to content

Commit 45b96d6

Browse files
committed
ata: ahci: a hotplug capable port is an external port
A hotplug capable port is an external port, so mark it as such. We even say this ourselves in libata-scsi.c: /* set scsi removable (RMB) bit per ata bit, or if the * AHCI port says it's external (Hotplug-capable, eSATA). */ This also matches the terminology used in AHCI 1.3.1 (the keyword to search for is "externally accessible"). Tested-by: Damien Le Moal <[email protected]> Tested-by: Jian-Hong Pan <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Niklas Cassel <[email protected]>
1 parent f713193 commit 45b96d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/ata/ahci.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,9 +1648,10 @@ static void ahci_mark_external_port(struct ata_port *ap)
16481648
void __iomem *port_mmio = ahci_port_base(ap);
16491649
u32 tmp;
16501650

1651-
/* mark esata ports */
1651+
/* mark external ports (hotplug-capable, eSATA) */
16521652
tmp = readl(port_mmio + PORT_CMD);
1653-
if ((tmp & PORT_CMD_ESP) && (hpriv->cap & HOST_CAP_SXS))
1653+
if (((tmp & PORT_CMD_ESP) && (hpriv->cap & HOST_CAP_SXS)) ||
1654+
(tmp & PORT_CMD_HPCP))
16541655
ap->pflags |= ATA_PFLAG_EXTERNAL;
16551656
}
16561657

0 commit comments

Comments
 (0)