[PATCH v2 1/2] mtd: spi-nor: add Octal DTR support for Macronix flash

Tudor Ambarus tudor.ambarus at linaro.org
Thu Jul 27 03:04:35 PDT 2023



On 7/27/23 11:00, Tudor Ambarus wrote:
> +	/* Macronix SPI-NOR flash 8D-8D-8D read ID would get 6 bytes data A-A-B-B-C-C */
> +	for (i = 0; i < nor->info->id_len; i++)
> +		if (buf[i * 2] != nor->info->id[i])
> +			return -EINVAL;

check all the bytes, not just some



More information about the linux-mtd mailing list