Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3673765rdh; Tue, 28 Nov 2023 00:01:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXsEkgdeN77zCTyJiYREtsMoE/RoZL/3PVfIVKshlrdfQguA/JbtzKiBRNGsC3Znc01fXK X-Received: by 2002:a17:90b:380c:b0:285:ade0:86de with SMTP id mq12-20020a17090b380c00b00285ade086demr10653700pjb.12.1701158477090; Tue, 28 Nov 2023 00:01:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701158477; cv=none; d=google.com; s=arc-20160816; b=j83PM2ExSu/R/pDQPWFEEFjfJnxReSu/5495CaOgz1LQYuDm+X/Jk7dMRRa+ZBiath D3wxyBk3hcYFcvBrTQHq/XKzxUl2szrNjfALs8tT2HQjZP1Keizzavs2DA+pIjfpmjsE mnTqkrmpzviNd7dpgS2C0db7fE8b/ojtBDIeZOwnbr3xtg6m0tB4V3O+RGlIk2+1BE7j 8u5kV5qeesPA9etM91ZvqSKNlQaaRGVTP5z/nH7nNtKqJ/ZUtAciXXfpOjdqKna/LuJi 7/AdpXvLd/cRlMJ5SNt58vYr8nL+wNaJmz1iVcRiMXF+kc29eevpfDIx/Fgh7qt9uDLe krQw== 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=nsxL3gc59pxFuwbOyXEQ1EZHms7Zyw19K3zjVrlRcO0=; fh=Zga5VTHhzC90FUmOpfzd2goyCSxmB0OOrcN7eFp7WuY=; b=vR81SWAiYQ4WpTQmo9p8yl6uqqEsF6xZosl3DpU3nTSO4ig/WSUGWxfsfnm/3ltWVP 3dSVdZi4QlWArqUBF8ooLr4Nq+IxB2YSzzs9pAksSLFpEgv5aqeNwIfuevNGvnOn2Nh5 k/ua6uctbzkgXAGVZaifugC7ykzM+uPsE1HjoXyGOGQTDLGHB+5LDmzLVF/JCiUbwlHz ChZiF0AluK3I07aE0tsg+Rgrb+8mm9AbxlVMm4/Y09Wgozo2MnoMD3AizYKM7XUj9HSx NQ2iEze3B3A4o/g7IvCylorQutsQu03JPQF4stDS8cTNSYpZIa42YgH3nbDlqhUvE898 wVpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ae2am8lm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id k17-20020a170902c41100b001c3a05b0b58si11937028plk.500.2023.11.28.00.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:01:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ae2am8lm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 6D20D81CDB82; Tue, 28 Nov 2023 00:01:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343953AbjK1IAq (ORCPT + 99 others); Tue, 28 Nov 2023 03:00:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343955AbjK1IAd (ORCPT ); Tue, 28 Nov 2023 03:00:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 003A210A for ; Tue, 28 Nov 2023 00:00:39 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 482E9C433C9; Tue, 28 Nov 2023 08:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701158439; bh=XsSMYgbPthzsqVva9D0suVZ4nWHiEJsubyND6RHq0UM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ae2am8lm7OGWz/wFSHlecym9K80fpY5DiEzAY9yJ0tRhCt54pvWrWJ5lmDEhtLdWH b4pTDWEtLRm7QGc4PEgiSIb0BiehAW2IibphzDtoU8yaFRG+tHskOAqwhSc/s2+NGn 5SAB0e8+wKWVw+xdj0NfOC6od44tytRCugtR8kjo= Date: Tue, 28 Nov 2023 08:00:36 +0000 From: Greg KH To: Roy Luo Cc: stern@rowland.harvard.edu, badhri@google.com, quic_kriskura@quicinc.com, francesco.dolcini@toradex.com, quic_eserrao@quicinc.com, ivan.orlov0322@gmail.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] USB: gadget: core: adjust uevent timing on gadget unbind Message-ID: <2023112827-repent-broadband-e557@gregkh> References: <20231127220047.2199234-1-royluo@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231127220047.2199234-1-royluo@google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:01:10 -0800 (PST) On Mon, Nov 27, 2023 at 10:00:47PM +0000, Roy Luo wrote: > The KOBJ_CHANGE uevent is sent before gadget unbind is actually > executed, resulting in inaccurate uevent emitted at incorrect timing > (the uevent would have USB_UDC_DRIVER variable set while it would > soon be removed). > Move the KOBJ_CHANGE uevent to the end of the unbind function so that > uevent is sent only after the change has been made. > > Fixes: 2ccea03a8f7e ("usb: gadget: introduce UDC Class") > Signed-off-by: Roy Luo > --- > Changes since v1: add Fixes tag > --- > drivers/usb/gadget/udc/core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) 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: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. 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