Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1369078

[PATCH v3 1/3] libahci: save port map for forced port map

From Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v3 1/3] libahci: save port map for forced port map
Date 2016-04-01 10:00 +0200
Message-ID <rj29Q-1bH-27@gated-at.bofh.it> (permalink)
References <rj29Q-1bH-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
---
 drivers/ata/libahci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index 3982054..a5d7c1c 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -507,6 +507,7 @@ void ahci_save_initial_config(struct device *dev, struct ahci_host_priv *hpriv)
 		dev_info(dev, "forcing port_map 0x%x -> 0x%x\n",
 			 port_map, hpriv->force_port_map);
 		port_map = hpriv->force_port_map;
+		hpriv->saved_port_map = port_map;
 	}
 
 	if (hpriv->mask_port_map) {
-- 
2.5.0

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/3] ahci: add ports-implemented dt bindings Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-04-01 10:00 +0200
  [PATCH v3 1/3] libahci: save port map for forced port map Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-04-01 10:00 +0200
  [PATCH v3 2/3] ata: ahci-platform: Add ports-implemented DT bindings. Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-04-01 10:00 +0200
  [PATCH v3 3/3] ARM: dts: apq8064: add ahci ports-implemented mask Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-04-01 10:00 +0200
  Re: [PATCH v3 0/3] ahci: add ports-implemented dt bindings Tejun Heo <tj@kernel.org> - 2016-04-01 16:50 +0200

csiph-web