diff options
| author | Marek BehĂșn <[email protected]> | 2024-08-31 11:20:35 +0200 |
|---|---|---|
| committer | Arnd Bergmann <[email protected]> | 2024-09-02 09:41:56 +0000 |
| commit | 29d258542f900a55791ec2ca8b15e4f9da083a14 (patch) | |
| tree | 0f9f8a97e75855953c7e79d469c55a10cb8ac82c /tools/perf/scripts/python | |
| parent | 47ac09b91befbb6a235ab620c32af719f8208399 (diff) | |
firmware: turris-mox-rwtm: Use macro constant instead of hardcoded 4096
The 4096 bytes limit in mox_hwrng_read() is due to the DMA buffer being
allocated to one PAGE_SIZE bytes. Use new local macro constant
RWTM_DMA_BUFFER_SIZE at allocation time and when used in mox_hwrng_read().
Use SZ_4K instead of PAGE_SIZE. Although PAGE_SIZE is never set to a
larger value on Armada 3720, it theoretically could, and this would be a
waste of space.
Signed-off-by: Marek BehĂșn <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions