From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shards.monkeyblade.net ([184.105.139.130]:51146 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbeBVTrP (ORCPT ); Thu, 22 Feb 2018 14:47:15 -0500 Date: Thu, 22 Feb 2018 14:47:13 -0500 (EST) Message-Id: <20180222.144713.584546965167257632.davem@davemloft.net> To: andrew@lunn.ch Cc: netdev@vger.kernel.org, vivien.didelot@savoirfairelinux.com, rmk+kernel@arm.linux.org.uk Subject: Re: [PATCH v2 net-next] net: dsa: mv88e6xxx: scratch registers and external MDIO pins From: David Miller In-Reply-To: <1519260709-14490-1-git-send-email-andrew@lunn.ch> References: <1519260709-14490-1-git-send-email-andrew@lunn.ch> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: From: Andrew Lunn Date: Thu, 22 Feb 2018 01:51:49 +0100 > MV88E6352 and later switches support GPIO control through the "Scratch > & Misc" global2 register. Two of the pins controlled this way on the > mv88e6390 family are the external MDIO pins. They can either by used > as part of the MII interface for port 0, GPIOs, or MDIO. Add a > function to configure them for MDIO, if possible, and call it when > registering the external MDIO bus. > > Suggested-by: Russell King > Signed-off-by: Andrew Lunn > --- > v2: Make stub function static inline, as reported by 0-day. Applied, thanks Andrew.