Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2160688imu; Thu, 24 Jan 2019 08:10:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ZI0+d+/Q1fVoARPVbEeSqP0+QQ5Gu92v8JjmQiOXyhw9O+CmaqYEJB45tp1hjsQOQMGcv X-Received: by 2002:a63:c10f:: with SMTP id w15mr6404813pgf.199.1548346212738; Thu, 24 Jan 2019 08:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548346212; cv=none; d=google.com; s=arc-20160816; b=ahmq1Hzo8EWiqX5wyObbDqdE6TzNknFXFkzfC7yRuNOavXTlw8/eJqLK+m1+dSel54 bgMw8OnpQEqqV28bWOcY3m+qsmr5fuzMS4Rl33wvBOTA8pX47Js2nCUn8RIr8lLKwQvs 2CYp4MuXRqeHsCPdkRwDJM5LcVsyi2CQEBw2C8gwvv0qvV+jdca/pSxoCKDjRbSrcwy8 pnlNsxPnrL2wcENrU42t/c7NzsOfSU0q1Hs8fXsO/0BVb80CFDUGVGT3724Z83Ji4Wbr uOFADUSzskkVF42g799gI7xkCLjF2Jx+jBMO+lS54ZFC4J07P+8rp5z82IGpbtdToIfq 8RpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=smbXM61FfGjFLHvcfEStr1r/P8s+xNJX9bP+ir1zqHY=; b=zoMthzs+E7urLwOFfB7x9ZfDlVg5doK1tUB+rMvQvTRYtvN1a1mn2oeeKMyEbeTDI2 vQnpC258Voi6tukros91PEuKWAdRoZlgGD0BylC9NMNwOBMOLIFvUUGs7qwCI2pALHPK pcwehcm3Ii1ldghRI3tsbVCG4JoKHNBs8+3jYZwKlQVNgFUhQKm928DTDKHcfAjvsHtH U1arT+4taVn6LUY3JCV4aLZy1kAZ8BDwO/VgKdIAcL9Rm11Ioxn6GPI+RmVvVE/LPun5 xo5m9vfjKRixdlZWhurCqE8Q5ij/FD55vd+FWmYTyHURFxllwGPAAqwj49vxktD+qWHd iEjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@armlinux.org.uk header.s=pandora-2014 header.b="pJHQVQ/d"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si20370664pgv.111.2019.01.24.08.09.56; Thu, 24 Jan 2019 08:10:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@armlinux.org.uk header.s=pandora-2014 header.b="pJHQVQ/d"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728792AbfAXQHu (ORCPT + 99 others); Thu, 24 Jan 2019 11:07:50 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:42832 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728573AbfAXQHu (ORCPT ); Thu, 24 Jan 2019 11:07:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=paPYfLESwHDWr/Ps5iB2kIupjGr4ieD7j25i6QHY1Nk=; b=pJHQVQ/dFMd8rRR65Kp9+Oroc dXyCxYx8o1UW5FebmI8ACw+FJU7iM0TAySZhPWIlbL4gl4wYpgW2te2Y15myJJRQ/lOTega4WNiHb rcx1UrDUQZDwg97r76wg6p1MDnVCGf8ef6wJ/rGpBMkdFHhi1L9Vl4oxo1LHYWTDNrlRw=; Received: from e5254000004ec.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55374 helo=shell.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gmhXZ-0003de-U2; Thu, 24 Jan 2019 16:07:42 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1gmhXZ-0000wA-AI; Thu, 24 Jan 2019 16:07:41 +0000 Date: Thu, 24 Jan 2019 16:07:41 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn Cc: Thomas Bogendoerfer , antoine.tenart@bootlin.com, maxime.chevallier@bootlin.com, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: mvpp2: fix condition for setting up link interrupt Message-ID: <20190124160741.jady3r2e4dme7c4m@e5254000004ec.dyn.armlinux.org.uk> References: <20190124131803.14038-1-tbogendoerfer@suse.de> <20190124155137.GD482@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190124155137.GD482@lunn.ch> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 04:51:37PM +0100, Andrew Lunn wrote: > On Thu, Jan 24, 2019 at 02:18:03PM +0100, Thomas Bogendoerfer wrote: > > Set up link interrupt if connection is handled by phylink otherwise > > link state change detection for in-band-status doesn't work. > > Hi Thomas > > Please ensure the maintainers of the driver are at least on Cc: ... and other interested parties! > Thanks > Andrew > > > > > Fixes: 4bb043262878 ("net: mvpp2: phylink support") > > Signed-off-by: Thomas Bogendoerfer > > --- > > drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > > index 16066c2d5b3a..0fbfe1945a69 100644 > > --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > > +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > > @@ -3405,7 +3405,7 @@ static int mvpp2_open(struct net_device *dev) > > valid = true; > > } > > > > - if (priv->hw_version == MVPP22 && port->link_irq && !port->phylink) { > > + if (priv->hw_version == MVPP22 && port->link_irq && port->phylink) { > > err = request_irq(port->link_irq, mvpp2_link_status_isr, 0, > > dev->name, port); > > if (err) { This still looks fishy to me. mvpp2_link_status_isr() has handling in it that is safe to be called for non-phylink cases, so presumably the right fix is to drop the "&& !port->phylink" completely? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up