Received: by 10.223.185.116 with SMTP id b49csp6576861wrg; Wed, 28 Feb 2018 11:46:40 -0800 (PST) X-Google-Smtp-Source: AH8x226OJYY9ydUbduCEQDHlUWkjyrvWIQix7sN2D89SGwYoDIbQL3m/vEP2B763tnvPGApscZJc X-Received: by 10.98.96.70 with SMTP id u67mr19062354pfb.66.1519847200456; Wed, 28 Feb 2018 11:46:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519847200; cv=none; d=google.com; s=arc-20160816; b=QyaO3Wg3xLQm+QzUErXn0QhJGhuI0/BowXWcx0E9COcuc6XqQaTORMTrkvT7zcNVSm KJTSmWGLvmr/c2SMjJhX7KQlfK8YFA7HbbhDSuO6iDEyQnDmG7H6xNxjXj3C9d6VddAX H0LpOaJE6MwOaUgexIzO+OzfgA9wlssa2zoeETvg+Y2H3C5++da8wgkB0k5N2JSKZQx9 Uovf6vQX1wWvwfxs6czN7vclIBRmdyvrQkIzc3QW0ZTtUiNEJK6ZF3iPT/zojdWlnybh CFAbBMmBAMTeKSrl7tmYwCWXVvd8nPKDOskMeadTOZ5DO4Wan0MMqfEIcQ6eqqGrXErp L85w== 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:arc-authentication-results; bh=M1SLm4PkUEYG6Sy1pB0ehLKa5YbxeazNlxzI8QmCjb4=; b=GupKnjz+k1rLQcOhZn/OVZvYkU5riJY4FvYSJKbhvZE5IDLkgpXWTfZZF/fZj7bocl /z1sDhojlpciQ3vayK3eZvJDV+eSMKMJy73u1Bq0MSL7HHE7LPfbc26M25+DJ5pjc7if cvbyVGtdiKLTruI7EOeoAKFeR2QwCgxyeEoiJza0GcB9l9fXrNvr5CGX9/wvFh5LrgpB O+npkyHgTyFm4mh2aXLniUouYG43Q/6F5koUjcdkViWYDLoZSQL0gU8gTzb8f+iuok8v bew0R77kysEg4Q5B4ipvPs2fOYuGydMrHSCZnB+gVl1AyRE48SDJSQ8deEwCCXPN8kJm xsWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=RnUbjLZ+; 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 p33-v6si1736028pld.310.2018.02.28.11.46.25; Wed, 28 Feb 2018 11:46:40 -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=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=RnUbjLZ+; 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 S934036AbeB1TpD (ORCPT + 99 others); Wed, 28 Feb 2018 14:45:03 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:47694 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932351AbeB1To7 (ORCPT ); Wed, 28 Feb 2018 14:44:59 -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; bh=M1SLm4PkUEYG6Sy1pB0ehLKa5YbxeazNlxzI8QmCjb4=; b=RnUbjLZ+HhTlwPCFl7GhENF/0xk+4PlcjRv7wupfT3C+41a7hTPfcK/vwce4IonPY0zYAHbfqYhV4OaP075mO96TrkMPjnWEpm4wbBKIyzliXNwsEO923Um1f1o0BoV2/+3fFby+E+Fn80L7pxB/1hM9xzIMcwwGwQbdhUxevhs=; Received: from flint.armlinux.org.uk ([fd8f:7570:feb6:1:201:2ff:fe14:8fad]:35154) by pandora.armlinux.org.uk with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1er7er-0007S1-8j; Wed, 28 Feb 2018 19:44:57 +0000 Received: from rmk by flint.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1er7ek-000819-6A; Wed, 28 Feb 2018 19:44:50 +0000 Date: Wed, 28 Feb 2018 19:44:49 +0000 From: Russell King To: Florian Fainelli Cc: netdev@vger.kernel.org, Andrew Lunn , open list Subject: Re: [PATCH net-next 5/5] net: phy: marvell10g: Utilize gen10g_soft_reset() Message-ID: <20180228194449.GB30733@flint.armlinux.org.uk> References: <20180228193612.29409-1-f.fainelli@gmail.com> <20180228193612.29409-6-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180228193612.29409-6-f.fainelli@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 11:36:12AM -0800, Florian Fainelli wrote: > We do the same thing as the generic function: nothing, so utilize it. > > Signed-off-by: Florian Fainelli > --- > drivers/net/phy/marvell10g.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c > index 8a0bd98fdec7..da014eae1476 100644 > --- a/drivers/net/phy/marvell10g.c > +++ b/drivers/net/phy/marvell10g.c > @@ -75,11 +75,6 @@ static int mv3310_probe(struct phy_device *phydev) > * Resetting the MV88X3310 causes it to become non-responsive. Avoid > * setting the reset bit(s). > */ > -static int mv3310_soft_reset(struct phy_device *phydev) > -{ > - return 0; > -} > - You do realise that getting rid of that function makes a nonsense of the comment above it - and removing the comment along with the function gets rid of the very important reason _why_ we have en empty reset method? > static int mv3310_config_init(struct phy_device *phydev) > { > __ETHTOOL_DECLARE_LINK_MODE_MASK(supported) = { 0, }; > @@ -377,7 +372,7 @@ static struct phy_driver mv3310_drivers[] = { > SUPPORTED_10000baseT_Full | > SUPPORTED_Backplane, > .probe = mv3310_probe, > - .soft_reset = mv3310_soft_reset, > + .soft_reset = gen10g_soft_reset, > .config_init = mv3310_config_init, > .config_aneg = mv3310_config_aneg, > .aneg_done = mv3310_aneg_done, > -- > 2.14.1 > -- Russell King ARM architecture Linux Kernel maintainer