Message ID | 20240210214551.441610-1-avkrasnov@salutedevices.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-60568-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1668929dyd; Sat, 10 Feb 2024 13:59:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUVBE38hp3ZZgBDPhSowkhlgs4ZWXy7dhJBm9BJkYqLJ4ulSDv305ckLXlX8xKSGddc4lyvFa+j+2+iyQGahFVoYQ7N5w== X-Google-Smtp-Source: AGHT+IGPSJxCBIc2CeCVTNTaAegHVoS73goy/c2VYkrdvkkg2AuAxUvinBpK41ElLqoleL+/uxYo X-Received: by 2002:a05:6870:9107:b0:219:ad61:fa58 with SMTP id o7-20020a056870910700b00219ad61fa58mr3750106oae.35.1707602374790; Sat, 10 Feb 2024 13:59:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707602374; cv=pass; d=google.com; s=arc-20160816; b=pUmGZsFEd5+zeHNEslSv24kk+bGQ6nIz0t48zkpodBTivTddcpbwO8I0jCCm1lCZ06 2kpT3/2GaK+MQtbQu8R98IdG9w8yZJjYpNpYrFm4LzIWe50g9sBHfs8UFxbmnV28j443 lFrWATxLuZKiS/d5e4GROuP/OPcRl7k5PNeHHv7+7c4VJ2U13RdAPLApgKOwJabMXaMD 5zlpQlvPet+CNsZbKI7FxowlozFc4VT6AFpQ6bpOACkUAZT+mf/EFjdwBo+sXsXyYJ89 ZCVP7lt2I/VJ9ts6tOMIhaNxOzWvAgxunzHwiyJvT1B35c95lT44HXj+ETzj1/MO9oBY JBGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=xi31YeeyyS/qFrw1DkmjVjOshSdKKbDhOyJw6MvaMJY=; fh=xrIUIXqURbLnQnhD1nQUXu47QIB29jHXpePtuQCPWXU=; b=Q/bdEhLsAAoDtYXtKX+Fln5ZmiHgYgtX5bqNEzF2yoHAe/+owCANZ9m6Dfcft0kr7J a33AI1noB7GXX5MFvLCl1yeiKPwx75nh+1V4FzJx2Tsq4N8fP/Zr8FZMbpMR5afc2N6c TDe6qGJ7JQLDEW34Rb/4Mw/rYlDM7AIlbZi9EpTnIrvTLxw5WIHabGN02Gyw+Fw1twn+ DtLkpeoeJr7isfVyNjnNVvmsOTHl0JIlK1uCrrJQnM7tl9IH9uHAbJGA8npER1Aq+eHC 96P+Zn4tbZiAwjt8dmWDazQ0f1cOGQLMoTdtJcscrA1Nxjz0v5ca5cbPhnwFA7cCXcyW /PzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b="ID/GQKVs"; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-60568-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60568-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com X-Forwarded-Encrypted: i=2; AJvYcCVvccfaN+tXb6fqfcjBWHgl8zmgRfb9AogeHfwIaR/CgI9T3Nq/uAUiAnWrIXTv3M47YxF013i7WzoIr7Sm3H7lEEDA9w== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r9-20020a632b09000000b005d8b313de29si4027448pgr.650.2024.02.10.13.59.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 13:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60568-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b="ID/GQKVs"; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-60568-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60568-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 836A3282342 for <ouuuleilei@gmail.com>; Sat, 10 Feb 2024 21:59:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3794B5FEF9; Sat, 10 Feb 2024 21:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="ID/GQKVs" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EC8436B01; Sat, 10 Feb 2024 21:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707602142; cv=none; b=gcID0NnYBYxcrJ30+Y+J5NZoDeXLCohMdbjhmtacaKaFXtlRckhiJ7bcIn3N+wFngLddj/IhguyMuv+fmideKkdMyr5vP0BuV4wn19nuLcAaiau3eF0RcSQlRPN2vhhbYrsLN58F1eREGSPNeNAf3AoD7sz/ZaISf6GjUjtQrt4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707602142; c=relaxed/simple; bh=z7rtINVttpPeGX3Q2hKXdZ2D1BRaxoQHZOCRV0NBzFM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=gRaMSwN80JYgLmCGNnOu+J92j7+FbYOjY0BIpnV7q6o76f9SEa/45gvr9LtoKp2I4ANUz9nibz7YoaOYzsuBhcr9cOyyvAjamKukgM1mZfemZA/NdRrBKNty1/IwxYj5aAM+pfcvP571lHfWgywP2j80D93Qii+e2N/KCek1f40= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=ID/GQKVs; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id BF461100003; Sun, 11 Feb 2024 00:55:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru BF461100003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1707602128; bh=xi31YeeyyS/qFrw1DkmjVjOshSdKKbDhOyJw6MvaMJY=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=ID/GQKVsNci/VPuG6OlDS1TawQiIkMl2MhlcFJi3FsFUkAHzQjapxSzWvBdqeKYNk x9/nxqvI+m3gqaIluUH6YneQ4B07/QPZoDnziWMCoZ5N2X4cOFvoalvgxFmEB3QymO znjpXcQprfDMJHpOTQhpzosa6FEE1NqT7F4b/BlqyKI/WxnF0VDkqDhkGcXc5yc/uC 66aNtPE4FvEr+IgCUUOaK+VIOFd7DhDM4+BsSV/Okrr+gWsMG85xiRNDK7AW9LDMrz XtgrsqEY+Dn/I3bPQvbCtIf3TesjzvWrTV5iBZZBT7vhnfvY0Uhk1psFgVJJLLOPro jEXeP9hdf1EHA== Received: from smtp.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Sun, 11 Feb 2024 00:55:28 +0300 (MSK) Received: from localhost.localdomain (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sun, 11 Feb 2024 00:55:28 +0300 From: Arseniy Krasnov <avkrasnov@salutedevices.com> To: Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Neil Armstrong <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com>, Yixun Lan <yixun.lan@amlogic.com>, Jianxin Pan <jianxin.pan@amlogic.com> CC: <oxffffaa@gmail.com>, <linux-mtd@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <linux-amlogic@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <kernel@sberdevices.ru>, Arseniy Krasnov <avkrasnov@salutedevices.com>, <Stable@vger.kernel.org> Subject: [PATCH v1] mtd: rawnand: meson: fix scrambling mode value in command macro Date: Sun, 11 Feb 2024 00:45:51 +0300 Message-ID: <20240210214551.441610-1-avkrasnov@salutedevices.com> X-Mailer: git-send-email 2.35.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 183344 [Feb 10 2024] X-KSMG-AntiSpam-Version: 6.1.0.3 X-KSMG-AntiSpam-Envelope-From: avkrasnov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;smtp.sberdevices.ru:5.0.1,7.1.1;salutedevices.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;100.64.160.123:7.1.2, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/02/10 18:28:00 #23491490 X-KSMG-AntiVirus-Status: Clean, skipped X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790550868053919893 X-GMAIL-MSGID: 1790550868053919893 |
Series |
[v1] mtd: rawnand: meson: fix scrambling mode value in command macro
|
|
Commit Message
Arseniy Krasnov
Feb. 10, 2024, 9:45 p.m. UTC
Scrambling mode is enabled by value (1 << 19). NFC_CMD_SCRAMBLER_ENABLE
is already (1 << 19), so there is no need to shift it again in CMDRWGEN
macro.
Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
Cc: <Stable@vger.kernel.org>
Fixes: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
---
drivers/mtd/nand/raw/meson_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sat, 2024-02-10 at 21:45:51 UTC, Arseniy Krasnov wrote: > Scrambling mode is enabled by value (1 << 19). NFC_CMD_SCRAMBLER_ENABLE > is already (1 << 19), so there is no need to shift it again in CMDRWGEN > macro. > > Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com> > Cc: <Stable@vger.kernel.org> > Fixes: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller") Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel
diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c index cdb58aca59c0..2a96a87cf79c 100644 --- a/drivers/mtd/nand/raw/meson_nand.c +++ b/drivers/mtd/nand/raw/meson_nand.c @@ -63,7 +63,7 @@ #define CMDRWGEN(cmd_dir, ran, bch, short_mode, page_size, pages) \ ( \ (cmd_dir) | \ - ((ran) << 19) | \ + (ran) | \ ((bch) << 14) | \ ((short_mode) << 13) | \ (((page_size) & 0x7f) << 6) | \