Message ID | 1571295929-47286-26-git-send-email-biju.das@bp.renesas.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | Audio improvements/SSIU BUSIF/ | expand |
Hi! > DTC commit df536831d02c ("checks: add graph binding checks") > is checking endpoint bidirectional, and it is upstreamed to linux by > commit 50aafd60898a ("scripts/dtc: Update to upstream version > v1.4.6-21-g84e414b0b5bc"). > Let's remove own bidirectional check I don't really understand what bidirectional check? Are you saying that of_graph_get_remote_endpoint() never fails in 4.19.X ? > +++ b/sound/soc/sh/rcar/ssi.c > @@ -1095,11 +1095,7 @@ void rsnd_ssi_parse_hdmi_connection(struct rsnd_priv *priv, > int dai_i) > { > struct rsnd_dai *rdai = rsnd_rdai_get(priv, dai_i); > - struct device_node *remote_ep; > - > - remote_ep = of_graph_get_remote_endpoint(endpoint); > - if (!remote_ep) > - return; > + struct device_node *remote_ep = of_graph_get_remote_endpoint(endpoint); Plus the code seems to be missing of_node_put(). Best regards, Pavel
+ Morimoto San, Hi Pavel, Thanks for the feedback. > Subject: Re: [PATCH 4.19.y-cip 25/57] ASoC: rsnd: remove endpoint > bidirectional check > > Hi! > > > DTC commit df536831d02c ("checks: add graph binding checks") is > > checking endpoint bidirectional, and it is upstreamed to linux by > > commit 50aafd60898a ("scripts/dtc: Update to upstream version > > v1.4.6-21-g84e414b0b5bc"). > > Let's remove own bidirectional check > > I don't really understand what bidirectional check? Are you saying that > of_graph_get_remote_endpoint() never fails in 4.19.X ? > > > +++ b/sound/soc/sh/rcar/ssi.c > > @@ -1095,11 +1095,7 @@ void rsnd_ssi_parse_hdmi_connection(struct > rsnd_priv *priv, > > int dai_i) > > { > > struct rsnd_dai *rdai = rsnd_rdai_get(priv, dai_i); > > - struct device_node *remote_ep; > > - > > - remote_ep = of_graph_get_remote_endpoint(endpoint); > > - if (!remote_ep) > > - return; > > + struct device_node *remote_ep = > > +of_graph_get_remote_endpoint(endpoint); > > Plus the code seems to be missing of_node_put(). This patch is overridden by " 0028-ASoC-rsnd-move-HDMI-information-from-ssi.c-to-core.c.patch", yes I agree we are still missing of_node_put?? Morimoto-San, any comments?? Regards, Biju
Hi > > > DTC commit df536831d02c ("checks: add graph binding checks") is > > > checking endpoint bidirectional, and it is upstreamed to linux by > > > commit 50aafd60898a ("scripts/dtc: Update to upstream version > > > v1.4.6-21-g84e414b0b5bc"). > > > Let's remove own bidirectional check > > > > I don't really understand what bidirectional check? Are you saying that > > of_graph_get_remote_endpoint() never fails in 4.19.X ? On OF-graph DT, remote-endpoint need to be pair. ex) endpoint1: endpoint { remote-endpoint = <&endpoint2>; }; endpoint2: endpoint { remote-endpoint = <&endpoint1>; }; This "bidirectional check" is for it. Now, it is checked by DTC. > > > +++ b/sound/soc/sh/rcar/ssi.c > > > @@ -1095,11 +1095,7 @@ void rsnd_ssi_parse_hdmi_connection(struct > > rsnd_priv *priv, > > > int dai_i) > > > { > > > struct rsnd_dai *rdai = rsnd_rdai_get(priv, dai_i); > > > - struct device_node *remote_ep; > > > - > > > - remote_ep = of_graph_get_remote_endpoint(endpoint); > > > - if (!remote_ep) > > > - return; > > > + struct device_node *remote_ep = > > > +of_graph_get_remote_endpoint(endpoint); > > > > Plus the code seems to be missing of_node_put(). Thanks. indeed it missing of_node_put(). I will post fixup patch Thank you for your help !! Best regards --- Kuninori Morimoto
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index 81d3864..65cd629 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -1095,11 +1095,7 @@ void rsnd_ssi_parse_hdmi_connection(struct rsnd_priv *priv, int dai_i) { struct rsnd_dai *rdai = rsnd_rdai_get(priv, dai_i); - struct device_node *remote_ep; - - remote_ep = of_graph_get_remote_endpoint(endpoint); - if (!remote_ep) - return; + struct device_node *remote_ep = of_graph_get_remote_endpoint(endpoint); __rsnd_ssi_parse_hdmi_connection(priv, &rdai->playback, remote_ep); __rsnd_ssi_parse_hdmi_connection(priv, &rdai->capture, remote_ep);