<?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: LSDK v2.0: Linux Ethernet Independent Mode in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227785#M7483</link>
    <description>&lt;P&gt;Is Independent Mode supported in LSDK v2.0 1703? If so, how can it be enabled?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 08:12:52 GMT</pubDate>
    <dc:creator>ckloecker</dc:creator>
    <dc:date>2021-02-08T08:12:52Z</dc:date>
    <item>
      <title>LSDK v2.0: Linux Ethernet Independent Mode</title>
      <link>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227164#M7468</link>
      <description>&lt;P&gt;We use LSDK v2.0 17.03 and 20.04 on an LS1046A based platform. We would like to enable Ethernet "Independent Mode" (IM) which is supported according to LSDKUG_Rev20.04_290520. There is also some source code pointing to IM support in the Linux kernel, e.g. drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Port/fm_port_im.c.&lt;/P&gt;&lt;P&gt;However, we do not see any way to enable this mode (e.g. via device tree). We also have no idea how to obtain the source code for the mentioned "dpaa_eth_im.ko" kernel module.&lt;/P&gt;&lt;P&gt;How can we enable the Ethernet Independent Mode in Linux and/or where can the "dpaa_eth_im.ko" source code be found?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 13:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227164#M7468</guid>
      <dc:creator>ckloecker</dc:creator>
      <dc:date>2021-02-05T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: LSDK v2.0: Linux Ethernet Independent Mode</title>
      <link>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227688#M7473</link>
      <description>&lt;P&gt;Please refer to the step by step user manual in section "8.2.5.2.8.2.3.3 Independent-Mode" in&amp;nbsp;LSDKUG_Rev20.04.pdf.&lt;/P&gt;
&lt;P&gt;Please refer to the attachment for&amp;nbsp;&lt;SPAN&gt;"dpaa_eth_im.ko" source code.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 05:38:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227688#M7473</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-02-08T05:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: LSDK v2.0: Linux Ethernet Independent Mode</title>
      <link>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227779#M7481</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Is it also compatible to LSDK 17.03?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 08:00:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227779#M7481</guid>
      <dc:creator>ckloecker</dc:creator>
      <dc:date>2021-02-08T08:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: LSDK v2.0: Linux Ethernet Independent Mode</title>
      <link>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227784#M7482</link>
      <description>&lt;P&gt;It is not compatible with SDK 2.0 1703.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 08:10:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227784#M7482</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-02-08T08:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: LSDK v2.0: Linux Ethernet Independent Mode</title>
      <link>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227785#M7483</link>
      <description>&lt;P&gt;Is Independent Mode supported in LSDK v2.0 1703? If so, how can it be enabled?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 08:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1227785#M7483</guid>
      <dc:creator>ckloecker</dc:creator>
      <dc:date>2021-02-08T08:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: LSDK v2.0: Linux Ethernet Independent Mode</title>
      <link>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1229843#M7512</link>
      <description>&lt;P&gt;The source code is not compatible to Linux kernel 5.4.3 used in LSDK 20.04. I needed the following changes for compilation:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;--- a/dpaa_eth_im.c
+++ b/dpaa_eth_im.c
@@ -753,6 +753,7 @@ static int init_phy(struct net_device *dev)
 {
     struct fm_im_private* priv = netdev_priv(dev);
     u32 supported;
+    u32 tmp_mask_legacy;
 
     priv-&amp;gt;oldlink = 0;
     priv-&amp;gt;oldspeed = 0;
@@ -774,8 +775,14 @@ static int init_phy(struct net_device *dev)
     }
 
     /* Remove any features not supported by the controller */
-    priv-&amp;gt;phydev-&amp;gt;supported &amp;amp;= supported;
-    priv-&amp;gt;phydev-&amp;gt;advertising = priv-&amp;gt;phydev-&amp;gt;supported;
+    ethtool_convert_link_mode_to_legacy_u32(&amp;amp;tmp_mask_legacy,
+                                            priv-&amp;gt;phydev-&amp;gt;supported);
+    tmp_mask_legacy &amp;amp;= supported;
+    ethtool_convert_legacy_u32_to_link_mode(priv-&amp;gt;phydev-&amp;gt;supported,
+                                            tmp_mask_legacy);
+
+    ethtool_convert_legacy_u32_to_link_mode(priv-&amp;gt;phydev-&amp;gt;advertising,
+                                            supported);
 
     return 0;
 }&lt;/LI-CODE&gt;&lt;P&gt;Haven't tested it yet.&lt;/P&gt;&lt;P&gt;Are you sure that the module is compatible with LSDK 20.04? Git metadata suggests that it was written for LSDK 19.06.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 11:56:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LSDK-v2-0-Linux-Ethernet-Independent-Mode/m-p/1229843#M7512</guid>
      <dc:creator>ckloecker</dc:creator>
      <dc:date>2021-02-11T11:56:15Z</dc:date>
    </item>
  </channel>
</rss>

