[PW_SID:1060502] net: spacemit: A few minor/theoretical fixes#1540
[PW_SID:1060502] net: spacemit: A few minor/theoretical fixes#1540linux-riscv-bot wants to merge 4 commits into
Conversation
These were never used. Just remove them. Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Even if we get a dma_mapping_error() while mapping an RX buffer, we should still update rx_ring->head to ensure that the buffers we were able to allocate and map are used. Fix this by breaking out to the existing code after the loop, analogous to the existing handling for skb allocation failure. Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The DMA mappings were leaked on mapping error. Free them with the existing emac_free_tx_buf() function. Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
In emac_free_{tx,rx}_resources, call dma_free_coherent() to unmap DMA
before calling kfree() to deallocate the memory, instead of the other
way around.
Fixes: bfec6d7 ("net: spacemit: Add K1 Ethernet MAC")
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 1: "[net-next,1/4] net: spacemit: Remove unused buff_addr fields" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 2: "[net-next,2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 3: "[net-next,3/4] net: spacemit: Fix error handling in emac_tx_mem_map()" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
|
Patch 4: "[net-next,4/4] net: spacemit: Free rings of memory after unmapping DMA" |
PR for series 1060502 applied to workflow__riscv__fixes
Name: net: spacemit: A few minor/theoretical fixes
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1060502
Version: 1