Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6827963rwn; Tue, 13 Sep 2022 09:30:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UqA7aiiGxSY5XAJqr5sYAOAW68lPfgXZXn61vDWYaM+HG3UKHM4OzMFU/ehy5H7Gaow3y X-Received: by 2002:a17:90b:1810:b0:202:c6d7:98a4 with SMTP id lw16-20020a17090b181000b00202c6d798a4mr143596pjb.16.1663086631645; Tue, 13 Sep 2022 09:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663086631; cv=none; d=google.com; s=arc-20160816; b=uGaR0xtLuoehEcGkRS+8jBqFexdqAz/rM0GdqSxPoKwqQlmYO6jSTj+jPfi+IL9e0N jBTIWzBMmGOoN2tPfy/2eHMMwQvHJrrtyr0IpqhAXoB7goXw6di4bevaCe6C6dwYpw2H Ax2JcuG3Ff7JaMxq8p6ynD/s/SVOdqcRm0/8w4K2th5/tp7q5pkPfKtmlDojqN7O7leG JRdK+3q1OG6aDy/7ddqqD+ig6mpbqo+ttue7rNx53wK8mpoyzTtZtDNbUhiXzvdbFIWw 4NX8rT9P4mzve1bR1HDUp7ki8NBjcS1WBD5mtpgs1/eBtUnzd4B9LPKuvNLjmEcH9EV7 x6iQ== 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=zJEPo1ZqcuzEDPX28whZw6pjujRxd9jI/YSUM9EQ3yA=; b=oiYxp5kcLmY+sjkWHuQwv+LWdVcdUHh4xEII2BTaIM6aydjyQheeUc3Kosjz5cSXI1 9EyAo8EaBdgVWiLuODKVuO+phtV7SFTPB2Rgart/kHClVdKMpR53zcrBPDdlFvOvIim7 rSXUcYueTVEJPzuirgaNgLqPCQhg/wGh9A1K4Knvw//x8rDMSA92/1HgPU7UW3FXny29 7VK+QIeHzYVHYLqgLijzV7AnpyDybRlGGscaEZ0xHKGQSsIKy++on7p383A4nxSFYE0c BGlsajzi3KhNdreZbWzrwMxah1jTrezCOGbKFWRvxVHOEwcT2bHq9mEISLqYy+mQz0+/ DC9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pqObLCWf; 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 c19-20020a6566d3000000b0043855015f38si12680157pgw.165.2022.09.13.09.30.11; Tue, 13 Sep 2022 09:30:31 -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=pqObLCWf; 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 S233995AbiIMOeg (ORCPT + 99 others); Tue, 13 Sep 2022 10:34:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233975AbiIMOdJ (ORCPT ); Tue, 13 Sep 2022 10:33:09 -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 B8CB5273C; Tue, 13 Sep 2022 07:19:31 -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 57483B80EFC; Tue, 13 Sep 2022 14:19:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4FBDC433C1; Tue, 13 Sep 2022 14:19:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663078770; bh=QZkttdey2IZbuHhI/iymCpT7oKPDrJqvupu9s4uBL/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pqObLCWfAUUQKoDdPqid9Vj1PA+QLitBEo17x88f3+AGX3EoVt8L6U0BnyxrizqQy 0xBYd13yc87kiIWYkK29xTMuI5t1zwJC6ukjyj8Qc9AgMMlFT5CmamzMiY61vkAJ1R 9B1RlnOpX2hhd9jHvpKb7cGSYYtwzS6MvZdR0XG4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiner Kallweit , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.15 076/121] Revert "net: phy: meson-gxl: improve link-up behavior" Date: Tue, 13 Sep 2022 16:04:27 +0200 Message-Id: <20220913140400.639455902@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220913140357.323297659@linuxfoundation.org> References: <20220913140357.323297659@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: Heiner Kallweit [ Upstream commit 7fdc77665f3d45c9da7c6edd4beadee9790f43aa ] This reverts commit 2c87c6f9fbddc5b84d67b2fa3f432fcac6d99d93. Meanwhile it turned out that the following commit is the proper workaround for the issue that 2c87c6f9fbdd tries to address. a3a57bf07de2 ("net: stmmac: work around sporadic tx issue on link-up") It's nor clear why the to be reverted commit helped for one user, for others it didn't make a difference. Fixes: 2c87c6f9fbdd ("net: phy: meson-gxl: improve link-up behavior") Signed-off-by: Heiner Kallweit Link: https://lore.kernel.org/r/8deeeddc-6b71-129b-1918-495a12dc11e3@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/phy/meson-gxl.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 73f7962a37d33..c49062ad72c6c 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -243,13 +243,7 @@ static irqreturn_t meson_gxl_handle_interrupt(struct phy_device *phydev) irq_status == INTSRC_ENERGY_DETECT) return IRQ_HANDLED; - /* Give PHY some time before MAC starts sending data. This works - * around an issue where network doesn't come up properly. - */ - if (!(irq_status & INTSRC_LINK_DOWN)) - phy_queue_state_machine(phydev, msecs_to_jiffies(100)); - else - phy_trigger_machine(phydev); + phy_trigger_machine(phydev); return IRQ_HANDLED; } -- 2.35.1