Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3722858iog; Tue, 28 Jun 2022 01:02:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sx3KQ/LX6XicvDq1yhNapQVGKtnA47xXTswkcKgd3OVVvwdRL3vP1HHJW/OVz7+UYME4G9 X-Received: by 2002:aa7:cb83:0:b0:435:9170:8e3b with SMTP id r3-20020aa7cb83000000b0043591708e3bmr22136412edt.144.1656403327797; Tue, 28 Jun 2022 01:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656403327; cv=none; d=google.com; s=arc-20160816; b=MnwZxmxRjnB8a0S72xs+9/ZQ6sLqKiuGq5QT+OwXpdGQOwcZ/K4T8HKUrhpWo9n/dk 4zW+R9PEYvpxgXC81chffGiQWE3exKv176HZ+5uybrrRK8Z9D30d2INQIJHUkqUjgqW8 iPqt8tAspePNnezFE1LAu40+1pJy/FU62UM+jtxdlX/fKEbuunYCc7lf0orH5/cT7f44 +tQMkynuamKv2URB6LpQxgDPYqhFDoLfb6tEc6pVqEO8SLOQpahS4deoXrOI4XGJ3V3q D6z+S11rmFgThrWE8g9rmsf9V9pc997zSSnWwF5j0N0ix8ZxrKVQ30H8tiAZW+ZYgHrw Qy6w== 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:date:cc:to:from:subject :message-id; bh=P6yjTJ7QY72mP4Gx6SEPqnprbLy9PquM1ybEKLEtys8=; b=EXls76qp2mG5qGwpYPfhnRAy5ceM2s8lfbSObLsfH/Wd9AEyNojIajU0HqP3i+N12N aHtEDi/k9zMU9WpLX0kTG2LckEjY1b+QBVkE4FFT5UUIf9K6UE7pMeG6pB7380XBf3M/ Dl2SHVtfD5XSbf1EZKRjrsxtoWJa1O5DYngC3mUMmEc8z9nKxuRBx+ez11LEre5B219h T4TXXGVMKol1X/3oJ+40yWxm3BC4khmr51Xi8BMzL8xx4/phXFVZv2kkO27jRSf73Wm0 3aRSii2Lq+BVC+gvnLtoAMkxi7XnzvvOVn6GtlzMejyDiOtrVL2Qk+KmZj+7k/nq4c+p Tzmg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a170906830c00b006f39e3cc855si12356739ejx.648.2022.06.28.01.01.41; Tue, 28 Jun 2022 01:02:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245576AbiF1Hu7 (ORCPT + 99 others); Tue, 28 Jun 2022 03:50:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245504AbiF1Hu4 (ORCPT ); Tue, 28 Jun 2022 03:50:56 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A0210EC for ; Tue, 28 Jun 2022 00:50:55 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o65zg-0003iD-3b; Tue, 28 Jun 2022 09:50:44 +0200 Message-ID: <897594cde5f294f9d5e96917bce1ac751338d0aa.camel@pengutronix.de> Subject: Re: [PATCH net v1 1/2] net: asix: fix "can't send until first packet is send" issue From: Lucas Stach To: Oleksij Rempel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Anton Lundin , Lukas Wunner , linux-kernel@vger.kernel.org, kernel@pengutronix.de, netdev@vger.kernel.org Date: Tue, 28 Jun 2022 09:50:42 +0200 In-Reply-To: <20220628044913.GB13092@pengutronix.de> References: <20220624075139.3139300-1-o.rempel@pengutronix.de> <20220628044913.GB13092@pengutronix.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Hi Oleksij, subject of this patch looks strange. It should probably read "can't receive until first packet is sent". Regards, Lucas Am Dienstag, dem 28.06.2022 um 06:49 +0200 schrieb Oleksij Rempel: > On Fri, Jun 24, 2022 at 09:51:38AM +0200, Oleksij Rempel wrote: > > If cable is attached after probe sequence, the usbnet framework would > > not automatically start processing RX packets except at least one > > packet was transmitted. > > > > On systems with any kind of address auto configuration this issue was > > not detected, because some packets are send immediately after link state > > is changed to "running". > > > > With this patch we will notify usbnet about link status change provided by the > > PHYlib. > > > > Fixes: e532a096be0e ("net: usb: asix: ax88772: add phylib support") > > Reported-by: Anton Lundin > > Signed-off-by: Oleksij Rempel > > In different mail thread Anton reported as tested. > Tested-by: Anton Lundin > > > --- > > drivers/net/usb/asix_common.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/net/usb/asix_common.c b/drivers/net/usb/asix_common.c > > index 632fa6c1d5e3..b4a1b7abcfc9 100644 > > --- a/drivers/net/usb/asix_common.c > > +++ b/drivers/net/usb/asix_common.c > > @@ -431,6 +431,7 @@ void asix_adjust_link(struct net_device *netdev) > > > > asix_write_medium_mode(dev, mode, 0); > > phy_print_status(phydev); > > + usbnet_link_change(dev, phydev->link, 0); > > } > > > > int asix_write_gpio(struct usbnet *dev, u16 value, int sleep, int in_pm) > > -- > > 2.30.2 > > > > >