Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp416759rdb; Fri, 6 Oct 2023 07:21:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+v03kgFCysdWEzuCcH344mk5iPVIj/fdK9/OOS4Nkb4QawYCfB6CPLiNr9xPtnNW7zVA4 X-Received: by 2002:aa7:88c2:0:b0:68e:36bc:194a with SMTP id k2-20020aa788c2000000b0068e36bc194amr10475890pff.15.1696602090438; Fri, 06 Oct 2023 07:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696602090; cv=none; d=google.com; s=arc-20160816; b=qOxFP1g0Pw+wlVPmjvuXGbG24rU8KOajj+fUmzwWh6++dCLFPRmJV0GiGpT4jVr5GD AWZa57npojigJtfmrQbioVdSOGB0gPSSGnt/h+RnZGpkfx7XrSLNeY2TxwBacF+6XErJ m6fJ0sxNiVI83HGzLFugdP8l4GQ8L2HGlh67JerSR5Et9kO5EQ1ezv80Y8F/mKR+Whhg ZfEMminKbR6Yz0MfzD2wysyHRGMj0O7LCjwuZdKHTxu/hGwnPKv5P+e5o8eEZm/SbJt5 U//0Q8g9aa3H6Zq39k/fJjMFIGG5fmIna22IZDQ8w2WRnPdQz9BoU87DhAWc2PAsmGxo pUIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GY2aKR5Qq11Weh40G/OYRiQ4kvqwWFuPcNgDyQAlI88=; fh=bYrbwGCY4Daea71bp5ogYkUNBnaAbiGqonaOGtWEAsA=; b=OfylO1xvOnIm60XGBaIEpvHkitn6LEBgfxEhTbxXoZOvQ3XPExHpqAVQ1D9uyGTL9I GK9kNAS0T4/o+iZ+uke+SzGsktwA4Q3/l7vK3YEVtlMP0vNVSxe9+Az3jd0aFmOQOrOu RkG4SdqRMtkWB/PmtYZcoC7ZP/jCeBLF9t3btEepjvoXjngGHqPP9tIbeQjPQtz3Obf/ OoOlRWOTW0k+qWKJPeFlap+K1NfbPriZd7C3jaQqBvIxXSkhzDO97RhK7nPgzRnARS2/ CTGSMaPZ3xP95tnGWKR50iaJwO3CGj9Z4n847tgot68ei+uVjSsnm5OBlOwo518i7PBb POXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FdWZmuPP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id y7-20020a636407000000b0056c2f508898si3925506pgb.725.2023.10.06.07.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 07:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FdWZmuPP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 742C982E158E; Fri, 6 Oct 2023 07:21:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232414AbjJFOVV (ORCPT + 99 others); Fri, 6 Oct 2023 10:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232248AbjJFOVT (ORCPT ); Fri, 6 Oct 2023 10:21:19 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA5D9A6 for ; Fri, 6 Oct 2023 07:21:18 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2A08C433C7; Fri, 6 Oct 2023 14:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696602078; bh=2Grp6Qh6qeNuh49mj8YjpgGdvSj5dFC4iUiXZ5AqqSw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FdWZmuPPmt/PM3EzsBffE6Dhf7B3EJmmPf60vBYWZal9yf9ON/z+QETHTIf8NrnfQ 8GCGiqXzqiXSxZq0kajOYf2UpC5dyiSgKvl0rW/3TKTZ21xD+53BmShz6fwpQDA0zg VIals/MScQD0okxkGaInq9o3/yAgHrEb/esZFrwo= Date: Fri, 6 Oct 2023 16:21:15 +0200 From: Greg KH To: Hardik Gajjar Cc: s.hauer@pengutronix.de, jonathanh@nvidia.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_linyyuan@quicinc.com, paul@crapouillou.net, quic_eserrao@quicinc.com, erosca@de.adit-jv.com, gah2hi Subject: Re: [PATCH] usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach Message-ID: <2023100656-swagger-anagram-a381@gregkh> References: <20231006141231.7220-1-hgajjar@de.adit-jv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006141231.7220-1-hgajjar@de.adit-jv.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 06 Oct 2023 07:21:28 -0700 (PDT) X-Spam-Level: ** On Fri, Oct 06, 2023 at 04:12:31PM +0200, Hardik Gajjar wrote: > From: gah2hi > > This patch replaces the usage of netif_stop_queue with netif_device_detach > in the u_ether driver. The netif_device_detach function not only stops all > tx queues by calling netif_tx_stop_all_queues but also marks the device as > removed by clearing the __LINK_STATE_PRESENT bit. > > This change helps notify user space about the disconnection of the device > more effectively, compared to netif_stop_queue, which only stops a single > transmit queue. > > Signed-off-by: gah2hi > --- > drivers/usb/gadget/function/u_ether.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c > index 4bb0553da658..9d1c40c152d8 100644 > --- a/drivers/usb/gadget/function/u_ether.c > +++ b/drivers/usb/gadget/function/u_ether.c > @@ -1200,7 +1200,7 @@ void gether_disconnect(struct gether *link) > > DBG(dev, "%s\n", __func__); > > - netif_stop_queue(dev->net); > + netif_device_detach(dev->net); > netif_carrier_off(dev->net); > > /* disable endpoints, forcing (synchronous) completion > -- > 2.17.1 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - It looks like you did not use your "real" name for the patch on either the Signed-off-by: line, or the From: line (both of which have to match). Please read the kernel file, Documentation/process/submitting-patches.rst for how to do this correctly. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot