Skip to content

net: xilinx: axienet: Fix IRQ error handling

[email protected] linux-arm-kernel lkml netdev 6 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 2 repliesApplied 3/3
  2. v53 patches 6 repliesSuperseded
  3. v43 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches5 repliesSuperseded
v22 patches4 repliesSuperseded
v11 patch4 repliesSuperseded

Changes in v6 from the cover letter

- Add Simon's Reviewed-by: tag.
- Drop the Fixes: tag as this patch is intended for net-next.

Patches in v6 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: xilinx: axienet: Propagate errors from optional IRQ lookupdrivers/net/ethernet/xilinx/xilinx_axienet_main.c+2 -00 repliesApplied
2/3net: xilinx: axienet: Handle optional IRQ return value correctlydrivers/net/ethernet/xilinx/xilinx_axienet_main.c+1 -10 repliesApplied
3/3net: xilinx: axienet: Fix IRQ error handlingdrivers/net/ethernet/xilinx/xilinx_axienet_main.c+6 -22 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSimon HormanRadhey Shyam PandeySuraj Gupta
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH net-next v6 0/3] net: xilinx: axienet: Fix IRQ error handling

From: bui duc phuc <[email protected]>

Hi all,

This series fixes IRQ error handling in the Xilinx AXI Ethernet driver

Handle errors from optional IRQ lookup and preserve the original error codes instead of returning -ENOMEM.

The changes were found by manual code inspection and compile-tested only.

Link v1 :
https://lore.kernel.org/all/[email protected]/
Link v2 :
https://lore.kernel.org/all/[email protected]/
Link v3 :
https://lore.kernel.org/all/[email protected]/
Link v4 :
https://lore.kernel.org/all/[email protected]/
Link v5 :
https://lore.kernel.org/all/[email protected]/

Changes in v2 :
- Split one patch from v1 into two patches.
Changes in v3 :
- Move the lp->eth_irq check below instead of handling it immediately after platform_get_irq_optional()
- Add error handling for platform_get_irq()
Changes in v4 :
- Add Reviewed-by tags
- Add error handling for irq_of_parse_and_map()
Changes in v5 :
- Change the error code returned when irq_of_parse_and_map() fails from -ENOMEM to -EINVAL.
Changes in v6 :
- Add Simon's Reviewed-by: tag.
- Drop the Fixes: tag as this patch is intended for net-next.

Best regards,
Phuc

bui duc phuc (3):
net: xilinx: axienet: Propagate errors from optional IRQ lookup
net: xilinx: axienet: Handle optional IRQ return value correctly
net: xilinx: axienet: Fix IRQ error handling

 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0