Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4592776pxj; Wed, 12 May 2021 08:52:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz54TFQYWgkMr/hY0BBMeT+FGsnSMcxW3doR4iWOk7aOp7coBXZ8rBuctq8xbXe+jxEtdd8 X-Received: by 2002:a2e:9251:: with SMTP id v17mr29886141ljg.507.1620834723744; Wed, 12 May 2021 08:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620834723; cv=none; d=google.com; s=arc-20160816; b=x9oakBYvs8ablKUJG+Ry9CLAULh3yL4FHKorU2eANXJegi2IwzE9vsbfkk2PsK0hBc iJZrej+TZScXzT+sjw/A5CfuhZuwnNXHpXHe+/fOlw6VMmHK2L332YzqZdE1wMUnVT0Q 0l28fizi0dD/BFoidLNmpqHSwnLty7naQHkamNrOXnDt8L9TEyD1Uydthra5KbmwKYfN /P9SnZkFJ9U6tlYqmtYGwF39ecJ1N1wXHGz70nazry5AjwXVt9nSNr84ZGRH49dE3HDg Xwp0obd0ZtZEHWC2jzqFtC1rjFgYwFIgL2QBLo7O3Q5axmCfA50i8f94T5AA1QK+5eyl eHVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=j7s+F0JqzKRzNUQzwVczbxdUlxEgudhRb7CFBNz7gSU=; b=W/9gp45bbaQZqT8n5wlega6TKYBBU5dc3Jvq9P8I5PQmPGBFYrQL/EKMSARosjA2Or baKxc/Gh5jzBrUfBSIRfIfeyCqiX7DZKrcfYuljQ8uVFUiamcGe3i/u/C8SnqUoCZs9i oiuoFhwfNMWFs6a3vkEwm4dhDf+tXMQjmQnKRhReFBxZQHOES/6YZci4AmTi+ouQ7SqY uC7HdXAMQI2Oi1yyVH7L1zf0a0h88hWRTdcwzFQyChuCSaJCPxwuwyprvx/UnPjofAyS ueRVHHsQyZWtEwb0g8TnyJ5EQj5cTk+NFhU0OsPhMbHL3XSz9Uet6XNO5eW4oOQc8Oa3 WEFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tglWjlL8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si316987lfl.235.2021.05.12.08.51.32; Wed, 12 May 2021 08:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tglWjlL8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234291AbhELPvX (ORCPT + 99 others); Wed, 12 May 2021 11:51:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:40848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234836AbhELPZu (ORCPT ); Wed, 12 May 2021 11:25:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B0E461584; Wed, 12 May 2021 15:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832244; bh=zI7Y3eoRvSmUAbw0F9EQYAe4yxfzLU+kte5ZhBkqarg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tglWjlL8DU/l/EhuFqt3DlJYS+nJZVSfmzWWOtZkV+mcYz2fHI8rytaUgz+bHB3yo rvz5UPO7YVVvflMusr5ig517fXIA9hbsjLO8rHEnOONZ2NZeJSjq5GSF4bXcU0hihO HiOZzpi0i4p3XHtijTSqXLa5zpqTxbpYX+We/NUo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, gexueyuan , Krzysztof Kozlowski , Sasha Levin Subject: [PATCH 5.10 200/530] memory: pl353: fix mask of ECC page_size config register Date: Wed, 12 May 2021 16:45:10 +0200 Message-Id: <20210512144826.415159286@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: gexueyuan [ Upstream commit 25dcca7fedcd4e31cb368ad846bfd738c0c6307c ] The mask for page size of ECC Configuration Register should be 0x3, according to the datasheet of PL353 smc. Fixes: fee10bd22678 ("memory: pl353: Add driver for arm pl353 static memory controller") Signed-off-by: gexueyuan Link: https://lore.kernel.org/r/20210331031056.5326-1-gexueyuan@gmail.com Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin --- drivers/memory/pl353-smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/pl353-smc.c b/drivers/memory/pl353-smc.c index 73bd3023202f..b42804b1801e 100644 --- a/drivers/memory/pl353-smc.c +++ b/drivers/memory/pl353-smc.c @@ -63,7 +63,7 @@ /* ECC memory config register specific constants */ #define PL353_SMC_ECC_MEMCFG_MODE_MASK 0xC #define PL353_SMC_ECC_MEMCFG_MODE_SHIFT 2 -#define PL353_SMC_ECC_MEMCFG_PGSIZE_MASK 0xC +#define PL353_SMC_ECC_MEMCFG_PGSIZE_MASK 0x3 #define PL353_SMC_DC_UPT_NAND_REGS ((4 << 23) | /* CS: NAND chip */ \ (2 << 21)) /* UpdateRegs operation */ -- 2.30.2