From patchwork Fri Apr 1 07:52:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 64833 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp589085lbc; Fri, 1 Apr 2016 00:53:55 -0700 (PDT) X-Received: by 10.98.42.150 with SMTP id q144mr28748923pfq.73.1459497235265; Fri, 01 Apr 2016 00:53:55 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d27si3768036pfj.14.2016.04.01.00.53.54; Fri, 01 Apr 2016 00:53:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758144AbcDAHxv (ORCPT + 7 others); Fri, 1 Apr 2016 03:53:51 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:33797 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758159AbcDAHxI (ORCPT ); Fri, 1 Apr 2016 03:53:08 -0400 Received: by mail-wm0-f42.google.com with SMTP id p65so14534075wmp.1 for ; Fri, 01 Apr 2016 00:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HD1iK8WZ4q94Z8p72sTtCkugbTmHLsSZc6Jf1P3stE0=; b=OH3Inwsa4bX6yuoAcWvIVFAt0QTdq/A1DseZVYe5r8ex/t5K2c74LgYA7Sew5oNAj3 4X0eAKFpSAD4MAFpzKzUv0JgkYmlZvgHGtqlmO1nOWk/fRf4lzGu2SB0/aQDqlKwOqbd R2D4VuC6DBQozEOdQEENTvKTeOeSOeoxCllq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HD1iK8WZ4q94Z8p72sTtCkugbTmHLsSZc6Jf1P3stE0=; b=E0iSrzmqm2R0crLGyfTzpuaFZEZJPxCHfgxsUlCt7rhRTOMT1AA8/dA+f+mdYfw1SG B1e2yYREr3QvgZp4eACqNeLuSS2YWd6ON6GmjWCgV9ENUSbSJDHmK6CkphVA1+TPAMvF INzgZ9m1elFRxD39F0Fo7GaLRdw50Ei2Db/QJRbf/jC3vMPrnPs5ACdWyxF3kyoGfUGr GRbdB5D0i9DLJb2rObnEztm6cUl9BaUrhvhs+VW2Kj8p6lWpIj/5tIp5oXdtAKZCYdsQ Li1R8zijQvtJOgl8NjJJymzNoJuIsggKfYbS/1zPBXkudk6uFE0XmjQw1ocWKQ8skw8w v9HQ== X-Gm-Message-State: AD7BkJKgSZmRtEKC3YdpzkgGlmCvUQOMjzo6bxPg9mxPdl2fY1VNlIZ2TwVi70CX1Yj8ADJF X-Received: by 10.28.87.139 with SMTP id l133mr2118286wmb.38.1459497186749; Fri, 01 Apr 2016 00:53:06 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id x203sm13169192wmg.23.2016.04.01.00.53.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Apr 2016 00:53:05 -0700 (PDT) From: Srinivas Kandagatla To: Tejun Heo , linux-ide@vger.kernel.org Cc: Rob Herring , Andy Gross , Hans de Goede , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jmaggard10@gmail.com, Srinivas Kandagatla Subject: [PATCH v3 1/3] libahci: save port map for forced port map Date: Fri, 1 Apr 2016 08:52:56 +0100 Message-Id: <1459497178-31090-2-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459497178-31090-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1459497178-31090-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 Acked-by: Tejun Heo Reviewed-by: Andy Gross --- drivers/ata/libahci.c | 1 + 1 file changed, 1 insertion(+) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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) {