[PATCH net-next v2 0/2] net: stmmac: DMA address handling fixes
Alex Elder <[email protected]>
| Newsgroups | org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
Update jumbo_frm() (implemented in both "chain_mode.c" and "ring_mode.c") to ensure DMA errors don't get lost due to casting the result to an integer of the wrong size. This was a Sashiko suggestion. In addition, add explicit calls to lower_32_bits() to DMA addresses before they are passed to cpu_to_le32(), to guarantee the type of the converted value is u32. Maxime implied that a new version the first patch could handle both fixes, but I thought it better to do them separately. -Alex Here is v1 of the series (the patch): https://lore.kernel.org/lkml/[email protected]/ Alex Elder (2): net: stmmac: use dma_addr_t for DMA addresses net: stmmac: convert DMA address to lower 32 before assignment drivers/net/ethernet/stmicro/stmmac/chain_mode.c | 9 +++++---- drivers/net/ethernet/stmicro/stmmac/ring_mode.c | 15 ++++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) base-commit: 5e6de6a2b522f659defacb1551d0465ba6ce13cf -- 2.53.0