From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH 08/10] net: ax88796: Make reset more robust on AX88796B Date: Tue, 17 Apr 2018 15:01:06 +0200 Message-ID: <20180417130106.GG2591@lunn.ch> References: <1523916285-6057-1-git-send-email-schmitzmic@gmail.com> <1523916285-6057-9-git-send-email-schmitzmic@gmail.com> <20180416231223.GB23474@lunn.ch> <20180417013225.GA27583@lunn.ch> <58605.92.192.176.127.1523942290.webmail@webmail.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <58605.92.192.176.127.1523942290.webmail@webmail.zedat.fu-berlin.de> Sender: netdev-owner@vger.kernel.org To: Michael Karcher , Florian Fainelli Cc: Michael Schmitz , netdev@vger.kernel.org, Linux/m68k , John Paul Adrian Glaubitz , Michael Karcher List-Id: linux-m68k@vger.kernel.org On Tue, Apr 17, 2018 at 07:18:10AM +0200, Michael Karcher wrote: > [Andrew, sorry for the dup. I did hit reply-to-auhor instead of > reply-to-all first.] > > Andrew Lunn schrieb: > >> > This should really be fixed in the PHY driver, not the MAC. > >> > >> OK - do you want this separate, or as part of this series? Might have > >> a few side effects on more commonly used hardware, perhaps? > > > > Hi Michael > > > > What PHY driver is used? > The ax88796b comes with its own integrated (buggy) PHY needing this > workaround. This PHY has its own ID which is not known by Linux, so it is > using the genphy driver as fallback. > > > In the driver you can implement a .soft_reset > > function which first does the dummy write, and then uses > > genphy_soft_reset() to do the actual reset. > We could do that - but I dont't see the point in creating a PHY driver > that is only ever used by this MAC driver, just to add a single line to > the genphy driver. If the same PHY might be used with a different MAC, > you definitely would have a point there, though. Hi Michael We try to keep the core code clean, and put all workarounds for buggy hardware in drivers specific to them. It just helps keep the core code maintainable. I would prefer a driver specific to this PHY with the workaround. But lets see what Florian says. Andrew