From patchwork Mon Apr 26 16:08:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Bornyakov X-Patchwork-Id: 428413 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D843C433B4 for ; Mon, 26 Apr 2021 16:13:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4236D61158 for ; Mon, 26 Apr 2021 16:13:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234266AbhDZQNk (ORCPT ); Mon, 26 Apr 2021 12:13:40 -0400 Received: from mail.pr-group.ru ([178.18.215.3]:50418 "EHLO mail.pr-group.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233736AbhDZQNj (ORCPT ); Mon, 26 Apr 2021 12:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding; bh=xmlWVM44O8zlpDHgIdJrudJSD0CqrW0tK6mZWnNG71k=; b=hEypwacz2d/UVzSlUSRpD/+ZeIjDTdyPI7yUuWgzIgE796mSvOoR1B7zbuf0mErIvnmXFql/gXuon S63sF3PHsg6fE6YYXVzr04qtcdcjjyDp6ZbwoMH/8wImPsNJMCi8mKPrrvFDszv3vSbbJys4Bhmlal MnZUfqAH00ccQm7nVWab+6IcGe6fXUG9tInKaCfnQYIXlifONHhPOhY7hPGdWRLhsqXNGn6eMB0zwS AG1hwhcJLWFrAybvaV5MrZ+COkq2IvEfXcmJaVUwixS0P3LFV5nyyxzMxP3OmTL5v0igOM/xu7FndT LgrYma6FFZkLFN/ZF/CCFB6T0Ge2GOw== X-Footer: bWV0cm90ZWsucnU= Received: from localhost.localdomain ([78.37.172.38]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Mon, 26 Apr 2021 19:12:40 +0300 From: Ivan Bornyakov Cc: i.bornyakov@metrotek.ru, system@metrotek.ru, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: phy: marvell-88x2222: enable autoneg by default Date: Mon, 26 Apr 2021 19:08:23 +0300 Message-Id: <20210426160823.4501-1-i.bornyakov@metrotek.ru> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org There is no real need for disabling autonigotiation in config_init(). Leave it enabled by default. Signed-off-by: Ivan Bornyakov --- drivers/net/phy/marvell-88x2222.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/phy/marvell-88x2222.c b/drivers/net/phy/marvell-88x2222.c index 9b9ac3ef735d..d8b31d4d2a73 100644 --- a/drivers/net/phy/marvell-88x2222.c +++ b/drivers/net/phy/marvell-88x2222.c @@ -473,8 +473,6 @@ static int mv2222_config_init(struct phy_device *phydev) if (phydev->interface != PHY_INTERFACE_MODE_XAUI) return -EINVAL; - phydev->autoneg = AUTONEG_DISABLE; - return 0; }