[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <375179fb-7cb6-0ec0-0c1a-b894c5198e15@linaro.org>
Date: Tue, 6 Aug 2019 11:03:39 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
linux-amlogic@...ts.infradead.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] nvmem: meson-mx-efuse: allow reading data smaller than
word_size
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 aligned to word_size (4
> bytes on Meson8, Meson8b and Meson8m2).
>
> Calculate the remaining data to copy inside meson_mx_efuse_read() so
> reading 6 bytes doesn't write beyond the end of the data buffer.
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
> ---
Applied Thanks,
Srini
Powered by blists - more mailing lists