On Wed May 27, 2026 at 5:28 AM CEST, Weimin Wu wrote: > Add support for the GigaDevice GD25LQ256H (JEDEC ID c8 60 19), > a 256Mbit (32MB) SPI NOR flash chip which supports SFDP. > > Without this patch, The WP status cannot be obtained using flashrom: > device:/ # flashrom --wp-status > ... > linux_mtd_wp_read_cfg: > ioctl: Operation not supported on transport endpoint > Failed to get WP status: failed to read the current WP configuration > > and with this patch: > device:/ # flashrom --wp-status > ... > Protection range: start=0x00000000 length=0x00000000 (none) > Protection mode: disabled > SUCCESS > > Link: https://download.gigadevice.com/Datasheet/DS-01085-GD25LQ256H-Rev1.3.pdf > > Signed-off-by: Weimin Wu For reference, this won't fly, as the ID is reused among different flashes, in particular the GD25LQ255E and the GD25LQ256H, which has different block protection schemes and one needs SPI_NOR_4BIT_BP and one doesn't. -michael