All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <cbbdc53ea47f0e7ea02fc7d197664819958ea2cd.camel@mediatek.com>

diff --git a/N1/2.bin b/N1/2.bin
new file mode 100644
index 0000000..b9e28df
--- /dev/null
+++ b/N1/2.bin
@@ -0,0 +1,129 @@
+<html><body><p>
+<pre>
+Hi,&#32;Angelo:
+
+On&#32;Mon,&#32;2025-01-13&#32;at&#32;15:52&#32;+0100,&#32;AngeloGioacchino&#32;Del&#32;Regno&#32;wrote:
+&gt;&#32;External&#32;email&#32;:&#32;Please&#32;do&#32;not&#32;click&#32;links&#32;or&#32;open&#32;attachments&#32;until&#32;you&#32;have&#32;verified&#32;the&#32;sender&#32;or&#32;the&#32;content.
+&gt;&#32;
+&gt;&#32;
+&gt;&#32;Change&#32;error&#32;prints&#32;to&#32;use&#32;dev_err_probe()&#32;instead&#32;of&#32;dev_err()
+&gt;&#32;where&#32;possible&#32;in&#32;function&#32;mtk_hdmi_dt_parse_pdata(),&#32;used&#32;only
+&gt;&#32;during&#32;device&#32;probe.
+&gt;&#32;While&#32;at&#32;it,&#32;also&#32;beautify&#32;some&#32;prints.
+
+I&#32;think&#32;you&#32;have&#32;do&#32;two&#32;things.
+The&#32;first&#32;one&#32;is&#32;&quot;Use&#32;dev_err_probe()&#32;in&#32;mtk_hdmi_dt_parse_pdata()&quot;&#32;as&#32;the&#32;title&#32;says.
+The&#32;second&#32;one&#32;is&#32;&quot;beautify&#32;some&#32;prints&quot;.
+
+The&#32;title&#32;does&#32;not&#32;mention&#32;the&#32;second&#32;one,&#32;so&#32;I&#32;think&#32;the&#32;second&#32;one&#32;is&#32;not&#32;related&#32;to&#32;this&#32;patch.
+You&#32;think&#32;some&#32;refinement&#32;is&#32;not&#32;worth&#32;to&#32;be&#32;a&#32;patch.
+If&#32;it&#39;s&#32;not&#32;worth,&#32;maybe&#32;we&#32;should&#32;keep&#32;them&#32;as&#32;they&#32;are.
+Or&#32;you&#32;could&#32;collect&#32;all&#32;refinement&#32;into&#32;one&#32;refinement&#32;patch,&#32;and&#32;this&#32;would&#32;looks&#32;worth.
+
+Regards,
+CK
+
+&gt;&#32;
+&gt;&#32;Signed-off-by:&#32;AngeloGioacchino&#32;Del&#32;Regno&#32;&lt;angelogioacchino.delregno@collabora.com&gt;
+&gt;&#32;---
+&gt;&#32;&#32;drivers/gpu/drm/mediatek/mtk_hdmi.c&#32;|&#32;34&#32;++++++++++-------------------
+&gt;&#32;&#32;1&#32;file&#32;changed,&#32;11&#32;insertions(+),&#32;23&#32;deletions(-)
+&gt;&#32;
+&gt;&#32;diff&#32;--git&#32;a/drivers/gpu/drm/mediatek/mtk_hdmi.c&#32;b/drivers/gpu/drm/mediatek/mtk_hdmi.c
+&gt;&#32;index&#32;65e9629b6b77..48c37294dcbb&#32;100644
+&gt;&#32;---&#32;a/drivers/gpu/drm/mediatek/mtk_hdmi.c
+&gt;&#32;+++&#32;b/drivers/gpu/drm/mediatek/mtk_hdmi.c
+&gt;&#32;@@&#32;-1372,30&#32;+1372,23&#32;@@&#32;static&#32;int&#32;mtk_hdmi_dt_parse_pdata(struct&#32;mtk_hdmi&#32;*hdmi,
+&gt;&#32;&#32;{
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device&#32;*dev&#32;=&#32;&amp;pdev-&gt;dev;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device_node&#32;*np&#32;=&#32;dev-&gt;of_node;
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device_node&#32;*cec_np,&#32;*remote,&#32;*i2c_np;
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device_node&#32;*remote,&#32;*i2c_np;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;platform_device&#32;*cec_pdev;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;regmap&#32;*regmap;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;int&#32;ret;
+&gt;&#32;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;mtk_hdmi_get_all_clk(hdmi,&#32;np);
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret)&#32;{
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret&#32;!=&#32;-EPROBE_DEFER)
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;get&#32;clocks:&#32;%d&#92;n&quot;,&#32;ret);
+&gt;&#32;-
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;ret;
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;}
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret)
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;dev_err_probe(dev,&#32;ret,&#32;&quot;Failed&#32;to&#32;get&#32;clocks&#92;n&quot;);
+&gt;&#32;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;/*&#32;The&#32;CEC&#32;module&#32;handles&#32;HDMI&#32;hotplug&#32;detection&#32;*/
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;cec_np&#32;=&#32;of_get_compatible_child(np-&gt;parent,&#32;&quot;mediatek,mt8173-cec&quot;);
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!cec_np)&#32;{
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;find&#32;CEC&#32;node&#92;n&quot;);
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;-EINVAL;
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;}
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!cec_np)
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;dev_err_probe(dev,&#32;-EINVAL,&#32;&quot;Failed&#32;to&#32;find&#32;CEC&#32;node&#92;n&quot;);
+&gt;&#32;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;cec_pdev&#32;=&#32;of_find_device_by_node(cec_np);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!cec_pdev)&#32;{
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(hdmi-&gt;dev,&#32;&quot;Waiting&#32;for&#32;CEC&#32;device&#32;%pOF&#92;n&quot;,
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;cec_np);
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(hdmi-&gt;dev,&#32;&quot;Waiting&#32;for&#32;CEC&#32;device&#32;%pOF&#92;n&quot;,&#32;cec_np);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(cec_np);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;-EPROBE_DEFER;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}
+&gt;&#32;@@&#32;-1413,9&#32;+1406,8&#32;@@&#32;static&#32;int&#32;mtk_hdmi_dt_parse_pdata(struct&#32;mtk_hdmi&#32;*hdmi,
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(IS_ERR(regmap))
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;PTR_ERR(regmap);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret)&#32;{
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&quot;Failed&#32;to&#32;get&#32;system&#32;configuration&#32;registers:&#32;%d&#92;n&quot;,
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret);
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err_probe(dev,&#32;ret,
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&quot;Failed&#32;to&#32;get&#32;system&#32;configuration&#32;registers&#92;n&quot;);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;goto&#32;put_device;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;hdmi-&gt;sys_regmap&#32;=&#32;regmap;
+&gt;&#32;@@&#32;-1443,20&#32;+1435,16&#32;@@&#32;static&#32;int&#32;mtk_hdmi_dt_parse_pdata(struct&#32;mtk_hdmi&#32;*hdmi,
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}
+&gt;&#32;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;i2c_np&#32;=&#32;of_parse_phandle(remote,&#32;&quot;ddc-i2c-bus&quot;,&#32;0);
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(remote);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!i2c_np)&#32;{
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;find&#32;ddc-i2c-bus&#32;node&#32;in&#32;%pOF&#92;n&quot;,
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;remote);
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(remote);
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;-EINVAL;
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;dev_err_probe(dev,&#32;-EINVAL,&#32;&quot;No&#32;ddc-i2c-bus&#32;in&#32;connector&#92;n&quot;);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;goto&#32;put_device;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(remote);
+&gt;&#32;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;hdmi-&gt;ddc_adpt&#32;=&#32;of_find_i2c_adapter_by_node(i2c_np);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(i2c_np);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!hdmi-&gt;ddc_adpt)&#32;{
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;get&#32;ddc&#32;i2c&#32;adapter&#32;by&#32;node&#92;n&quot;);
+&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;-EINVAL;
+&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;dev_err_probe(dev,&#32;-EINVAL,&#32;&quot;Failed&#32;to&#32;get&#32;ddc&#32;i2c&#32;adapter&#32;by&#32;node&#92;n&quot;);
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;goto&#32;put_device;
+&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}
+&gt;&#32;
+&gt;&#32;--
+&gt;&#32;2.47.0
+&gt;&#32;
+
+
+</pre>
+</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice
+ ********************
+The information contained in this e-mail message (including any 
+attachments) may be confidential, proprietary, privileged, or otherwise
+exempt from disclosure under applicable laws. It is intended to be 
+conveyed only to the designated recipient(s). Any use, dissemination, 
+distribution, printing, retaining or copying of this e-mail (including its 
+attachments) by unintended recipient(s) is strictly prohibited and may 
+be unlawful. If you are not an intended recipient of this e-mail, or believe
+ 
+that you have received this e-mail in error, please notify the sender 
+immediately (by replying to this e-mail), delete any and all copies of 
+this e-mail (including any attachments) from your system, and do not
+disclose the content of this e-mail to any other person. Thank you!
+</pre><!--}-->
diff --git a/N1/2.hdr b/N1/2.hdr
new file mode 100644
index 0000000..da1f671
--- /dev/null
+++ b/N1/2.hdr
@@ -0,0 +1,3 @@
+Content-Type: text/html;
+	charset="utf-8"
+Content-Transfer-Encoding: base64
diff --git a/a/content_digest b/N1/content_digest
index 69157ef..943bd3c 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -29,7 +29,7 @@
   matthias.bgg@gmail.com <matthias.bgg@gmail.com>
  " Jason-JH Lin (\346\236\227\347\235\277\347\245\245) <Jason-JH.Lin@mediatek.com>"
  " junzhi.zhao@mediatek.com <junzhi.zhao@mediatek.com>\0"
- "\00:1\0"
+ "\01:1\0"
  "b\0"
  "Hi, Angelo:\n"
  "\n"
@@ -140,5 +140,136 @@
  "> --\n"
  "> 2.47.0\n"
  >
+ "\01:2\0"
+ "b\0"
+ "<html><body><p>\r\n"
+ "<pre>\r\n"
+ "Hi,&#32;Angelo:\r\n"
+ "\r\n"
+ "On&#32;Mon,&#32;2025-01-13&#32;at&#32;15:52&#32;+0100,&#32;AngeloGioacchino&#32;Del&#32;Regno&#32;wrote:\r\n"
+ "&gt;&#32;External&#32;email&#32;:&#32;Please&#32;do&#32;not&#32;click&#32;links&#32;or&#32;open&#32;attachments&#32;until&#32;you&#32;have&#32;verified&#32;the&#32;sender&#32;or&#32;the&#32;content.\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;Change&#32;error&#32;prints&#32;to&#32;use&#32;dev_err_probe()&#32;instead&#32;of&#32;dev_err()\r\n"
+ "&gt;&#32;where&#32;possible&#32;in&#32;function&#32;mtk_hdmi_dt_parse_pdata(),&#32;used&#32;only\r\n"
+ "&gt;&#32;during&#32;device&#32;probe.\r\n"
+ "&gt;&#32;While&#32;at&#32;it,&#32;also&#32;beautify&#32;some&#32;prints.\r\n"
+ "\r\n"
+ "I&#32;think&#32;you&#32;have&#32;do&#32;two&#32;things.\r\n"
+ "The&#32;first&#32;one&#32;is&#32;&quot;Use&#32;dev_err_probe()&#32;in&#32;mtk_hdmi_dt_parse_pdata()&quot;&#32;as&#32;the&#32;title&#32;says.\r\n"
+ "The&#32;second&#32;one&#32;is&#32;&quot;beautify&#32;some&#32;prints&quot;.\r\n"
+ "\r\n"
+ "The&#32;title&#32;does&#32;not&#32;mention&#32;the&#32;second&#32;one,&#32;so&#32;I&#32;think&#32;the&#32;second&#32;one&#32;is&#32;not&#32;related&#32;to&#32;this&#32;patch.\r\n"
+ "You&#32;think&#32;some&#32;refinement&#32;is&#32;not&#32;worth&#32;to&#32;be&#32;a&#32;patch.\r\n"
+ "If&#32;it&#39;s&#32;not&#32;worth,&#32;maybe&#32;we&#32;should&#32;keep&#32;them&#32;as&#32;they&#32;are.\r\n"
+ "Or&#32;you&#32;could&#32;collect&#32;all&#32;refinement&#32;into&#32;one&#32;refinement&#32;patch,&#32;and&#32;this&#32;would&#32;looks&#32;worth.\r\n"
+ "\r\n"
+ "Regards,\r\n"
+ "CK\r\n"
+ "\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;Signed-off-by:&#32;AngeloGioacchino&#32;Del&#32;Regno&#32;&lt;angelogioacchino.delregno@collabora.com&gt;\r\n"
+ "&gt;&#32;---\r\n"
+ "&gt;&#32;&#32;drivers/gpu/drm/mediatek/mtk_hdmi.c&#32;|&#32;34&#32;++++++++++-------------------\r\n"
+ "&gt;&#32;&#32;1&#32;file&#32;changed,&#32;11&#32;insertions(+),&#32;23&#32;deletions(-)\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;diff&#32;--git&#32;a/drivers/gpu/drm/mediatek/mtk_hdmi.c&#32;b/drivers/gpu/drm/mediatek/mtk_hdmi.c\r\n"
+ "&gt;&#32;index&#32;65e9629b6b77..48c37294dcbb&#32;100644\r\n"
+ "&gt;&#32;---&#32;a/drivers/gpu/drm/mediatek/mtk_hdmi.c\r\n"
+ "&gt;&#32;+++&#32;b/drivers/gpu/drm/mediatek/mtk_hdmi.c\r\n"
+ "&gt;&#32;@@&#32;-1372,30&#32;+1372,23&#32;@@&#32;static&#32;int&#32;mtk_hdmi_dt_parse_pdata(struct&#32;mtk_hdmi&#32;*hdmi,\r\n"
+ "&gt;&#32;&#32;{\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device&#32;*dev&#32;=&#32;&amp;pdev-&gt;dev;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device_node&#32;*np&#32;=&#32;dev-&gt;of_node;\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device_node&#32;*cec_np,&#32;*remote,&#32;*i2c_np;\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;device_node&#32;*remote,&#32;*i2c_np;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;platform_device&#32;*cec_pdev;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;struct&#32;regmap&#32;*regmap;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;int&#32;ret;\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;mtk_hdmi_get_all_clk(hdmi,&#32;np);\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret)&#32;{\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret&#32;!=&#32;-EPROBE_DEFER)\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;get&#32;clocks:&#32;%d&#92;n&quot;,&#32;ret);\r\n"
+ "&gt;&#32;-\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;ret;\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;}\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret)\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;dev_err_probe(dev,&#32;ret,&#32;&quot;Failed&#32;to&#32;get&#32;clocks&#92;n&quot;);\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;/*&#32;The&#32;CEC&#32;module&#32;handles&#32;HDMI&#32;hotplug&#32;detection&#32;*/\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;cec_np&#32;=&#32;of_get_compatible_child(np-&gt;parent,&#32;&quot;mediatek,mt8173-cec&quot;);\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!cec_np)&#32;{\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;find&#32;CEC&#32;node&#92;n&quot;);\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;-EINVAL;\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;}\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!cec_np)\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;dev_err_probe(dev,&#32;-EINVAL,&#32;&quot;Failed&#32;to&#32;find&#32;CEC&#32;node&#92;n&quot;);\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;cec_pdev&#32;=&#32;of_find_device_by_node(cec_np);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!cec_pdev)&#32;{\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(hdmi-&gt;dev,&#32;&quot;Waiting&#32;for&#32;CEC&#32;device&#32;%pOF&#92;n&quot;,\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;cec_np);\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(hdmi-&gt;dev,&#32;&quot;Waiting&#32;for&#32;CEC&#32;device&#32;%pOF&#92;n&quot;,&#32;cec_np);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(cec_np);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;return&#32;-EPROBE_DEFER;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}\r\n"
+ "&gt;&#32;@@&#32;-1413,9&#32;+1406,8&#32;@@&#32;static&#32;int&#32;mtk_hdmi_dt_parse_pdata(struct&#32;mtk_hdmi&#32;*hdmi,\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(IS_ERR(regmap))\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;PTR_ERR(regmap);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(ret)&#32;{\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&quot;Failed&#32;to&#32;get&#32;system&#32;configuration&#32;registers:&#32;%d&#92;n&quot;,\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret);\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err_probe(dev,&#32;ret,\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&quot;Failed&#32;to&#32;get&#32;system&#32;configuration&#32;registers&#92;n&quot;);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;goto&#32;put_device;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;hdmi-&gt;sys_regmap&#32;=&#32;regmap;\r\n"
+ "&gt;&#32;@@&#32;-1443,20&#32;+1435,16&#32;@@&#32;static&#32;int&#32;mtk_hdmi_dt_parse_pdata(struct&#32;mtk_hdmi&#32;*hdmi,\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;i2c_np&#32;=&#32;of_parse_phandle(remote,&#32;&quot;ddc-i2c-bus&quot;,&#32;0);\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(remote);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!i2c_np)&#32;{\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;find&#32;ddc-i2c-bus&#32;node&#32;in&#32;%pOF&#92;n&quot;,\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;remote);\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(remote);\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;-EINVAL;\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;dev_err_probe(dev,&#32;-EINVAL,&#32;&quot;No&#32;ddc-i2c-bus&#32;in&#32;connector&#92;n&quot;);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;goto&#32;put_device;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(remote);\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;hdmi-&gt;ddc_adpt&#32;=&#32;of_find_i2c_adapter_by_node(i2c_np);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;of_node_put(i2c_np);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;if&#32;(!hdmi-&gt;ddc_adpt)&#32;{\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dev_err(dev,&#32;&quot;Failed&#32;to&#32;get&#32;ddc&#32;i2c&#32;adapter&#32;by&#32;node&#92;n&quot;);\r\n"
+ "&gt;&#32;-&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;-EINVAL;\r\n"
+ "&gt;&#32;+&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;ret&#32;=&#32;dev_err_probe(dev,&#32;-EINVAL,&#32;&quot;Failed&#32;to&#32;get&#32;ddc&#32;i2c&#32;adapter&#32;by&#32;node&#92;n&quot;);\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;goto&#32;put_device;\r\n"
+ "&gt;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;--\r\n"
+ "&gt;&#32;2.47.0\r\n"
+ "&gt;&#32;\r\n"
+ "\r\n"
+ "\r\n"
+ "</pre>\r\n"
+ "</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice\r\n"
+ " ********************\r\n"
+ "The information contained in this e-mail message (including any \r\n"
+ "attachments) may be confidential, proprietary, privileged, or otherwise\r\n"
+ "exempt from disclosure under applicable laws. It is intended to be \r\n"
+ "conveyed only to the designated recipient(s). Any use, dissemination, \r\n"
+ "distribution, printing, retaining or copying of this e-mail (including its \r\n"
+ "attachments) by unintended recipient(s) is strictly prohibited and may \r\n"
+ "be unlawful. If you are not an intended recipient of this e-mail, or believe\r\n"
+ " \r\n"
+ "that you have received this e-mail in error, please notify the sender \r\n"
+ "immediately (by replying to this e-mail), delete any and all copies of \r\n"
+ "this e-mail (including any attachments) from your system, and do not\r\n"
+ "disclose the content of this e-mail to any other person. Thank you!\r\n"
+ </pre><!--}-->
 
-afcf681eb93a1a504acee40df4b1cc67c98ffc568b965a26afdad413f87aa225
+9b335d05940aa574d2c69d96c134f53224e97c7eafb7929077de629c9648f5d7

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.