<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  </head>
  <body>
    <p>Hi heiko<br>
    </p>
    <div class="moz-cite-prefix">在 2020/7/6 17:47, Heiko Stübner 写道:<br>
    </div>
    <blockquote type="cite" cite="mid:5521346.QZMSPK5NSd@diego">
      <pre class="moz-quote-pre" wrap="">Hi Sandy,

Am Montag, 6. Juli 2020, 09:59:44 CEST schrieb Sandy Huang:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">don't mask possible_crtcs if remote-point is disabled.

Signed-off-by: Sandy Huang <a class="moz-txt-link-rfc2396E" href="mailto:hjc@rock-chips.com"><hjc@rock-chips.com></a>
---
 drivers/gpu/drm/drm_of.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index fdb05fbf72a0..f5f250435add 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -66,6 +66,11 @@ uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
        uint32_t possible_crtcs = 0;
 
        for_each_endpoint_of_node(port, ep) {
+               if (!of_device_is_available(ep)) {
+                       of_node_put(ep);
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
You'd only need the of_node_put here, if you were exiting the loop.

With the "continue" below, the next iteration of for_each_endpoint_of_node
will do the put on "ep"
</pre>
    </blockquote>
    <span style="color: rgb(51, 51, 51); font-family: Arial, 'Microsoft
      YaHei', '\\5FAE软雅黑', '\\5B8B体', 'Malgun Gothic', Meiryo,
      sans-serif; font-size: 14px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      26px; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(247, 248, 250); display: inline !important;
      float: none;">Just as we communicate on the google talk, the v2
      patch will delete of_node_put(ep) and leave continue, thanks.<br>
    </span>
    <blockquote type="cite" cite="mid:5521346.QZMSPK5NSd@diego">
      <pre class="moz-quote-pre" wrap="">

Heiko

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">+                  continue;
+               }
+
                remote_port = of_graph_get_remote_port(ep);
                if (!remote_port) {
                        of_node_put(ep);

</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">





</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Best Regard 

黄家钗
Sandy Huang
Addr: 福州市鼓楼区铜盘路软件大道89号福州软件园A区21号楼(350003)
      No. 21 Building, A District, No.89,software Boulevard Fuzhou,Fujian,PRC
Tel:+86 0591-87884919  8690
E-mail:<a class="moz-txt-link-abbreviated" href="mailto:hjc@rock-chips.com">hjc@rock-chips.com</a></pre>
  </body>
</html>