diff options
Diffstat (limited to 'include/linux/libata.h')
| -rw-r--r-- | include/linux/libata.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 69fc1b8a9215..7906d750aa77 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
| @@ -296,18 +296,8 @@ enum { | |||
| 296 | 296 | ||
| 297 | /* how hard are we gonna try to probe/recover devices */ | 297 | /* how hard are we gonna try to probe/recover devices */ |
| 298 | ATA_PROBE_MAX_TRIES = 3, | 298 | ATA_PROBE_MAX_TRIES = 3, |
| 299 | ATA_EH_RESET_TRIES = 3, | ||
| 300 | ATA_EH_DEV_TRIES = 3, | 299 | ATA_EH_DEV_TRIES = 3, |
| 301 | 300 | ||
| 302 | /* Drive spinup time (time from power-on to the first D2H FIS) | ||
| 303 | * in msecs - 8s currently. Failing to get ready in this time | ||
| 304 | * isn't critical. It will result in reset failure for | ||
| 305 | * controllers which can't wait for the first D2H FIS. libata | ||
| 306 | * will retry, so it just has to be long enough to spin up | ||
| 307 | * most devices. | ||
| 308 | */ | ||
| 309 | ATA_SPINUP_WAIT = 8000, | ||
| 310 | |||
| 311 | /* Horkage types. May be set by libata or controller on drives | 301 | /* Horkage types. May be set by libata or controller on drives |
| 312 | (some horkage may be drive/controller pair dependant */ | 302 | (some horkage may be drive/controller pair dependant */ |
| 313 | 303 | ||
| @@ -495,7 +485,6 @@ struct ata_eh_info { | |||
| 495 | unsigned int dev_action[ATA_MAX_DEVICES]; /* dev EH action */ | 485 | unsigned int dev_action[ATA_MAX_DEVICES]; /* dev EH action */ |
| 496 | unsigned int flags; /* ATA_EHI_* flags */ | 486 | unsigned int flags; /* ATA_EHI_* flags */ |
| 497 | 487 | ||
| 498 | unsigned long hotplug_timestamp; | ||
| 499 | unsigned int probe_mask; | 488 | unsigned int probe_mask; |
| 500 | 489 | ||
| 501 | char desc[ATA_EH_DESC_LEN]; | 490 | char desc[ATA_EH_DESC_LEN]; |
| @@ -925,12 +914,7 @@ extern void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
| 925 | 914 | ||
| 926 | static inline void __ata_ehi_hotplugged(struct ata_eh_info *ehi) | 915 | static inline void __ata_ehi_hotplugged(struct ata_eh_info *ehi) |
| 927 | { | 916 | { |
| 928 | if (ehi->flags & ATA_EHI_HOTPLUGGED) | ||
| 929 | return; | ||
| 930 | |||
| 931 | ehi->flags |= ATA_EHI_HOTPLUGGED | ATA_EHI_RESUME_LINK; | 917 | ehi->flags |= ATA_EHI_HOTPLUGGED | ATA_EHI_RESUME_LINK; |
| 932 | ehi->hotplug_timestamp = jiffies; | ||
| 933 | |||
| 934 | ehi->action |= ATA_EH_SOFTRESET; | 918 | ehi->action |= ATA_EH_SOFTRESET; |
| 935 | ehi->probe_mask |= (1 << ATA_MAX_DEVICES) - 1; | 919 | ehi->probe_mask |= (1 << ATA_MAX_DEVICES) - 1; |
| 936 | } | 920 | } |
