Thread (7 messages) 7 messages, 4 authors, 2022-09-13

Re:Re: Re: [PATCH] phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent()

From: Liang He <hidden>
Date: 2022-09-13 15:26:20


At 2022-09-13 21:55:53, "Vinod Koul" [off-list ref] wrote:
On 05-09-22, 15:21, Liang He wrote:
quoted


At 2022-09-02 23:41:14, "Vinod Koul" [off-list ref] wrote:
quoted
On 05-07-22, 10:15, Liang He wrote:
quoted
We should hold the reference returned by of_get_parent() and use it
to call of_node_put() for reference balance.
And why should we hold and drop reference?
quoted
Hi, Vinod Koul,


Thanks very much for your review.


As the of_get_parent() will increase the refcount of the node->parent  and the reference will be discarded 
so we should hold the reference , with which we can decrease the refcount.
Right, that is correct explanation
quoted

If there is any misunderstanding about the of_get_parent() API, please correct me.
Nope, just that this explanation is missing from the log...

Please add...
Thank you very much!
I will add it in new version.
-- 
~Vinod
-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help