2013/11/5 Benjamin Herrenschmidt <b...@kernel.crashing.org>: > On Wed, 2013-11-06 at 12:38 +1100, Alistair Popple wrote: >> > Right, rgmii_mode_name() just has informative purposes and should be >> > removed, I would suggest using standard device tree bindings >> property >> > (phy-mode) anyway such that you could use of_get_phy_mode() and use >> > phy_interface_t types. >> >> Ok, that's what is currently done in the core IBM EMAC driver. As this >> is used >> just for informative purposes I will remove it. Thanks. > > Why ? Information is useful...
Not the way they are currently handled: + /* Check if we need to attach to a RGMII */ + if (!rgmii_valid_mode(mode)) { + dev_err(&ofdev->dev, "unsupported settings !\n"); Considering that nothing useful is being printed, that or nothing at all really looks identical to me. -- Florian _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev