<?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>topic Re: Marvell10g driver missing MODULE_INIT &amp;amp; MODULE_EXIT in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1666741#M12643</link>
    <description>&lt;P&gt;Please refer to the following update from the AE team.&lt;/P&gt;
&lt;P&gt;Firstly, in my opinion, no limitation that the driver must use those two Micro 'MODULE_INIT &amp;amp; MODULE_EXIT' in source code. What's more, please make sure that, using correct serdes configuration, Kernel configuration and right device tree setting.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 07:44:02 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2023-06-09T07:44:02Z</dc:date>
    <item>
      <title>Marvell10g driver missing MODULE_INIT &amp; MODULE_EXIT</title>
      <link>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1655910#M12535</link>
      <description>&lt;P&gt;In an attempt to see if a driver is loading, we added a printk() to the probe and _init functions.&amp;nbsp; The text will not display.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed the driver is missing the MODULE_INIT and MODULE_EXIT macros that drivers usually have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is this driver executing if it is missing these macros? I recompiled it as a kernel Loadable module (.ko). When I do an &lt;STRONG&gt;insmod marvell10g.ko&lt;/STRONG&gt; there is no output to the console.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the marvell10g.c file located in the kernel tree under drivers/net/phy&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is there a fix or workaround or is this driver properly using the probe and init properly?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 16:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1655910#M12535</guid>
      <dc:creator>gfine1</dc:creator>
      <dc:date>2023-05-23T16:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Marvell10g driver missing MODULE_INIT &amp; MODULE_EXIT</title>
      <link>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1666741#M12643</link>
      <description>&lt;P&gt;Please refer to the following update from the AE team.&lt;/P&gt;
&lt;P&gt;Firstly, in my opinion, no limitation that the driver must use those two Micro 'MODULE_INIT &amp;amp; MODULE_EXIT' in source code. What's more, please make sure that, using correct serdes configuration, Kernel configuration and right device tree setting.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 07:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1666741#M12643</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-06-09T07:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Marvell10g driver missing MODULE_INIT &amp; MODULE_EXIT</title>
      <link>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1667560#M12650</link>
      <description>&lt;P&gt;We need to see that the driver loads and inits and that printks are displayed. Usually, Linux drivers have an entry and exit point supplied by the aforementioned macros.&amp;nbsp; If they are not needed than what are the entry and exit points? We have the Device tree setup set to our configuration, and still no sign of the DD loading.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 15:57:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1667560#M12650</guid>
      <dc:creator>gfine1</dc:creator>
      <dc:date>2023-06-12T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Marvell10g driver missing MODULE_INIT &amp; MODULE_EXIT</title>
      <link>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1669150#M12664</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Checked the marvell10g.c in kernel code, marvell driver is not a single module but loaded in module_phy_driver as below, so no need adding MODULE_INIT &amp;amp; MODULE_EXIT, two macros. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;module_phy_driver(mv3310_drivers);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another issue, text did not displayed in printk(). Please make sure you do right modification of device tree refer to this structure defined in marvell10g.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static struct phy_driver mv3310_drivers[] = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .phy_id = MARVELL_PHY_ID_88X3310,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .phy_id_mask = MARVELL_PHY_ID_MASK,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .match_phy_device = mv3310_match_phy_device,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .name = "mv88x3310",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .driver_data = &amp;amp;mv3310_type,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .get_features = mv3310_get_features,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .config_init = mv3310_config_init,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .probe = mv3310_probe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also please compared with the aquantia PHY code in kernel. What's more, please share your change in device tree, we can check it on my side.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 09:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Marvell10g-driver-missing-MODULE-INIT-amp-MODULE-EXIT/m-p/1669150#M12664</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-06-14T09:22:04Z</dc:date>
    </item>
  </channel>
</rss>

