Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3733734iog; Tue, 28 Jun 2022 01:19:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vF4YUtGv99OdXhfdpj7Z3L3Zqsl7nudaACXCajU+rW4EUFT1CRbM2mJ5czg9G28Lg9wXvt X-Received: by 2002:a17:90b:1bc8:b0:1ec:881d:86ad with SMTP id oa8-20020a17090b1bc800b001ec881d86admr26146256pjb.4.1656404397549; Tue, 28 Jun 2022 01:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656404397; cv=none; d=google.com; s=arc-20160816; b=TwyO+MQvuGGB3jzgJEEngurotE1wFsZ5nAqtce3+yq7pBWoVlgIk1gu9G5KgFDw5Rm emzNnXcu5SaIHCONcuEjF7MdBPkMUvOu8eTmKNshLVGKmEsawI4yOuVCStnrokRM5esK aYDtD1Bmw7QcoZOBmgHxJH0GeE67XXxJO4Ezfoe/HYbTg/PzGHpjXSf5h/Or0bi+sZrF 6lOv6/hLxXGFoJkVuFAMixhXNEkxFhC0DPhLczdci89hmWqe4FnOv5tfwPQNK27URTsi FxbsNPCpU7YGeCDNmP/Pnothuzeo+v8mD1q3h05T57YnmyKBw2zG0grK4kjhvF7pRY9l tmeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gCYtZYt5qxNg3JT8VALT1EZCKIQVsi2K4+8bBY+o4Y0=; b=JFrLdyjqU36edPxZFN8qDGm/OVEjYP/h0S6a7ClGjwnDJx+GQ8N22O9IVqzgI0i92m 3qckomFyMYxIEJDl9kw50zRIW1ool8DH+y7XU6Tvw5qWZnO56B/xdsiFd62sPenOUeYi SgzXcvaLeZpQoXrxjUCvEobIVChly4nRnaeWVO5/zFsd2FxGKsg4j8rbmJBkuQAT67yz ptuC1WRploIegzP8/IonhPy+Hv65ZcOxJKW/0yB8sIAEl58UP9QkAqxYS0MxmKyOX/Tf U/Gnx9UPKYxAAB99N7ppjPvtFI3uvv5HKzyNaEMxnlsV8KLeL7AgllJGsZ526K1wXQ6D FoMA== 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 q7-20020a654947000000b0040d28f1a110si18932630pgs.490.2022.06.28.01.19.45; Tue, 28 Jun 2022 01:19:57 -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 S243466AbiF1IAU (ORCPT + 99 others); Tue, 28 Jun 2022 04:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241810AbiF1IAT (ORCPT ); Tue, 28 Jun 2022 04:00:19 -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 D648B12777 for ; Tue, 28 Jun 2022 01:00:17 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o668n-0004zr-Hn; Tue, 28 Jun 2022 10:00:09 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1o668m-00062t-Ud; Tue, 28 Jun 2022 10:00:08 +0200 Date: Tue, 28 Jun 2022 10:00:08 +0200 From: Oleksij Rempel To: Lucas Stach Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Anton Lundin , Lukas Wunner , linux-kernel@vger.kernel.org, kernel@pengutronix.de, netdev@vger.kernel.org Subject: Re: [PATCH net v1 1/2] net: asix: fix "can't send until first packet is send" issue Message-ID: <20220628080008.GF13092@pengutronix.de> References: <20220624075139.3139300-1-o.rempel@pengutronix.de> <20220628044913.GB13092@pengutronix.de> <897594cde5f294f9d5e96917bce1ac751338d0aa.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <897594cde5f294f9d5e96917bce1ac751338d0aa.camel@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@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 On Tue, Jun 28, 2022 at 09:50:42AM +0200, Lucas Stach wrote: > Hi Oleksij, > > subject of this patch looks strange. It should probably read "can't > receive until first packet is sent". rigth. But it is already taken. > 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 > > > > > > > > > > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |