sata_link_scr_lpm(9)

sata_link_scr_lpm9

Manipulate scontrol ipm and spm fields

Usage

int sata_link_scr_lpm(struct ata_link * link, enum ata_lpm_policy policy, bool spm_wakeup);

Arguments

link

ATA link to manipulate SControl for

policy

LPM policy to configure

spm_wakeup

initiate LPM transition to active state

Overview

Manipulate the IPM field of the SControl register of link according to policy. If policy is ATA_LPM_MAX_POWER and spm_wakeup is true, the SPM field is manipulated to wake up the link. This function also clears PHYRDY_CHG before returning.

LOCKING: EH context.

Return

0 on success, -errno otherwise.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

Author

Jeff Garzik

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.