carta
sata_phy_debounce(9)

sata_phy_debounce9

Debounce sata phy status

Arguments

ap

ATA port to debounce SATA phy status for

params

timing parameters { interval, duratinon, timeout } in msec

Overview

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.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.