---
name: "sata_phy_debounce"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/sata_phy_debounce"
---

# sata\_phy\_debounce(9)

debounce SATA phy status

## NAME

sata\_phy\_debounce - debounce SATA phy status

## SYNOPSIS

**int sata\_phy\_debounce(struct ata\_port \*** *ap***, const unsigned long \*** *params***);**

## ARGUMENTS

*ap*

ATA port to debounce SATA phy status for

*params*

timing parameters { interval, duratinon, timeout } in msec

## DESCRIPTION

Make sure SStatus of *ap* reaches stable state, determined by holding the same value where DET is not 1 for *duration* polled every *interval*, before *timeout*. Timeout constraints the beginning of the stable state. Because, after hot unplugging, DET gets stuck at 1 on some controllers, this functions waits until timeout then returns 0 if DET is stable at 1.

## LOCKING

Kernel thread context (may sleep)

## RETURNS

0 on success, -errno on failure.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
