[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8ce4677710a5a19677ab86aaa41a70ab@kernel.org>
Date: Wed, 06 Sep 2023 08:52:22 +0200
From: Michael Walle <mwalle@...nel.org>
To: Tudor Ambarus <tudor.ambarus@...aro.org>
Cc: Pratyush Yadav <pratyush@...nel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org
Subject: Re: [PATCH v2 10/41] mtd: spi-nor: make sector_size optional
>> #define SPI_NOR_GEOMETRY(_sector_size, _n_sectors, _n_banks) \
>> .size = (_sector_size) * (_n_sectors), \
>> - .sector_size = (_sector_size), \
>> + .sector_size = (_sector_size == SZ_64K) ? 0 : (_sector_size), \
>
> why do you clear the sector_size?
Because that is also a preparation for the large conversion, where the
default value of 64k is dropped. And to be able to verify (because you
can't really review these conversion patches) the ro segments are the
same, this patch already set it to zero if the INFO entry has the
default size.
I'll amend the commit message.
-michael
Powered by blists - more mailing lists