From patchwork Tue Mar 29 13:11:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 8686751 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B8A53C0553 for ; Tue, 29 Mar 2016 13:14:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD1D42026F for ; Tue, 29 Mar 2016 13:14:02 +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 BCCF720263 for ; Tue, 29 Mar 2016 13:14:01 +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 1aktRV-0004Nc-9S; Tue, 29 Mar 2016 13:12:21 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aktR1-00043j-Bs for linux-arm-kernel@lists.infradead.org; Tue, 29 Mar 2016 13:11:52 +0000 Received: by mail-wm0-x236.google.com with SMTP id 20so25612744wmh.1 for ; Tue, 29 Mar 2016 06:11:30 -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=IlhVVLUPiRx8Tl3KjakThcctMe/ub9MAQe6tL1mHRg0=; b=JbgHUgY+zC7pq4DMJAwIO/SFmVWGD9MXvLfrjCME2SjvF+0M3opLlTc5WLXaTgZUL1 EihLK6MpntnNpnmQvdeMkPxWypTo/g0KIDWBFRi2vGmSZNwtA5RFacOiDOaqjLP0UWgu rTRNYnwPZcITlgrKUvM6dzHMs52Uf7Hn/LicU= 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=IlhVVLUPiRx8Tl3KjakThcctMe/ub9MAQe6tL1mHRg0=; b=hNxp4bHrDYdaonB39CMrs0EfsFTD4c+q9xT2wwVMjFyfv3QXOkwEqq0PyrWr291elk vbul+QN/fpKoQgam+U2KnfUIJRW0aqbAl31OP2/wFISaFh+57r7lJni5bV0BGFfYPzOg U23f7KzPLKUXg/8kTA6pa5aI76Mmxd6e6AohmnjZkxX/6YPmFscM2rz0bPNdLyhaqcs6 J27so20hYBsVQu+oMznEvcDhVoEH3oSi63t74YTt0e1hVLAT6FETu5SqgLQOTATPKUnV T3NIWy/DW3Yvm5o3Ce5u9rMLvdhy+Saikl3v6stvuz2Hpbev3LaX1UXOFXCUXBqbxuU2 lEIA== X-Gm-Message-State: AD7BkJKCZeYvSMS4socawnQfP+h5WX8vGtUac16TwAuw63leemJl/76HXrbWggrnJHgicfbn X-Received: by 10.194.204.68 with SMTP id kw4mr2722077wjc.75.1459257089389; Tue, 29 Mar 2016 06:11:29 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id m141sm14708795wma.3.2016.03.29.06.11.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Mar 2016 06:11:28 -0700 (PDT) From: Srinivas Kandagatla To: Tejun Heo , linux-ide@vger.kernel.org Subject: [RFC PATCH 1/3] libahci: save port map for forced port map Date: Tue, 29 Mar 2016 14:11:13 +0100 Message-Id: <1459257075-21393-2-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459257075-21393-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1459257075-21393-1-git-send-email-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160329_061151_679309_F0042B87 X-CRM114-Status: GOOD ( 11.96 ) 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=ham 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 intial 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 --- 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) {