Sorry for the huge delay. Looks good.
I'll give it a day or two in case you still want to change something,
then merge it.
Patch set 6:Code-Review +2
3 comments:
Added some more checking of the response.
Thx
ret = spi_start_io(read_follows, writecnt);
if (ret != 0)
Raised to 252, empirically determined as the actual limit of the payload the hardware can handle. […]
The overhead is already reduced by setting it to 252. Now, I agree,
changing the loop likely wouldn't bring a significant speed improve-
ment (unless you use asychronous bulk transfers and that gets really
complex, see dediprog for example).
.max_data_read = 252,
.max_data_write = 252,
Nit: 252 seems to be 256 - 4 (1B opcode, 3B address). I doubt that
anyone would use this interface to program chips with 4B addresses,
but if you want to prepare for that, I would reduce it to 251.
To view, visit change 23338. To unsubscribe, or for help writing mail filters, visit settings.