Re: C45 support and mdiobus_scan

2018-08-10 Thread Andrew Lunn
On Fri, Aug 10, 2018 at 10:20:56AM -0500, Tom Lendacky wrote: > On 8/9/2018 10:25 AM, Andrew Lunn wrote: > >>> The PCIe core will look in the device tree and when it creates the > >>> platform device for the i210 on the pcie bus, it points > >>> pdev->dev.of_node at this node. So long as you are us

Re: C45 support and mdiobus_scan

2018-08-10 Thread Tom Lendacky
On 8/9/2018 10:25 AM, Andrew Lunn wrote: >>> The PCIe core will look in the device tree and when it creates the >>> platform device for the i210 on the pcie bus, it points >>> pdev->dev.of_node at this node. So long as you are using a platform >>> with DT, you can do this. I hope you are not using

Re: C45 support and mdiobus_scan

2018-08-09 Thread Andrew Lunn
> > The PCIe core will look in the device tree and when it creates the > > platform device for the i210 on the pcie bus, it points > > pdev->dev.of_node at this node. So long as you are using a platform > > with DT, you can do this. I hope you are not using x86.. > > Yes I am :( Any possible solut

Re: C45 support and mdiobus_scan

2018-08-09 Thread Jose Abreu
Hi Andrew, Thanks for your answer :) On 09-08-2018 16:03, Andrew Lunn wrote: > On Thu, Aug 09, 2018 at 02:54:11PM +0100, Jose Abreu wrote: >> Hi All, >> >> I'm preparing to add support for 10G in stmmac and I noticed that >> Generic 10G PHY needs C45 support. Digging through the >> registration c

Re: C45 support and mdiobus_scan

2018-08-09 Thread Andrew Lunn
On Thu, Aug 09, 2018 at 02:54:11PM +0100, Jose Abreu wrote: > Hi All, > > I'm preparing to add support for 10G in stmmac and I noticed that > Generic 10G PHY needs C45 support. Digging through the > registration callbacks for phy that are used in stmmac I reached > to mdiobus_scan() and the follow

C45 support and mdiobus_scan

2018-08-09 Thread Jose Abreu
Hi All, I'm preparing to add support for 10G in stmmac and I noticed that Generic 10G PHY needs C45 support. Digging through the registration callbacks for phy that are used in stmmac I reached to mdiobus_scan() and the following call: phydev = get_phy_device(bus, addr, false); The last paramete