diff options
| author | Andre Przywara <[email protected]> | 2019-07-15 02:27:04 +0100 |
|---|---|---|
| committer | Jagan Teki <[email protected]> | 2019-07-16 17:09:06 +0530 |
| commit | 1a1d1df384579e1323c72e8ba888ce45bfc4e781 (patch) | |
| tree | d3bbc6ad435e764f3e2eff291eda36947c52616a /scripts/checkstack.pl | |
| parent | a9e19b8ff783644f13dbf12d302c588e33da09a5 (diff) | |
sunxi: H6: DRAM: avoid memcpy() on MMIO registers
Using memcpy() is, however tempting, not a good idea: It depends on the
specific implementation of memcpy, also lacks barriers. In this
particular case the first registers were written using 64-bit writes,
and the last register using four separate single-byte writes.
Replace the memcpy with a proper loop using the writel() accessor.
Signed-off-by: Andre Przywara <[email protected]>
Tested-by: Jernej Skrabec <[email protected]>
Reviewed-by: Jernej Skrabec <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
