aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorDanesh Petigara <dpetigara@broadcom.com>2016-01-07 16:03:33 -0800
committerTejun Heo <tj@kernel.org>2016-01-08 11:50:14 -0500
commite39b2bb3b72b999a04e8d295882be3255aca5ade (patch)
tree03734de006c786e574b97ab5ed6178078ae884c0 /include/linux/libata.h
parentata: ahci_brcmstb: disable DIPM support (diff)
downloadlinux-dev-e39b2bb3b72b999a04e8d295882be3255aca5ade.tar.xz
linux-dev-e39b2bb3b72b999a04e8d295882be3255aca5ade.zip
libata: skip debounce delay on link resume
The link resume logic uses a 200msec delay while debouncing the SControl register. The rationale behind that delay is to accommodate some PHYs that behave badly if their SStatus/ SControl registers are pounded immediately on resume. The Broadcom STB SATA PHY does not seem to have this issue. This patch introduces a new link flag that allows platforms to skip the debounce delay if it isn't needed. Signed-off-by: Danesh Petigara <dpetigara@broadcom.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 83577f8fd15b..088ed924fa66 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -205,6 +205,7 @@ enum {
ATA_LFLAG_NO_LPM = (1 << 8), /* disable LPM on this link */
ATA_LFLAG_RST_ONCE = (1 << 9), /* limit recovery to one reset */
ATA_LFLAG_CHANGED = (1 << 10), /* LPM state changed on this link */
+ ATA_LFLAG_NO_DB_DELAY = (1 << 11), /* no debounce delay on link resume */
/* struct ata_port flags */
ATA_FLAG_SLAVE_POSS = (1 << 0), /* host supports slave dev */