1SATA_LINK_SCR_LPM(9) libata Library SATA_LINK_SCR_LPM(9)
2
3
4
6 sata_link_scr_lpm - manipulate SControl IPM and SPM fields
7
9 int sata_link_scr_lpm(struct ata_link * link,
10 enum ata_lpm_policy policy, bool spm_wakeup);
11
13 link
14 ATA link to manipulate SControl for
15
16 policy
17 LPM policy to configure
18
19 spm_wakeup
20 initiate LPM transition to active state
21
23 Manipulate the IPM field of the SControl register of link according to
24 policy. If policy is ATA_LPM_MAX_POWER and spm_wakeup is true, the SPM
25 field is manipulated to wake up the link. This function also clears
26 PHYRDY_CHG before returning.
27
29 EH context.
30
32 0 on success, -errno otherwise.
33
35 Jeff Garzik
36 Author.
37
39Kernel Hackers Manual 3.10 June 2019 SATA_LINK_SCR_LPM(9)