From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jose Abreu Subject: C45 support and mdiobus_scan Date: Thu, 9 Aug 2018 14:54:11 +0100 Message-ID: <3bbd1d78-b896-2a81-83cf-7dad2f73bae9@synopsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: "netdev@vger.kernel.org" Return-path: Received: from smtprelay.synopsys.com ([198.182.47.9]:43798 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730090AbeHIQTQ (ORCPT ); Thu, 9 Aug 2018 12:19:16 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5513E24E125E for ; Thu, 9 Aug 2018 06:54:16 -0700 (PDT) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id 4B00E3E19 for ; Thu, 9 Aug 2018 06:54:16 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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 parameter is "is_c45", and is always being set to false ... Does this mean that I can't use the Generic 10G PHY in stmmac? I don't mind link being fixed for 10G for now. (Notice I'm using a PCI based setup so no DT bindings can help me for this). Thanks and Best Regards, Jose Miguel Abreu