1SATA_LINK_DEBOUNCE(9)           libata Library           SATA_LINK_DEBOUNCE(9)
2
3
4

NAME

6       sata_link_debounce - debounce SATA phy status
7

SYNOPSIS

9       int sata_link_debounce(struct ata_link * link,
10                              const unsigned long * params,
11                              unsigned long deadline);
12

ARGUMENTS

14       link
15           ATA link to debounce SATA phy status for
16
17       params
18           timing parameters { interval, duratinon, timeout } in msec
19
20       deadline
21           deadline jiffies for the operation
22

DESCRIPTION

24       Make sure SStatus of link reaches stable state, determined by holding
25       the same value where DET is not 1 for duration polled every interval,
26       before timeout. Timeout constraints the beginning of the stable state.
27       Because DET gets stuck at 1 on some controllers after hot unplugging,
28       this functions waits until timeout then returns 0 if DET is stable at
29       1.
30
31       timeout is further limited by deadline. The sooner of the two is used.
32

LOCKING

34       Kernel thread context (may sleep)
35

RETURNS

37       0 on success, -errno on failure.
38

AUTHOR

40       Jeff Garzik
41           Author.
42
44Kernel Hackers Manual 2.6.         June 2019             SATA_LINK_DEBOUNCE(9)
Impressum