From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com [IPv6:2607:f8b0:400e:c00::22c]) (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 3158081CCC for ; Mon, 16 Jan 2017 04:23:09 -0800 (PST) Received: by mail-pf0-x22c.google.com with SMTP id f144so53414077pfa.2 for ; Mon, 16 Jan 2017 04:23:09 -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=WH6lctLaFW7vK5HBDR5+K16tou6mQWqPD70NQK2wXnw=; b=JD64c9T//CX0dgmI/iMP8updfJUcjZQJ8+UocoQWHkZlgDx/Vk3cZ12ouO4wryp5F4 CDplDVB1Y0FEe0ihAJC8CtPbHiYp/DHrh26fK6IFN3BPvq/+X8Fbh8HhZ2MHsndeZyY4 zGb2HmEfxbnhssQpm/vjMhbKCH3TNGbzKYh/o= 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=WH6lctLaFW7vK5HBDR5+K16tou6mQWqPD70NQK2wXnw=; b=NrnfvVQ2uuORh5h0hzy1scSJ5r9vVghhebIzWWn45KE8kRwCL5hTvjwElwiMWR7RTV 8H+X9Ku1uQYd7rf7imu8M8u3oTeNqZCPfNoR4zXOsrSmalREM7Pd5YUwmOHs7lSp2FCY BAek3DrDdLIA5wamBr0WqIvp15+sQjltUhFUVkB8uqMR7/VdUjjsHsqP1brIeMrfIsSd cRVbWojalZYLKYdXEgANVKwIDuzNaLiRIgjq87kkMqwzEy0ePj6zzyb0BQODiIj7HFFh 16vOJkLtW2wzb/llXjt+0OIdLha+sgfXCH2gFpO11z4p2VoToLktDgzwWp8NjVtTQaO4 4lEg== X-Gm-Message-State: AIkVDXJjTcj4RlV0bMTc4MRLXiCqgOc4rmbi0OySF7jx0iybDL1LyX8uEh0Gr8Jbo7TD4Ats X-Received: by 10.84.232.78 with SMTP id f14mr50641608pln.27.1484569389366; Mon, 16 Jan 2017 04:23:09 -0800 (PST) Received: from localhost.localdomain ([45.56.159.104]) by smtp.gmail.com with ESMTPSA id v186sm10361286pgv.44.2017.01.16.04.23.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Jan 2017 04:23:08 -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: Mon, 16 Jan 2017 20:22:54 +0800 Message-Id: <1484569378-16126-2-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484569378-16126-1-git-send-email-haojian.zhuang@linaro.org> References: <1484569378-16126-1-git-send-email-haojian.zhuang@linaro.org> Subject: [PATCH v2 1/5] MdeModuelPkg/UfsPassThruDxe: 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: Mon, 16 Jan 2017 12:23:09 -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 Reviewed-by: Feng Tian --- 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 3bd6dad..2b95f80 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