From patchwork Sun May 23 15:58:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12274911 X-Patchwork-Delegate: kuba@kernel.org 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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 A98C2C47080 for ; Sun, 23 May 2021 15:58:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 862D061132 for ; Sun, 23 May 2021 15:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231880AbhEWQAQ (ORCPT ); Sun, 23 May 2021 12:00:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbhEWQAP (ORCPT ); Sun, 23 May 2021 12:00:15 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A645BC061574; Sun, 23 May 2021 08:58:47 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id f8so18976011qth.6; Sun, 23 May 2021 08:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DRIzGMm1llvtiop65Q5Xv1q5ORI+sSk6YJftRyqqFv8=; b=aeqilIN9R5UM9SvHX02AjsWuR5zTkegVQjw7ZlKgItSVQ2SC9L0bMLL3QLYAkcNXQm 1lVbLkBcJe3tBUUvcSv1rzF34fr9GVs+JuuwaFk1XQ5YHxFwwey1agcR3TuarKmpVPvj pVAcrYvJrz5xKAKaSyW4I6YtweljtJ9sWLB7m1FcEu5ozywManVdn8FLye1SVS3dsFLA QFNjIiBamjR1uJ1gDobsGQxDi/efO7C6thdif51vKdz8txWzo/n51rZxmMstdryQskv4 +S3etFOlciXfC1Cbg++BKxhxqcpCDMmDGdCjZcwnWlW+qzDyvHfySLT5kGWTmBPqUhdE p84A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DRIzGMm1llvtiop65Q5Xv1q5ORI+sSk6YJftRyqqFv8=; b=MxWA2+qH2RhfmGhK7NLm3+mWdmKf5DMMHN/akci5GUpts5CF2lYElmDGFjXoPVR12c xYdjLsqrZVN8ENqmMWdzkAKbB8sWr2rXqwgDQoFFpNP+4OIUkftpP9is8K78g7vdWSR4 xTJaqMZCyRBeennCiFYeDS2KYiTGiRuPD07WbYfrKI0MOYVxCm2wL2gsHqEzLIjtJV3E EiMvZP2SnhBnyZMT7A3rLPReVnXUHhxtKWV+5WlK4ztxnBPkeWoWzSfuLyVXn9K4+Vdb ESa+g2FvSamHGedffp9sESPh1OvapLpghIDeb4IR1sFUdLAcFuoo5p2txTwHzt/QZG1g 6yKA== X-Gm-Message-State: AOAM532UM7oIX9TqRk61ut2DoyFu3UF4AjqWU6j/zIJNKoiSKGlIgfEJ Aq/9HPL8RO0doNvMV6R6B7X7BohEPUPD2g== X-Google-Smtp-Source: ABdhPJwzH/O+GlwCXh714AY2EnfeJf11r6A4I0aAZu2ccBmivjG3Dp0DuCGC4BPLzsV+nCh+viUxyQ== X-Received: by 2002:ac8:68d:: with SMTP id f13mr21936681qth.300.1621785526432; Sun, 23 May 2021 08:58:46 -0700 (PDT) Received: from localhost.localdomain (99-44-17-11.lightspeed.irvnca.sbcglobal.net. [99.44.17.11]) by smtp.gmail.com with ESMTPSA id s123sm9125602qkf.1.2021.05.23.08.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 May 2021 08:58:45 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next] net: r6040: Allow restarting auto-negotiation Date: Sun, 23 May 2021 08:58:42 -0700 Message-Id: <20210523155843.11395-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Use phy_ethtool_nway_reset() since the driver makes use of the PHY library. Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn --- drivers/net/ethernet/rdc/r6040.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 80fee3a9b603..dd9286f520b6 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c @@ -972,6 +972,7 @@ static const struct ethtool_ops netdev_ethtool_ops = { .get_ts_info = ethtool_op_get_ts_info, .get_link_ksettings = phy_ethtool_get_link_ksettings, .set_link_ksettings = phy_ethtool_set_link_ksettings, + .nway_reset = phy_ethtool_nway_reset, .get_regs_len = r6040_get_regs_len, .get_regs = r6040_get_regs, };