Bug 28371 - [devel-5.10] fix "ata: libata: disallow dev-initiated LPM transitions to unsupported states"
Summary: [devel-5.10] fix "ata: libata: disallow dev-initiated LPM transitions to unsu...
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-23 14:28 UTC by LeoLiu-oc
Modified: 2025-12-23 14:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LeoLiu-oc zhaoxin_group 2025-12-23 14:28:32 UTC
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.
Comment 1 小龙 admin 2025-12-23 14:31:20 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6251