From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: [PATCH net-next 0/5] PHYLINK preparatory patches for DSA Date: Thu, 30 Nov 2017 11:57:39 -0800 Message-ID: <20171130195744.17743-1-f.fainelli@gmail.com> Cc: davem@davemloft.net, andrew@lunn.ch, rmk+kernel@armlinux.org.uk, vivien.didelot@savoirfairelinux.com, Florian Fainelli To: netdev@vger.kernel.org Return-path: Received: from mail-qk0-f193.google.com ([209.85.220.193]:43519 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706AbdK3T5t (ORCPT ); Thu, 30 Nov 2017 14:57:49 -0500 Received: by mail-qk0-f193.google.com with SMTP id j207so10385875qke.10 for ; Thu, 30 Nov 2017 11:57:49 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: Hi all, In preparation for having DSA migrate to PHYLINK, I had to come up with a number of preparatory patches: - we need to be able to pass phy_flags from an external component calling phylink_of_phy_connect() - DSA tries to connect through OF first, then fallsback using its own internal MDIO bus, in that case we would both show an error, but also not know what the correct phy_interface_t would be, instead use the PHY device/driver provided one - Finally bcm_sf2 makes use of all possible PHYs out there: internal, external, fixed, and MoCA, the latter requires a bit of help to signal link notifications through a MMIO interrupt, as well a report a correct PORT type Florian Fainelli (5): net: phy: phylink: Allow specifying PHY device flags net: phy: phylink: Use PHY device interface if N/A net: phy: phylink: Demote error message to debug net: phy: phylink: Allow setting a custom link state callback net: phy: phylink: Report MoCA as PORT_BNC drivers/net/phy/phylink.c | 45 +++++++++++++++++++++++++++++++++++++++------ include/linux/phylink.h | 5 ++++- 2 files changed, 43 insertions(+), 7 deletions(-) -- 2.14.3