[FS#1322] DSA driver doesn't work as expected in 4.14. Fails to register mdio switches

LEDE Bugs lede-bugs at lists.infradead.org
Sun Feb 18 23:12:59 PST 2018


The following task has a new comment added:

FS#1322 - DSA driver doesn't work as expected in 4.14. Fails to register mdio switches
User who did this - Vivek (npcomplete)

----------
Looks like I fixed the problem myself. After reading the dsa2.c source code
For dsa ports I changed it from ethernet =  to link =  , then made the mdio switch part of the same tree [dsa,member = ] as srab switch [dsa,member = ]


&srab {
    compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
    status = "okay";
    dsa,member = ;

    ports {
        #address-cells = ;
        #size-cells = ;

        port at 1 {
            reg = ;
            label = "lan7";
        };

        port at 2 {
            reg = ;
            label = "lan4";
        };

        port at 3 {
            reg = ;
            label = "lan8";
        };

        port at 4 {
            reg = ;
            label = "wan";
        };

        port at 8 {        
            reg = ;
            ethernet = ;    
            label = "cpu";

            fixed-link {
                speed = ;
                full-duplex;
            };
        };

        sw0port0: port at 0 {
            reg = ;    
            label = "extswitch";
            link = ;

            fixed-link {
                speed = ;
                full-duplex;
            };
        };
    };  
};

&mdio {
    status = "okay";

        switch at 0  {
            compatible = "brcm,bcm53125";
            #address-cells = ;
            #size-cells = ;
            reset-gpios = ;
            reset-names = "robo_reset";
            reg = ;
            dsa,member = ;
        
            ports {
                #address-cells = ;
                #size-cells = ;
        
                port at 0 {
                        reg = ;
                        label = "lan1";
                };
        
                port at 1 {
                        reg = ;
                        label = "lan5";
                };
        
                port at 2 {
                        reg = ;
                        label = "lan2";
                };
        
                port at 3 {
                        reg = ;
                        label = "lan6";
                };
        
                port at 4 {
                        reg = ;
                        label = "lan3";
                };
        
                sw1port8:port at 8 {
                        reg = ;
                        link = ;    
                        label = "dsa";

                         fixed-link {
                             speed = ;
                             full-duplex;
                         };
                };
            };
        };
};




----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=1322#comment4342



More information about the lede-bugs mailing list