Message ID | 20181128091932.18316-7-acelan.kao@canonical.com |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index edaba13edeb9..0a2938e4c834 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -2149,6 +2149,8 @@ static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep) deto = 20; } + /* Make dito, mdat, deto bits to 0s */ + devslp &= ~GENMASK_ULL(24, 2); devslp |= ((dito << PORT_DEVSLP_DITO_OFFSET) | (mdat << PORT_DEVSLP_MDAT_OFFSET) | (deto << PORT_DEVSLP_DETO_OFFSET) |