AHCI: Fix softreset failed issue of Port Multiplier
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Thu, 26 Nov 2015 12:27:02 +0000 (20:27 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 30 Nov 2015 15:01:29 +0000 (10:01 -0500)
commit023113d24ef9e1d2b44cb2446872b17e2b01d8b1
tree581133578a2c285e9f58e07c3c6bc8b2f278cf66
parent4f1dd973acffeb67142d39f3bfbc4dd0569f2da6
AHCI: Fix softreset failed issue of Port Multiplier

Current code doesn't update port value of Port Multiplier(PM) when
sending FIS of softreset to device, command will fail if FBS is
enabled.

There are two ways to fix the issue: the first is to disable FBS
before sending softreset command to PM device and the second is
to update port value of PM when sending command.

For the first way, i can't find any related rule in AHCI Spec. The
second way can avoid disabling FBS and has better performance.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
drivers/ata/libahci.c