Re: [PATCH v2] nvmem: meson-mx-efuse: allow reading data smaller than word_size

2019-08-06 Thread Srinivas Kandagatla
On 27/07/2019 20:34, Martin Blumenstingl wrote: Some Amlogic boards store the Ethernet MAC address inside the eFuse. The Ethernet MAC address uses 6 bytes. The existing logic in meson_mx_efuse_read() would write beyond the end of the data buffer when trying to read data with a size that is not

Re: [PATCH v2] nvmem: meson-mx-efuse: allow reading data smaller than word_size

2019-07-29 Thread Neil Armstrong
On 27/07/2019 21:34, Martin Blumenstingl wrote: > Some Amlogic boards store the Ethernet MAC address inside the eFuse. The > Ethernet MAC address uses 6 bytes. The existing logic in > meson_mx_efuse_read() would write beyond the end of the data buffer when > trying to read data with a size that is

[PATCH v2] nvmem: meson-mx-efuse: allow reading data smaller than word_size

2019-07-27 Thread Martin Blumenstingl
Some Amlogic boards store the Ethernet MAC address inside the eFuse. The Ethernet MAC address uses 6 bytes. The existing logic in meson_mx_efuse_read() would write beyond the end of the data buffer when trying to read data with a size that is not aligned to word_size (4 bytes on Meson8, Meson8b and