[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163282533892.34438.5017645199634864081.b4-ty@canonical.com>
Date: Tue, 28 Sep 2021 12:35:47 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
To: Krzysztof Kozlowski <krzk@...nel.org>,
Andrew Gabbasov <andrew_gabbasov@...tor.com>,
linux-renesas-soc@...r.kernel.org,
Sergei Shtylyov <sergei.shtylyov@...il.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
linux-kernel@...r.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Subject: Re: [PATCH] memory: renesas-rpc-if: Avoid unaligned bus access for HyperFlash
On Wed, 22 Sep 2021 13:48:30 -0500, Andrew Gabbasov wrote:
> HyperFlash devices in Renesas SoCs use 2-bytes addressing, according
> to HW manual paragraph 62.3.3 (which officially describes Serial Flash
> access, but seems to be applicable to HyperFlash too). And 1-byte bus
> read operations to 2-bytes unaligned addresses in external address space
> read mode work incorrectly (returns the other byte from the same word).
>
> Function memcpy_fromio(), used by the driver to read data from the bus,
> in ARM64 architecture (to which Renesas cores belong) uses 8-bytes
> bus accesses for appropriate aligned addresses, and 1-bytes accesses
> for other addresses. This results in incorrect data read from HyperFlash
> in unaligned cases.
>
> [...]
Applied, thanks!
[1/1] memory: renesas-rpc-if: Avoid unaligned bus access for HyperFlash
commit: 1869023e24c0de73a160a424dac4621cefd628ae
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Powered by blists - more mailing lists