From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757049AbbJ2OKW (ORCPT ); Thu, 29 Oct 2015 10:10:22 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36606 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751536AbbJ2OKT (ORCPT ); Thu, 29 Oct 2015 10:10:19 -0400 Subject: Re: [PATCH v2 1/6] net: dsa: Use delayed work instead of timer+work for polling To: Andrew Lunn References: <56321DA1.4060304@baylibre.com> <20151029135156.GQ2307@lunn.ch> Cc: "David S. Miller" , Florian Fainelli , Guenter Roeck , vivien.didelot@savoirfairelinux.com, Fabian Frederick , Pavel Nakonechny , Joe Perches , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Frode Isaksen From: Neil Armstrong Organization: Baylibre Message-ID: <563228C3.6010501@baylibre.com> Date: Thu, 29 Oct 2015 15:10:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151029135156.GQ2307@lunn.ch> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/29/2015 02:51 PM, Andrew Lunn wrote: > On Thu, Oct 29, 2015 at 02:22:41PM +0100, Neil Armstrong wrote: > Hi Neil, Frode > > I assume you have see: > > http://permalink.gmane.org/gmane.linux.network/380777 > > which is now in net-next. > > The only driver making use of poll_link is mv88e6060.c. The argument > from removing it from the other mv88e6xxx drivers is that it is not > needed. The phylib will be polling the phys and looking for state > changes. mv88e6060.c implements phy_read() and phy_write() so it > should also allow the use of phylib. > > Could you try 6060 without .poll_link. If that works, we should be > able to remove all this code, rather than fix it up. > > Andrew > Hi Andrew, Thanks for the hint, I will test this, but while reviewing the datasheet, the port 5 has no PHY, so must only be used as cpu port. I also have another patchset which fixes 2 setup registers writes and adds a shiny new mv88e6060.h based on mv88e6xxx.h. I think the removal of the poll_link in mv88e6060 should be in this patchset. Neil