libata: skip debounce delay on link resume
authorDanesh Petigara <dpetigara@broadcom.com>
Fri, 8 Jan 2016 00:03:33 +0000 (16:03 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 8 Jan 2016 16:50:14 +0000 (11:50 -0500)
commite39b2bb3b72b999a04e8d295882be3255aca5ade
tree03734de006c786e574b97ab5ed6178078ae884c0
parent6ca92dd7aff899777a3081c5948409f4bdef7d38
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>
drivers/ata/ahci_brcmstb.c
drivers/ata/libata-core.c
include/linux/libata.h