<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processorsのトピックno read function in rpmsg</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/no-read-function-in-rpmsg/m-p/1732331#M213417</link>
    <description>&lt;P&gt;I run the rpmsg example from NXP SDK .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the m4 core ,there is a "result = rpmsg_lite_send_nocopy(my_rpmsg, my_ept, remote_addr, tx_buf, len);" funtion to send msg to A53 core.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from A53 kernel file&amp;nbsp;imx_rpmsg_tty.c, there is no read rpmsg funtion.&lt;/P&gt;&lt;DIV&gt;static const struct tty_operations imxrpmsgtty_ops = {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.install = rpmsgtty_install,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.open = rpmsgtty_open,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.close = rpmsgtty_close,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.write = rpmsgtty_write,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.write_room = rpmsgtty_write_room,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;how to make A53 read rpmsg from m4 basing on imx_rpmsg_tty driver?&lt;/DIV&gt;</description>
    <pubDate>Sun, 01 Oct 2023 06:18:57 GMT</pubDate>
    <dc:creator>jingfeng</dc:creator>
    <dc:date>2023-10-01T06:18:57Z</dc:date>
    <item>
      <title>no read function in rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/no-read-function-in-rpmsg/m-p/1732331#M213417</link>
      <description>&lt;P&gt;I run the rpmsg example from NXP SDK .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the m4 core ,there is a "result = rpmsg_lite_send_nocopy(my_rpmsg, my_ept, remote_addr, tx_buf, len);" funtion to send msg to A53 core.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from A53 kernel file&amp;nbsp;imx_rpmsg_tty.c, there is no read rpmsg funtion.&lt;/P&gt;&lt;DIV&gt;static const struct tty_operations imxrpmsgtty_ops = {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.install = rpmsgtty_install,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.open = rpmsgtty_open,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.close = rpmsgtty_close,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.write = rpmsgtty_write,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.write_room = rpmsgtty_write_room,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;how to make A53 read rpmsg from m4 basing on imx_rpmsg_tty driver?&lt;/DIV&gt;</description>
      <pubDate>Sun, 01 Oct 2023 06:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/no-read-function-in-rpmsg/m-p/1732331#M213417</guid>
      <dc:creator>jingfeng</dc:creator>
      <dc:date>2023-10-01T06:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: no read function in rpmsg</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/no-read-function-in-rpmsg/m-p/1733035#M213500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60397"&gt;@jingfeng&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;there is no read() operation available in&amp;nbsp;&lt;SPAN&gt;tty_operations struct &amp;amp; polling function is not implemented in the demo driver.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A53 can read rpmsg from m4 using&amp;nbsp; .callback function&amp;nbsp;rpmsg_tty_cb.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;callback function is invoked when a message is received on the channel&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In&amp;nbsp;rpmsg_tty_cb ,&amp;nbsp;void *data variable contains the msg received from M4 SDK side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One can also refer to&amp;nbsp;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/drivers/rpmsg/imx_rpmsg_pingpong.c#L20" target="_self"&gt;imx_rpmsg_pingpong.c&lt;/A&gt; driver for reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 09:43:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/no-read-function-in-rpmsg/m-p/1733035#M213500</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-10-03T09:43:45Z</dc:date>
    </item>
  </channel>
</rss>

