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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Dec 2015 02:25:59 +0000 (02:25 +0000)
commit01cbe992f8da9115b1094a1b5055f7d1cbadff71
tree2c18987dab0d742e7e947dd4ad7be5fbc475550b
parentad404016553666c23829234b69db4253de46983b
AHCI: Fix softreset failed issue of Port Multiplier

commit 023113d24ef9e1d2b44cb2446872b17e2b01d8b1 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/ata/libahci.c