i.MX6: WEIM: improve error handling upon child probe-failure
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest1 patch 0 repliesNew
- v11 patch 0 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | i.MX6: WEIM: improve error handling upon child probe-failuredrivers/ | +7 | 2 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Sascha Hauer |
|---|---|
| 1/1 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/1] i.MX6: WEIM: improve error handling upon child probe-failure
From: Alison Chaiken <[email protected]>
Here is a third version which incorporates Joshua Clayton's suggestions. The boolean value have_child is initialized to zero and the redundant return statement is removed.
Joshua inquires:
Quoted 2 lines
There is no explicit
of_node_get(), at least at this level, so the need for the original patch is not entirely clear to me.
for_each_child_of_node() calls of_get_next_child() which in turn calls of_node_get(). If the for_each_child_of_node() iterator runs to the end of the list, the last call of of_get_next_child() puts the final open reference. If the iterator loop is exited early due to an error,the final reference needs to be cleaned up manually. Since, in the last two versions, failure of a child probe results in a warning rather than a loop exit, there is no longer a dangling reference.
Alison Chaiken (1):
i.MX6: WEIM: improve error handling upon child probe-failure
drivers/bus/imx-weim.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.4