]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: mchp48l640: make WEL behaviour configurable
authorDavid Jander <david@protonic.nl>
Tue, 3 Dec 2024 10:38:35 +0000 (11:38 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 5 Dec 2024 10:28:29 +0000 (11:28 +0100)
commit5dbc889d41b175aa7b9c7c49a48c11a047f6074d
tree954e6a8c097aa492170f3bcae727ba21ffab56f3
parentb3c782868ecebd0c1661a6aa2bdc84cd3cbb1ef3
mtd: mchp48l640: make WEL behaviour configurable

The 48L640 resets the WEL bit (the Write Enable Latch bit in the status
register) to zero on the completion of write operations. In preparation
to support chips behaving differently, introduce .auto_disable_wel
capability, and, if it's missing, explicitly reset the WEL bit after
writes.

Signed-off-by: David Jander <david@protonic.nl>
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/devices/mchp48l640.c