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: 8721571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 969C19F38C for ; Fri, 1 Apr 2016 07:55:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BA2B6203A4 for ; Fri, 1 Apr 2016 07:55:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3F692039D for ; Fri, 1 Apr 2016 07:55:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1altth-0005Sc-E4; Fri, 01 Apr 2016 07:53:37 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1alttZ-0005IN-2q for linux-arm-kernel@lists.infradead.org; Fri, 01 Apr 2016 07:53:30 +0000 Received: by mail-wm0-x232.google.com with SMTP id p65so14534034wmp.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=X03PIJiixA26r5ElKIbKnLfiMFXLdxV2i1qKhhPqRbN3IAFpJh/4+BimysOMt4sw9J WJx22Ebv6LV21IImbLjSR1GbsiwVOfzsLGOUKikznU+iXDUMET1cVxb5CL3bzsUMq44f nPVnPmz5MpqUXatoLeePQx8VJXbRLldbNjcLuLkt/+KhVQLT8keoV+6sBKCifbIVcWbF DoMZpI6npAU+dziH3RxvEsMEUeFtzBnwfLbvT4BdCTDQsnPkJEeMj0racTVaS0k5zLSX TbB39ZhiVRIAVDgRDHihdrHAJ6Qf9su8moWdkyK7TQwPSDCh+Iu5/1jb1PXB1lBr8z0L dxGg== X-Gm-Message-State: AD7BkJKDRB8Yg7fst+hRhlM7rKJL4zMlwtsJ7qvjduesDRc2OdOpgCYJKbgduQuL07adp6/t 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160401_005329_389546_0E4BB19D X-CRM114-Status: GOOD ( 12.01 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, jmaggard10@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Hans de Goede , Rob Herring , Srinivas Kandagatla , Andy Gross , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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) {