[PATCH] libata: skip link debounce on resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Zhang Ning <ning.a.zhang@xxxxxxxxx>

when link has flag: ATA_LFLAG_NO_DB_DELAY, skip link debounce.

Change-Id: Ibcac689d7be97c1e139f87d416498a269ff2abf4
Signed-off-by: Zhang Ning <ning.a.zhang@xxxxxxxxx>
---
 drivers/ata/libata-core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index adf28788cab5..1fcb3190491e 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3838,6 +3838,8 @@ int sata_link_debounce(struct ata_link *link, const unsigned long *params,
 
 		/* DET stable? */
 		if (cur == last) {
+			if (link->flags & ATA_LFLAG_NO_DB_DELAY)
+				return 0;
 			if (cur == 1 && time_before(jiffies, deadline))
 				continue;
 			if (time_after(jiffies,
-- 
2.20.1




[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux