Re: [PATCH v2] mtd: spi-nor: Allow post_sfdp hook to return errors

From: Michael Walle
Date: Tue Apr 18 2023 - 05:25:15 EST


Am 2023-04-05 08:21, schrieb Tudor Ambarus:
Multi die flashes like s25hl02gt need to determine the page_size at
run-time by querying a configuration register for each die. Since the
number of dice is determined in an optional SFDP table, SCCR MC, the
page size configuration must be done in the post_sfdp hook. Allow
post_sfdp to return errors, as reading the configuration register might
return errors.

Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxx>

Reviewed-by: Michael Walle <michael@xxxxxxxx>