Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755337AbdLOKKd (ORCPT ); Fri, 15 Dec 2017 05:10:33 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:33792 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbdLOKK3 (ORCPT ); Fri, 15 Dec 2017 05:10:29 -0500 Date: Fri, 15 Dec 2017 11:10:14 +0100 From: Andrew Lunn To: Sean Wang Cc: sergei.shtylyov@cogentembedded.com, f.fainelli@gmail.com, vivien.didelot@savoirfairelinux.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, richard.leitner@skidata.com, geert+renesas@glider.be Subject: Re: [net-next] phylib: Add device reset GPIO support causes DSA MT7530 acquires reset-gpios fails Message-ID: <20171215101014.GB4213@lunn.ch> References: <1513320903.28444.65.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1513320903.28444.65.camel@mtkswgap22> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 846 Lines: 24 On Fri, Dec 15, 2017 at 02:55:03PM +0800, Sean Wang wrote: > Hi Sergei, > > Recently I found the patch commit bafbdd527d56 (phylib: Add device reset > GPIO support) would have the impact on MT7530 driver. Which causes the > DSA MT7530 device (it's the child node under mdio bus) gets the > reset-gpios fails because the same GPIO seems already be held in the > earlier mdiobus_register_device call patched through the commit. > > do you have any idea how the commits also considers DSA case ? > > I guessed the DSA lan9303, mv88e8 switch should have the same issue > since they have the same GPIO name as mdiobus_register_device required. Hi Sean Ah, not good :-( I _think_ for the mv88e6xxx, we can remove the gpio reset code from the driver, and let the mdio core do it. I need to test to be sure. Would that work for you? Andrew