diff options
| author | Stefan Roese <[email protected]> | 2019-08-26 09:18:11 +0200 |
|---|---|---|
| committer | Joe Hershberger <[email protected]> | 2019-09-04 11:37:19 -0500 |
| commit | 5ccd657b6d6cdf2378b98f6b71a2a5a22d8f4d50 (patch) | |
| tree | 4800f4d19a0436130f5387f690df034307960d35 /include | |
| parent | 642b80d256e1ba35e0dc8157a588b49c11b177f4 (diff) | |
net: macb: Fix rx buffer cache handling
With commit c6d07bf440bc ("net/macb: increase RX buffer size for GEM")
ethernet support does not work any more with d-cache enabled on the
AT91SAM. The reason is, that MACB_RX_BUFFER_SIZE was changed from 4096
to 128 but this change was not refected in the rx_buffer flush and
invalidate functions, as these also use this macro.
This patch now fixes this by calculating the rx buffer size correctly
again in those functions. With this change, ethernet works again
reliably on my AT91SAM board.
Signed-off-by: Stefan Roese <[email protected]>
Fixes: c6d07bf440bc ("net/macb: increase RX buffer size for GEM")
Cc: Ramon Fried <[email protected]>
Cc: Eugen Hristev <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Joe Hershberger <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
