From patchwork Fri Jan 6 06:52:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 90113 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp9321465qgi; Thu, 5 Jan 2017 22:52:34 -0800 (PST) X-Received: by 10.99.159.26 with SMTP id g26mr139208468pge.62.1483685554481; Thu, 05 Jan 2017 22:52:34 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id e72si78529715pfd.125.2017.01.05.22.52.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jan 2017 22:52:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; 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 edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 18C1F819E2; Thu, 5 Jan 2017 22:52:34 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pg0-x22d.google.com (mail-pg0-x22d.google.com [IPv6:2607:f8b0:400e:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 052A4818F4 for ; Thu, 5 Jan 2017 22:52:33 -0800 (PST) Received: by mail-pg0-x22d.google.com with SMTP id 14so4230681pgg.1 for ; Thu, 05 Jan 2017 22:52:33 -0800 (PST) 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=RPWsYqccNFciaSf8gnTJZAwVAlf74+yJdV8wxd617z0=; b=CYFExu4PTRZCmMJfuoNCLjS9RPrBTc0nSkN1yvUIWi9rW/KvNJu9wsfgu6F7kxLppk TSYK8mEI1hEDLD7fK+uuI0SnFJQIxZUQdpXxygh5wjGPYxic0brdWtVB0xZbmJWabTur 4xv6PEqgcCdD7X/pf8vLQPrYuVKjm3CmCH0DA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RPWsYqccNFciaSf8gnTJZAwVAlf74+yJdV8wxd617z0=; b=SnJZz8OgVlUqYd3sNnF36uGdG92IdxXt0BR67h5g4yHWRWkwr40I/au2JXoj4nS7cL 7irmXEpxGfwSqE6uRwHMIhZMi+v6Q8uq/7xAjHm668RpZ1rS4MrXzQ+yj1zAg6jlt3zT 6++vCKKlEYrfjRt+d7v2C2gGPnbtkEao25dZlToCElz07Ss7RIukCsd9dDzKbs7olUAN a2qeFfHgZJrUo05kIDVZk7ZNOVHbzZ103/HIE9CY69k71ZRTpXDF1EkC68+nCHq34uvg q/8QltBd1OGq8st0RsjmHQKEe/han0Oecf+UJZrrus+sZrqBy2m1i9Ff+/a1ZQAjOgUe pIHA== X-Gm-Message-State: AIkVDXKHppKv6yNPuI2D5qwY6qRwcHpQ7iMhEOYwj3rum2LpZNRzBZFZ7IrWPpuZWz2YZZf8 X-Received: by 10.84.192.1 with SMTP id b1mr164052591pld.113.1483685552682; Thu, 05 Jan 2017 22:52:32 -0800 (PST) Received: from localhost.localdomain ([45.56.159.83]) by smtp.gmail.com with ESMTPSA id p13sm159096976pgf.47.2017.01.05.22.52.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Jan 2017 22:52:32 -0800 (PST) From: Haojian Zhuang To: feng.tian@intel.com, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, edk2-devel@lists.01.org Date: Fri, 6 Jan 2017 14:52:11 +0800 Message-Id: <1483685538-11058-3-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483685538-11058-1-git-send-email-haojian.zhuang@linaro.org> References: <1483685538-11058-1-git-send-email-haojian.zhuang@linaro.org> Subject: [edk2] [PATCH 2/9] Ufs: fix to identify 32 bits address mode X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Haojian Zhuang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" When UFS_HC_CAP_64ADDR bit is set, it means 64-bit address, not 32-bit address. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Haojian Zhuang --- MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c index 9b77a89..f160d6a 100644 --- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c +++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c @@ -1749,9 +1749,9 @@ UfsAllocateAlignCommonBuffer ( EDKII_UFS_HOST_CONTROLLER_PROTOCOL *UfsHc; if ((Private->Capabilities & UFS_HC_CAP_64ADDR) == UFS_HC_CAP_64ADDR) { - Is32BitAddr = TRUE; - } else { Is32BitAddr = FALSE; + } else { + Is32BitAddr = TRUE; } UfsHc = Private->UfsHostController;