From patchwork Fri Mar 20 09:53:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Abreu X-Patchwork-Id: 222171 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=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no 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 04D8FC4332E for ; Fri, 20 Mar 2020 09:54:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C479720753 for ; Fri, 20 Mar 2020 09:54:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b="AxTAIJ8p" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727188AbgCTJxx (ORCPT ); Fri, 20 Mar 2020 05:53:53 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:42770 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbgCTJxw (ORCPT ); Fri, 20 Mar 2020 05:53:52 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id ACFF1C0F90; Fri, 20 Mar 2020 09:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1584698031; bh=Iukq6WuoUVLoUcaK3eRq2H2/jc1iVUoBjvWnbKEYOt0=; h=From:To:Cc:Subject:Date:From; b=AxTAIJ8pEaPkEb+SNiR8hA9LUqZ/S+rlVVLQ5QpQSits94daVGK8oHaQJZA3t2fnv 3wBKqdJgFslChM547SFmxEZwdsUj7KUSsKKEBztzpjCK/KEd984hOIXNY+DMzFgwHA nu94AnlnqdBHqETMpWOls+6XdUgSyvV70QIznBnLADEkUnE5NborqvQdLb8dM/pCFx PFGUrOoQdjmbIo6VJ+PUX9YMwQ9k+VO+aRqRfITfKGUPhPdwjNeFLmYM6Ocigr12P5 OBDejrsPc/p7nC7fJ401FgCZO/+NKItSWLjXS+tM9qzVxxJ+IFxnSPEkJ53DomyYOG vyEUQwjVatkMQ== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 44DABA005F; Fri, 20 Mar 2020 09:53:47 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , "David S. Miller" , linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/4] net: phy: xpcs: Improvements for -next Date: Fri, 20 Mar 2020 10:53:33 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Misc set of improvements for XPCS. All for net-next. Patch 1/4, returns link error upon 10GKR faults are detected. Patch 2/4, resets XPCS upon probe so that we start from well known state. Patch 3/4, sets Link as down if AutoNeg is enabled but did not finish with success. Patch 4/4, restarts AutoNeg process if previous outcome was not valid. --- Cc: Jose Abreu Cc: Andrew Lunn Cc: Florian Fainelli Cc: Heiner Kallweit Cc: Russell King Cc: "David S. Miller" Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Jose Abreu (4): net: phy: xpcs: Return error when 10GKR link errors are found net: phy: xpcs: Reset XPCS upon probe net: phy: xpcs: Set Link down if AutoNeg is enabled and did not finish net: phy: xpcs: Restart AutoNeg if outcome was invalid drivers/net/phy/mdio-xpcs.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)