[Rebase/PATCHv2] drivers: mtd: m25p80: Add quad read support.
Huang Shijie
b32955 at freescale.com
Wed Oct 30 03:18:52 PDT 2013
于 2013年10月30日 17:20, Sourav Poddar 写道:
> @@ -1051,6 +1184,15 @@ static int m25p_probe(struct spi_device *spi)
> flash->page_size = info->page_size;
> flash->mtd.writebufsize = flash->page_size;
>
> + if (spi->mode& SPI_RX_QUAD&& info->flags& M25P80_QUAD_READ) {
> + ret = set_quad_mode(flash, info->jedec_id);
> + if (ret) {
> + dev_err(&flash->spi->dev, "quad mode not supported\n");
> + return ret;
> + }
> + flash->quad_read = true;
> + }
Do we really need the M25P80_QUAD_READ?
Some NOR flash can supports both the QUAD read and DDR QUAD read, while
some NOR flash only supports the
QUAD read.
when we try to add the DDR QUAD READ support, should we add another
flag, such as M25P80_DDR_QUAD_READ?
Add Mark for this email.
I think you'd better CC this patch to the SPI maillist & Mark,.
thanks
Huang Shijie
More information about the linux-mtd
mailing list