Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Takahiro Kuwano <tkuw584924@gmail.com>, Michael Walle <michael@walle.cc>
Cc: linux-mtd@lists.infradead.org, pratyush@kernel.org,
	miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
	Bacem.Daassi@infineon.com,
	Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Subject: Re: [PATCH v2 1/2] mtd: spi-nor: core: rework struct spi_nor_erase_region
Date: Mon, 5 Feb 2024 07:59:51 +0200	[thread overview]
Message-ID: <f84e5084-0750-41fe-aa08-33cd0a2575a6@linaro.org> (raw)
In-Reply-To: <e7e08fe6-ee44-4ac7-9ae8-dc36a92ea4cc@gmail.com>



On 05.02.2024 06:21, Takahiro Kuwano wrote:
>>>  static u64 spi_nor_region_is_last(const struct spi_nor_erase_region *region)
>>>  {
>>> -    return region->offset & SNOR_LAST_REGION;
>>> +    return region->flags & SNOR_LAST_REGION;
>>>  }
>> Do you think we can get rid of this, too? Just save the number
>> of erase regions instead of having this flag. IIRC Tudor had also
>> suggested this.
>>
> Yes, I will remove this and rework related functions.
> 
> If we remove this flag, the SNOR_OVERLAID_REGION will be only one flag.
> How about removing the SNOR_OVERLAID_REGION as well, and change 'region->flags'
> to a bool value like 'region->overlaid'?

sounds good, yes. Thanks!

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2024-02-05  6:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-23  8:13 [PATCH v2 0/2] mtd: spi-nor: core: set mtd->eraseregions for tkuw584924
2024-01-23  8:13 ` [PATCH v2 1/2] mtd: spi-nor: core: rework struct spi_nor_erase_region tkuw584924
2024-02-01 16:13   ` Michael Walle
2024-02-05  4:21     ` Takahiro Kuwano
2024-02-05  5:59       ` Tudor Ambarus [this message]
2024-01-23  8:13 ` [PATCH v2 2/2] mtd: spi-nor: core: set mtd->eraseregions for non-uniform erase map tkuw584924
2024-02-01 16:20   ` Michael Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f84e5084-0750-41fe-aa08-33cd0a2575a6@linaro.org \
    --to=tudor.ambarus@linaro.org \
    --cc=Bacem.Daassi@infineon.com \
    --cc=Takahiro.Kuwano@infineon.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=michael@walle.cc \
    --cc=miquel.raynal@bootlin.com \
    --cc=pratyush@kernel.org \
    --cc=richard@nod.at \
    --cc=tkuw584924@gmail.com \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox