From patchwork Thu Mar 31 17:31:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 64805 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp285515lbc; Thu, 31 Mar 2016 10:32:04 -0700 (PDT) X-Received: by 10.98.33.74 with SMTP id h71mr23505691pfh.157.1459445523674; Thu, 31 Mar 2016 10:32:03 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tj5si15369788pab.33.2016.03.31.10.32.03; Thu, 31 Mar 2016 10:32:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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 linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1757964AbcCaRb5 (ORCPT + 8 others); Thu, 31 Mar 2016 13:31:57 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:35313 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757525AbcCaRbz (ORCPT ); Thu, 31 Mar 2016 13:31:55 -0400 Received: by mail-wm0-f41.google.com with SMTP id 191so134285150wmq.0 for ; Thu, 31 Mar 2016 10:31:54 -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=gwaE2nUCfxychnyPgH0i8w7M4NtFdJpTTtWnu9UbveM=; b=WeST2AgShsrBqMETwa7kGaddosI3tUZAT8bEwIIZ5+yLHSExxwzH8hUq1wZBRVPNf2 L/emSn8xwJGa3sFpSBkYIXfdsvDWCWdB5Wty668CLb9x+3Vh8t+s2xsHaaqtYJZvngjQ dxDBf2TlhsDPPVT9wL5i3hbu96J/argHxXBUE= 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=gwaE2nUCfxychnyPgH0i8w7M4NtFdJpTTtWnu9UbveM=; b=CrNXkiJMnGEvxRjXZf0qkWVNb/Ir/S4InFMw9EGB/6VACpu0Y1cmdVUG+ILqaXnFls AOzIu1yFalBLSUVCVdOIOzSiMUwgFH6fgA57pqP8ZetKcnNQ0cPDrSHGMoXrALnbQspg EOJ3BWgsb3h9L0jr23cp4fEXwP8kKPj/mjqck8FHf6SSknIoFVFwhWzLyGXsxI6I01TU yzZ3CPEUu4UnsOwquUyvSRebK8ftQQYHYEF0yPLAoW7GaEVIKu4IvPYxV6IwQDf05TqK r19a5A29Nx8JPf45VjRWfvOsDc6TKOsvuy7hBPlunf4e7ADWjyu7INCN/KcFnH3NrtAM 8ERw== X-Gm-Message-State: AD7BkJK2OyS8nSByc+zrySTBKJyfhfcvMmG5MfO2VUydoI+bf0Y2tQcsGp9jXY6lnU2XErS+ X-Received: by 10.28.6.139 with SMTP id 133mr372468wmg.84.1459445513908; Thu, 31 Mar 2016 10:31:53 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id gb9sm10024236wjb.26.2016.03.31.10.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Mar 2016 10:31:52 -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 v2 1/3] libahci: save port map for forced port map Date: Thu, 31 Mar 2016 18:31:38 +0100 Message-Id: <1459445500-9071-2-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459445500-9071-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1459445500-9071-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 --- drivers/ata/libahci.c | 1 + 1 file changed, 1 insertion(+) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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) {