From 73933007450e95e368168b6cb3dc422c4f626d08 Mon Sep 17 00:00:00 2001 From: LeoLiu-oc Date: Tue, 23 Dec 2025 14:17:16 +0800 Subject: [PATCH] anolis: Revert "ata: libata: disallow dev-initiated LPM transitions to unsupported states" ANBZ: #28371 This reverts commit dd3a735e710fe1d5f65be1c080bcb708a9c397e0. a977d11b7f64 ("ata: libata: disallow dev-initiated LPM transitions to unsupported states") has introduced the relevant code. Currently, the relevent code is duplicated, so it needs to be withdrawn. Signed-off-by: LeoLiu-oc --- drivers/ata/ahci.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 5888a3d030bd..1dbfe8903fe0 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -1889,15 +1889,6 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) dev_info(&pdev->dev, "SSS flag set, parallel bus scan disabled\n"); } - if (!(hpriv->cap & HOST_CAP_PART)) - host->flags |= ATA_HOST_NO_PART; - - if (!(hpriv->cap & HOST_CAP_SSC)) - host->flags |= ATA_HOST_NO_SSC; - - if (!(hpriv->cap2 & HOST_CAP2_SDS)) - host->flags |= ATA_HOST_NO_DEVSLP; - if (!(hpriv->cap & HOST_CAP_PART)) host->flags |= ATA_HOST_NO_PART; -- Gitee