libahci: save port map for forced port map
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 1 Apr 2016 07:52:56 +0000 (08:52 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 1 Apr 2016 14:30:30 +0000 (10:30 -0400)
commit2fd0f46cb1b82587c7ae4a616d69057fb9bd0af7
tree0720be8b1ad635bae27cc020a5254a1e24211397
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
libahci: save port map for forced port map

In usecases where force_port_map is used saved_port_map is never set,
resulting in not programming the PORTS_IMPL register as part of initial
config. This patch fixes this by setting it to port_map even in case
where force_port_map is used, making it more inline with other parts of
the code.

Fixes: 566d1827df2e ("libata: disable forced PORTS_IMPL for >= AHCI 1.3")
Cc: stable@vger.kernel.org # v4.5+
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libahci.c