1. NAME

ata_std_prereset - prepare for reset

2. SYNOPSIS

int ata_std_prereset(struct ata_link *  link , unsigned long  deadline );

3. ARGUMENTS

link
    ATA link to be reset

deadline
    deadline jiffies for the operation

4. DESCRIPTION

link is about to be reset. Initialize it. Failure from prereset makes libata abort whole reset sequence and give up that port, so prereset should be best-effort. It does its best to prepare for reset sequence but if things go wrong, it should just whine, not fail.

5. LOCKING

Kernel thread context (may sleep)

6. RETURNS

0 on success, -errno otherwise.

7. AUTHOR

Jeff Garzik
    Author.

8. COPYRIGHT