Skip to content

add missing of_node_put after calling of_parse_phandle

Peter Chen linux-omap netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 3 repliesIn review
  2. v115 patches 15 repliesSuperseded

Changes in v2 from the cover letter

- If the device node is local variable, it can be put in the same function.
- If the device node will be used the whole driver life cycle, it should be put (call of_node_put) at driver's remove.
Patch [4, 5, 9, 14, 15/15]
- Fix the issue that the node still be used at error patch [6/15]
- Add acked for patch [11,12/15]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15ethernet: altera: add missing of_node_putdrivers/net/ethernet/altera/altera_tse_main.c+1 -00 replies
2/15ethernet: apm: xgene: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/apm/xgene/xgene_enet_hw.c+1 -00 replies
3/15ethernet: arc: emac_main: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/arc/emac_main.c+11 -40 replies
4/15ethernet: aurora: nb8800: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/aurora/nb8800.c+2 -00 replies
5/15ethernet: cavium: octeon: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/cavium/octeon/octeon_mgmt.c+3 -00 replies
6/15ethernet: hisilicon: hns: hns_dsaf_mac: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c+6 -30 replies
7/15ethernet: hisilicon: hns: hns_dsaf_main: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c+4 -30 replies
8/15ethernet: marvell: mvneta: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/marvell/mvneta.c+1 -00 replies
9/15ethernet: marvell: mvpp2: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/marvell/mvpp2.c+2 -00 replies
10/15ethernet: marvell: pxa168_eth: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/marvell/pxa168_eth.c+1 -00 replies
11/15ethernet: renesas: ravb_main: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/renesas/ravb_main.c+1 -00 replies
12/15ethernet: renesas: sh_eth: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/renesas/sh_eth.c+1 -00 replies
13/15ethernet: stmicro: stmmac: dwmac-socfpga: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c+26 -100 replies
14/15ethernet: stmicro: stmmac: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c+6 -21 reply
15/15ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandledrivers/net/ethernet/ti/davinci_emac.c+1 -01 reply

Reviews trailers per patch

4 of 15 patches have a Reviewed-by or Acked-by.

PatchSergei ShtylyovAlexandre TorgueMugunthan V N
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15A-b
12/15A-b
13/15
14/15A-b
15/15R-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 v2 thread

Cover letter [PATCH v2 00/15] add missing of_node_put after calling of_parse_phandle

Hi David,

This patch set fixes missing of_node_put issue at ethernet driver. of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using.

The compilation test has passed by using allmodconfig for drivers/net/ethernet.

Thanks.

Changes for v2:
- If the device node is local variable, it can be put in the same function.
- If the device node will be used the whole driver life cycle, it should be put (call of_node_put) at driver's remove.
Patch [4, 5, 9, 14, 15/15]
- Fix the issue that the node still be used at error patch [6/15]
- Add acked for patch [11,12/15]

Peter Chen (15):
ethernet: altera: add missing of_node_put
ethernet: apm: xgene: add missing of_node_put after calling
of_parse_phandle
ethernet: arc: emac_main: add missing of_node_put after calling
of_parse_phandle
ethernet: aurora: nb8800: add missing of_node_put after calling
of_parse_phandle
ethernet: cavium: octeon: add missing of_node_put after calling
of_parse_phandle
ethernet: hisilicon: hns: hns_dsaf_mac: add missing of_node_put after
calling of_parse_phandle
ethernet: hisilicon: hns: hns_dsaf_main: add missing of_node_put after
calling of_parse_phandle
ethernet: marvell: mvneta: add missing of_node_put after calling
of_parse_phandle
ethernet: marvell: mvpp2: add missing of_node_put after calling
of_parse_phandle
ethernet: marvell: pxa168_eth: add missing of_node_put after calling
of_parse_phandle
ethernet: renesas: ravb_main: add missing of_node_put after calling
of_parse_phandle
ethernet: renesas: sh_eth: add missing of_node_put after calling
of_parse_phandle
ethernet: stmicro: stmmac: dwmac-socfpga: add missing of_node_put
after calling of_parse_phandle
ethernet: stmicro: stmmac: add missing of_node_put after calling
of_parse_phandle
ethernet: ti: davinci_emac: add missing of_node_put after calling
of_parse_phandle

 drivers/net/ethernet/altera/altera_tse_main.c      |  1 +
 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c     |  1 +
 drivers/net/ethernet/arc/emac_main.c               | 15 ++++++---
 drivers/net/ethernet/aurora/nb8800.c               |  2 ++
 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c   |  3 ++
 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c  |  9 ++++--
 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c |  7 +++--
 drivers/net/ethernet/marvell/mvneta.c              |  1 +
 drivers/net/ethernet/marvell/mvpp2.c               |  2 ++
 drivers/net/ethernet/marvell/pxa168_eth.c          |  1 +
 drivers/net/ethernet/renesas/ravb_main.c           |  1 +
 drivers/net/ethernet/renesas/sh_eth.c              |  1 +
 .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c    | 36 ++++++++++++++++------
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  |  1 +
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  |  7 +++--
 drivers/net/ethernet/ti/davinci_emac.c             |  1 +
 16 files changed, 67 insertions(+), 22 deletions(-)
Signature · 1 line
1.9.1