David Daney wrote:
> Yes.  You may note in the DTS file I attached in the parent (sorry for 
> the fubar mime types), that there are two, almost identical, MDIO 
> masters.  smi0 has two directly attached PHYs.  smi1 goes to the mux, 
> and each child of the mux has four attached PHYs.

I'm till have trouble understanding all this.  I'm just hacking things up
in order to help me understand it, but it's a slow and painful process.

This call in mdio_mux_init() is failing:

        parent_bus = of_mdio_find_bus(parent_bus_node);

It returns NULL.  Here is my MDIO node:

                fman0: fman@400000 {
                        enet0: ethernet@e0000 {
                                tbi-handle = <&tbi0>;
                                phy-handle = <&phy0>;
                                phy-connection-type = "sgmii";
                        };

                        mdio0: mdio@e1120 {
                                gpios = <&gpio0 0 0
                                         &gpio0 1 0>;

                                tbi0: tbi-phy@8 {
                                        reg = <0x8>;
                                        device_type = "tbi-phy";
                                };

                                phy0: ethernet-phy@1c {
                                        reg = <0x1c>;
                                };
                        };
                };

What am I missing?  What do I need to do in order to get
of_mdio_find_bus() to return a real value?

-- 
Timur Tabi
Linux kernel developer at Freescale

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to