]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
libata: Ignore spurious PHY event on LPM policy change
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Sat, 25 Apr 2015 17:52:37 +0000 (19:52 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 3 Jun 2015 09:33:12 +0000 (11:33 +0200)
commit59f43abf797e35cd4d6d4ea9768250449d505b40
treeb654f084d75a27f67b22335bc56e982f7427fba7
parent4037866e8eb01c45631a093524c37e6b913bab97
libata: Ignore spurious PHY event on LPM policy change

commit 09c5b4803a80a5451d950d6a539d2eb311dc0fb1 upstream.

When the LPM policy is set to ATA_LPM_MAX_POWER, the device might
generate a spurious PHY event that cuases errors on the link.
Ignore this event if it occured within 10s after the policy change.

The timeout was chosen observing that on a Dell XPS13 9333 these
spurious events can occur up to roughly 6s after the policy change.

Link: http://lkml.kernel.org/g/3352987.ugV1Ipy7Z5@xps13
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
include/linux/libata.h