From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Haojian Zhuang 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: [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: , X-List-Received-Date: Fri, 06 Jan 2017 06:52:33 -0000 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(-) 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; -- 2.7.4