]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:26 +0000 (13:42 -0400)
commit748e016cf59aef21d02d1ba7ff2a337d616c83c7
tree7741ad5ea39f4f603f86a38756ecc3dab67631ab
parentf62eb4c05075de5353c7bb1d1ea6c795a24abe51
libata: Ignore spurious PHY event on LPM policy change

[ Upstream commit 09c5b4803a80a5451d950d6a539d2eb311dc0fb1 ]

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>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
include/linux/libata.h