Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1253362imw; Tue, 5 Jul 2022 06:29:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u22U5ur3+9byoymRNtJhddJAH8VSJdS55pyLWNIVcGKtyanAo2OnppXK7IcvYZ8HYWqW8n X-Received: by 2002:a63:1a10:0:b0:40d:fb07:ec26 with SMTP id a16-20020a631a10000000b0040dfb07ec26mr29985577pga.273.1657027749098; Tue, 05 Jul 2022 06:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027749; cv=none; d=google.com; s=arc-20160816; b=WZmvLQenemz7jjpk6ttPRLZ1ZYxk/XdB6/m0V0ge2FOpJcg9Eu5NAlhKRf3c/c9Lt3 RlbCSo6a1Zntw1YbA8nLbfvOrxxnCVIu5oFWs5V5yY4C+1KaoBj5tihg+mqqFLuSpog6 MHnqg9TTfDwNZU2maOp0FqS4w+pOy/l7rJHZmDlCXq0A593YfKdFpiOyj0CgCYduslo1 0kyHYkIde94oqnYR+14yNg+1zqP9reSzW9+b9hq1OnyiEt614g7gw9sYq+d377eBbbvR tmkSClCqdaguDMS0u3TtvT9SBNykb/r0/CmKB6PFRfZEZ938tFebNmOyg1XCo9AySlFF vNrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1Dp+5VEqQIlgHH+I2+yj/fpcgdpCqS2rXiD5sC9Xgok=; b=xM3pePAl58fpaSRIYyzHzcytJrIPsqE05/s2kJaDJgeCEE3DwDjSQfK4BWrdlfRZDx hFWtkUZObJUcEcofrRR7+0hntSUIF44I6BvGZCaO7JUxaJcfCiOmH/fcFHaFpt95Nn8F LbIJQzmHyRk17srk2HwSEIK4XmwMmHmIQEYB8gktyPJeuHVwAqtBTd6Ce8I6tZ/V3uxe 1GpDZLfYsS8vI3pX/65MdmGVW33Njm1hRn/VvlcXF54Tx0c+Sxqb8rTthfL2G97MSa97 Pjqt7sDml8j8ARGHDZlpgg3xm1qBGDY2Kxs/5drhIqdEVoaR8JcmOJP3T/9JS39eIscF mTtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SJ7RXG6f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 79-20020a630152000000b003fbc1902fe6si11823293pgb.706.2022.07.05.06.28.57; Tue, 05 Jul 2022 06:29:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SJ7RXG6f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236762AbiGEMVr (ORCPT + 99 others); Tue, 5 Jul 2022 08:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235584AbiGEMOH (ORCPT ); Tue, 5 Jul 2022 08:14:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E9871AF00; Tue, 5 Jul 2022 05:11:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F0F33B817D6; Tue, 5 Jul 2022 12:11:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E1FC341C8; Tue, 5 Jul 2022 12:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657023083; bh=8Yx/3O7X0zhWd1KHPuHeo8VgXhfddwNdjHKMYGEiN0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SJ7RXG6fZ3pjoweKhFGnO6SbFc+VKQmKmU6XuiAzhWJaBsfVlR+s5T1WdwyVCj9qj sEI9biIN9o9w/vjylghlbUFAiItnw0p0Y/OK8f/S1ch0PS5BxQm2dC0EqH85SvgnhW SgaSKUIQ2Zrwbl1S9CrZfhhpfFNyi1RbGwmS9gXM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anton Lundin , Oleksij Rempel , Jakub Kicinski Subject: [PATCH 5.15 30/98] net: usb: asix: do not force pause frames support Date: Tue, 5 Jul 2022 13:57:48 +0200 Message-Id: <20220705115618.447843543@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115617.568350164@linuxfoundation.org> References: <20220705115617.568350164@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksij Rempel commit ce95ab775f8d8e89a038c0e5611a7381a2ef8e43 upstream. We should respect link partner capabilities and not force flow control support on every link. Even more, in current state the MAC driver do not advertises pause support so we should not keep flow control enabled at all. Fixes: e532a096be0e ("net: usb: asix: ax88772: add phylib support") Reported-by: Anton Lundin Signed-off-by: Oleksij Rempel Tested-by: Anton Lundin Link: https://lore.kernel.org/r/20220624075139.3139300-2-o.rempel@pengutronix.de Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/asix.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/usb/asix.h b/drivers/net/usb/asix.h index 2c81236c6c7c..45d3cc5cc355 100644 --- a/drivers/net/usb/asix.h +++ b/drivers/net/usb/asix.h @@ -126,8 +126,7 @@ AX_MEDIUM_RE) #define AX88772_MEDIUM_DEFAULT \ - (AX_MEDIUM_FD | AX_MEDIUM_RFC | \ - AX_MEDIUM_TFC | AX_MEDIUM_PS | \ + (AX_MEDIUM_FD | AX_MEDIUM_PS | \ AX_MEDIUM_AC | AX_MEDIUM_RE) /* AX88772 & AX88178 RX_CTL values */ -- 2.37.0