<div dir="ltr"><div>hi all,<br></div>I think i found the solution. It was because of the device tree property &quot;phy-connection-type = &quot;rgmii-id&quot;;&quot;. By default for all ports the connection type was &quot;rgmii-id&quot; and we are also using &quot;rgmii&quot; phy type. So I changed it to &quot;rgmii&quot; only and now all ports are working..<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 9, 2014 at 2:40 PM, Ashish Khetan <span dir="ltr">&lt;<a href="mailto:curieux.khetan@gmail.com" target="_blank">curieux.khetan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>I Have MPC8641D-HPCN based custom designed board and After some changes the Linux 3.14 is now booting on my board. we are using same phy device ie vitesse vsc8244. The Difference between my board and the original board is in only PHY interrupt ie<br>

<br>Our custom Designed Board               MPC8641D-HPCN original board<br>eTSEC0(mac)----&gt; phy0 ---- irq0               eTSEC0(mac)----&gt; phy0 ---- irq10<br>eTSEC1(mac)----&gt; phy1 ---- irq1               eTSEC1(mac)----&gt; phy1 ---- irq10<br>

eTSEC2(mac)----&gt; phy2 ---- irq2               eTSEC2(mac)----&gt; phy2 ---- irq10<br>eTSEC3(mac)----&gt; phy3 ---- irq3               eTSEC3(mac)----&gt; phy3 ---- irq10<br><br></div>After Booting Linux the first Ethernet device is only eTSEC0 is working means at booting time it detects all 4 ports and initialize all ports. The following IP addresses are assigned to each port:<br>

<br></div><div>interface    Board IP                       Host IP<br></div>eth0   ----   192.168.10.2               192.168.10.1<br>eth1   ----   192.168.20.2               192.168.20.1<br>eth2   ----   192.168.30.2               192.168.30.1<br>

</div>eth3   ----   192.168.40.2               192.168.40.1<br><br></div>when i Tried to ping from board to host (ie ping 192.168.10.1) through eth0 its pinging. but when i tried to ping from other ports ie eth1, eth2 &amp; eth3 its not pinging and prints &quot;destination host not reachable&quot;. Also I tried to ping from pc(ie host) to board same result was printing.<br>

<br></div><div>Then I started debugging, I put a printk function inside Gianfar.c file and gfar_clean_rx_ring() for printing packet sequence and packet size. I started pinging each port from pc (ie host) and its printing on each reception as:<br>

For eth0<br>[   94.966113] Packet 1 size 60 <br>
[   95.965588] Packet 2 size 120 <br>
[   97.980729] Packet 3 size 180 <br>
[   98.980705] Packet 4 size 240 <br>
[   99.998872] Packet 5 size 300 <br>
<br>and same for other interfaces too.<br><br>Here is the device tree snap-shot for ethernet which I am using with this kernel (hope may be helpful):<br><br>enet0: ethernet@24000 {<br>                        #address-cells = &lt;1&gt;;<br>

                        #size-cells = &lt;1&gt;;<br>                        cell-index = &lt;0&gt;;<br>                        device_type = &quot;network&quot;;<br>                        model = &quot;TSEC&quot;;<br>                        compatible = &quot;gianfar&quot;;<br>

                        reg = &lt;0x24000 0x1000&gt;;<br>                        ranges = &lt;0x0 0x24000 0x1000&gt;;<br>                        local-mac-address = [ 00 00 00 00 00 00 ];<br>                        interrupts = &lt;29 2 30  2 34 2&gt;;<br>

                        interrupt-parent = &lt;&amp;mpic&gt;;<br>                        tbi-handle = &lt;&amp;tbi0&gt;;<br>                        phy-handle = &lt;&amp;phy0&gt;;<br>                        phy-connection-type = &quot;rgmii-id&quot;;<br>

<br>                        mdio@520 {<br>                                #address-cells = &lt;1&gt;;<br>                                #size-cells = &lt;0&gt;;<br>                                compatible = &quot;fsl,gianfar-mdio&quot;;<br>

                                reg = &lt;0x520 0x20&gt;;<br><br>                                phy0: ethernet-phy@0 {<br>                                        interrupt-parent = &lt;&amp;mpic&gt;;<br>                                        interrupts = &lt;0 1&gt;;<br>

                                        reg = &lt;0&gt;;<br>                                        device_type = &quot;ethernet-phy&quot;;<br>                                };<br>                                phy1: ethernet-phy@1 {<br>

                                        interrupt-parent = &lt;&amp;mpic&gt;;<br>                                        interrupts = &lt;1 1&gt;;<br>                                        reg = &lt;1&gt;;<br>                                        device_type = &quot;ethernet-phy&quot;;<br>

                                };<br>                                phy2: ethernet-phy@2 {<br>                                        interrupt-parent = &lt;&amp;mpic&gt;;<br>                                        interrupts = &lt;2 1&gt;;<br>

                                        reg = &lt;2&gt;;<br>                                        device_type = &quot;ethernet-phy&quot;;<br>                                };<br>                                phy3: ethernet-phy@3 {<br>

                                        interrupt-parent = &lt;&amp;mpic&gt;;<br>                                        interrupts = &lt;3 1&gt;;<br>                                        reg = &lt;3&gt;;<br>                                        device_type = &quot;ethernet-phy&quot;;<br>

                                };<br>                                tbi0: tbi-phy@11 {<br>                                        reg = &lt;0x11&gt;;<br>                                        device_type = &quot;tbi-phy&quot;;<br>

                                };<br>                        };<br>                };<br>                enet1: ethernet@25000 {<br>                        #address-cells = &lt;1&gt;;<br>                        #size-cells = &lt;1&gt;;<br>

                        cell-index = &lt;1&gt;;<br>                        device_type = &quot;network&quot;;<br>                        model = &quot;TSEC&quot;;<br>                        compatible = &quot;gianfar&quot;;<br>

                        reg = &lt;0x25000 0x1000&gt;;<br>                        ranges = &lt;0x0 0x25000 0x1000&gt;;<br>                        local-mac-address = [ 00 00 00 00 00 00 ];<br>                        interrupts = &lt;35 2 36 2 40 2&gt;;<br>

                        interrupt-parent = &lt;&amp;mpic&gt;;<br>                        tbi-handle = &lt;&amp;tbi1&gt;;<br>                        phy-handle = &lt;&amp;phy1&gt;;<br>                        phy-connection-type = &quot;rgmii-id&quot;;<br>

<br>                        mdio@520 {<br>                                #address-cells = &lt;1&gt;;<br>                                #size-cells = &lt;0&gt;;<br>                                compatible = &quot;fsl,gianfar-tbi&quot;;<br>

                                reg = &lt;0x520 0x20&gt;;<br><br>                                tbi1: tbi-phy@11 {<br>                                        reg = &lt;0x11&gt;;<br>                                        device_type = &quot;tbi-phy&quot;;<br>

                                };<br>                        };<br>                };<br><br><br>Is this happening because of phy interrupt or something else?  Please through some light on this. how to make it working? how to disable phy interrupt? Does phy interrupt matters for gianfar interrupt or polling mode?<br>

<br></div><div>Please give some pointer/anything to help more understanding of ethernet driver. <br></div><div><br></div><div>Thanks And Regards<br></div><div><br>A$hi$h<br></div></div>
</blockquote></div><br></div>