---
name: "sata_link_scr_lpm"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sata_link_scr_lpm"
---

# sata\_link\_scr\_lpm(9)

manipulate SControl IPM and SPM fields

## NAME

sata\_link\_scr\_lpm - manipulate SControl IPM and SPM fields

## SYNOPSIS

**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

## DESCRIPTION

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.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
