Closed CharlesParent closed 2 years ago
Maybe it's time just to expose the nvmem device and start deprecating the ioctls?
In the short term, a READ_EXTENDED_EEPROM command sounds reasonable.
I need to figure out why the spi-altera driver is broken for reading.
Hi @vvfedorenko and @jlemon, Just signed off and update PR to add R/W ioctls extended version
Could you please resubmit it with correct Sign-off-by ? Another problem I can see right now is that incompatible version of user-space software could write out of bounds of user buffer. And read of course. Which is not great in terms of security. @jlemon Jonathan do you have any suggestion for this case? Maybe it's better to introduce new command code like
READ_EXTENDED_EEPROM
?