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@xxxxxxxxxxxxx>