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: 8715221 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 29A9E9F36E for ; Thu, 31 Mar 2016 17:37:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B7DF202BE for ; Thu, 31 Mar 2016 17:37:37 +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 1CB32202A1 for ; Thu, 31 Mar 2016 17:37:36 +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 1algVo-0003OC-6w; Thu, 31 Mar 2016 17:36:04 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1algS7-0007Dp-SP for linux-arm-kernel@lists.infradead.org; Thu, 31 Mar 2016 17:32:22 +0000 Received: by mail-wm0-x22c.google.com with SMTP id 127so142136442wmu.1 for ; Thu, 31 Mar 2016 10:31:55 -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=EK3ljbHp6lCi0iEBHAU/lIeuQAHO6mjx1DRAeXTYHPHNgkthHzgCtArhgmjVnDU1Y8 Dr1CH7elTYrlk/K643JclW2Vz/4oi8tD/JlU/PpC0HYSV3pEwXXP7UlY2WkwLY4zHnfJ R12maarucFYaBSjXdiRjx8+JNekjFCFSHckA9hsvjSNc8CUpzWqV+3/l+EGshHH+6DMX 4vC8Dw1oO/PlryzKzTCAdgQU1nhiJ61ZngjX9k6Y0I2BtUC+fjd1b/kAfL8jI+Xzvw5o Bp8EUieb2Q+/oZHGlRBZpEC4bw7xQXcRlvS9jRO7QN+BlqX62NY+xvAfAKBwFFKL9Jio nY0Q== X-Gm-Message-State: AD7BkJJbGqJUEOYdiPPZatLn57SFpc3RzHWXeGjPa/4mwSB+4ZQHMoo9iwgGbl5smAKJCprE 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160331_103216_591433_6EC09D81 X-CRM114-Status: GOOD ( 11.88 ) 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 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) {