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: 64599 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2003842lbc; Tue, 29 Mar 2016 06:12:39 -0700 (PDT) X-Received: by 10.98.14.68 with SMTP id w65mr3337702pfi.144.1459257158852; Tue, 29 Mar 2016 06:12:38 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 20si6383196pfp.114.2016.03.29.06.12.38; Tue, 29 Mar 2016 06:12:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756540AbcC2NMh (ORCPT + 29 others); Tue, 29 Mar 2016 09:12:37 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:33677 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752746AbcC2NLa (ORCPT ); Tue, 29 Mar 2016 09:11:30 -0400 Received: by mail-wm0-f42.google.com with SMTP id r72so56342780wmg.0 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=Wwyv0VlHIBpgA84eL2wLh8+Ai7xHfY+v90FfEXiquvpr32grXjdfffc4pT/hCWnUZ9 6wfS9cDWQflx1oyRHAgOvuMJWoesVdl+Cy+xh7p2JAyDzEwSg5KYd/nSmMyMQENg1I5o +WBqQJ5sVPj4AMl02DOo4LMk3Q37VaAT0AetBpL11lLw4hMY96zRQZQtMmGHzn6+Oliz YzlyO8PlkZv7WkcsJZIQZ+gLmXf6+mMcdVvbB2ykLKjpXAegTFoYG4/+9IKhxvZEkE/o 3T8sh+ofCqI3nzIxfr8oQG8OZN01FkamWa6Agpr31KDV9zfwCTGyw5owLZ0FEKftYOjo ygvA== X-Gm-Message-State: AD7BkJIYjF36IhVDPUvHrsc17yhYW7CcXdb2e37oZTJyQDdHR7buCc/V5t2FHeunJEw73z4x 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 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: [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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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(+) -- 2.5.0 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) {