Re: [PATCH v3 09/36] mtd: st_spi_fsm: Provide device look-up table

From: Lee Jones
Date: Tue Jan 07 2014 - 11:11:48 EST


> >> +/* SPI Flash Device Table */
> >> +struct flash_info {
> >> + char *name;
> >> + /*
> >> + * JEDEC id zero means "no ID" (most older chips); otherwise it has
> >> + * a high byte of zero plus three data bytes: the manufacturer id,
> >> + * then a two byte device id.
> >> + */
> >> + u32 jedec_id;
> >> + u16 ext_id;
> >
> > Will 5 bytes of ID be enough? I think we're running into a need for 6
> > bytes of ID in m25p80.c right about now. Might make sense to start with
> > the right number of bytes.
>
> Yes, we will need 6 bytes of ID. The "dirty" stm_spi_fsm driver already handles
> arbitrary-length IDs. This will need to be pulled into the "upstream" version
> at some point.

Just looking at this now. May I do this subsequently? It's a pretty
big change and I don't want to disturb the patch-set too much at this
moment. The "dirty" kernel has only been updated with this change
recently. We will need it too, but we can definitely do without it for
a little while.

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/