From patchwork Mon Jan 16 12:22:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 91564 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1395370qgi; Mon, 16 Jan 2017 04:23:10 -0800 (PST) X-Received: by 10.84.192.107 with SMTP id b98mr37997731pld.160.1484569390870; Mon, 16 Jan 2017 04:23:10 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id i5si21409778pgh.191.2017.01.16.04.23.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 04:23:10 -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 sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 06C0E81D9B; Mon, 16 Jan 2017 04:23:10 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 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: [edk2] [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: , 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 Reviewed-by: Feng Tian --- 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 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;