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

NAME

6       sata_link_hardreset - reset link via SATA phy reset
7

SYNOPSIS

9       int sata_link_hardreset(struct ata_link * link,
10                               const unsigned long * timing,
11                               unsigned long deadline, bool * online,
12                               int (*check_ready) (struct ata_link *));
13

ARGUMENTS

15       link
16           link to reset
17
18       timing
19           timing parameters { interval, duratinon, timeout } in msec
20
21       deadline
22           deadline jiffies for the operation
23
24       online
25           optional out parameter indicating link onlineness
26
27       check_ready
28           optional callback to check link readiness
29

DESCRIPTION

31       SATA phy-reset link using DET bits of SControl register. After
32       hardreset, link readiness is waited upon using ata_wait_ready if
33       check_ready is specified. LLDs are allowed to not specify check_ready
34       and wait itself after this function returns. Device classification is
35       LLD's responsibility.
36
37       *online is set to one iff reset succeeded and link is online after
38       reset.
39

LOCKING

41       Kernel thread context (may sleep)
42

RETURNS

44       0 on success, -errno otherwise.
45

AUTHOR

47       Jeff Garzik
48           Author.
49
51Kernel Hackers Manual 3.10         June 2019            SATA_LINK_HARDRESET(9)
Impressum