[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <05cc07ce-f412-456f-74c0-57bfebe660da@sberdevices.ru>
Date: Thu, 8 Jun 2023 07:37:29 +0300
From: Arseniy Krasnov <avkrasnov@...rdevices.ru>
To: Liang Yang <liang.yang@...ogic.com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Neil Armstrong <neil.armstrong@...aro.org>,
Kevin Hilman <khilman@...libre.com>,
Jerome Brunet <jbrunet@...libre.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>
CC: <oxffffaa@...il.com>, <kernel@...rdevices.ru>,
<linux-mtd@...ts.infradead.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-amlogic@...ts.infradead.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v1] mtd: rawnand: meson: remove unneeded bitwise OR with
zeroes
On 08.06.2023 06:23, Liang Yang wrote:
>
>
> On 2023/6/8 5:18, Arseniy Krasnov wrote:
>> [ EXTERNAL EMAIL ]
>>
>> Hi again Miquel, Liang!
>>
>> What do You think about this patch?
>>
>> Thanks, Arseniy
>>
>> On 05.06.2023 22:15, Arseniy Krasnov wrote:
>>> Both operations have no effect.
>>>
>>> Signed-off-by: Arseniy Krasnov <AVKrasnov@...rdevices.ru>
>>> ---
>>> drivers/mtd/nand/raw/meson_nand.c | 4 ++--
>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c
>>> index 074e14225c06..50d3110ad321 100644
>>> --- a/drivers/mtd/nand/raw/meson_nand.c
>>> +++ b/drivers/mtd/nand/raw/meson_nand.c
>>> @@ -595,12 +595,12 @@ static int meson_nfc_rw_cmd_prepare_and_execute(struct nand_chip *nand,
>>> cmd0 = in ? NAND_CMD_READ0 : NAND_CMD_SEQIN;
>>> nfc->cmdfifo.rw.cmd0 = cs | NFC_CMD_CLE | cmd0;
>>>
>>> - addrs[0] = cs | NFC_CMD_ALE | 0;
>>> + addrs[0] = cs | NFC_CMD_ALE;
>>> if (mtd->writesize <= 512) {
>>> cmd_num--;
>>> row_start = 1;
>>> } else {
>>> - addrs[1] = cs | NFC_CMD_ALE | 0;
>>> + addrs[1] = cs | NFC_CMD_ALE;
>>> row_start = 2;
>>> }
> Hi Arseniy and Miquel,
>
> The two zeros indcates two column address. maybe we could use the micro "COLUMN_ADDR_0" and "COLUMN_ADDR_1" to keep the nfc command format "CE | ALE | addr" consistency and also let function "meson_nfc_rw_cmd_prepare_and_execute" be more readable.
Liang, done in v2:)
Thanks, Arseniy
>
> Thanks,
> Liang
>
>>>
Powered by blists - more mailing lists