This reverts commit dd3a735e710fe1d5f65be1c080bcb708a9c397e0. a977d11b7f64 ("ata: libata: disallow dev-initiated LPM transitions to unsupported states") has introduced 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; Currently, the relevant code is duplicated, so it needs to be withdrawn.
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6251