Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3834824rwd; Mon, 29 May 2023 18:09:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IjNbXhdMOC2cwEgDJkLRrhhnEi9sqy48btxifMpzSuwO6aLV6cuez1qZOLajUZ6bLqSuY X-Received: by 2002:a17:903:492:b0:1b0:4cf9:4fa2 with SMTP id jj18-20020a170903049200b001b04cf94fa2mr666350plb.3.1685408980938; Mon, 29 May 2023 18:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685408980; cv=none; d=google.com; s=arc-20160816; b=TiVPS5LGrsSY3UQ3bF0rUtJWg9QIKBLAXUIkH6Cy1oAecI/VL4KUUYPK6VUU74lat1 cxnHIsTDXbNiz7IbLItiuQHJN3wkvkHE7zC8YUKNdo4IIzz5OVJ8RGSki6DBAEr807fJ CGhytxz/JoND5jKgltpjxfYD40E1nBntYuIfuDhqgcxcmVdDfxPRRiZI2ABHEYgAQaUB h90tOU0prw79P4FKezQwFuAEKp+rHtuPN6v/KaO7qtbyAFLjMbEzrDASTyXBGcyINlWs LxL9FgTJ/Y9jWegUWJBYyRhBBwp8JwIONKGPidiYase1VTHa8VwvecHljJ0D1VMzp81N mD3Q== 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; bh=Od1ztuNDXLPJZq7NZ2qSRXH4Tv1rFQxU/jhJVSgaO0o=; b=aXzBP+leXyFU7PsHyC2wkulvbqARu/PNarTFtEgQnfRWGHgI5CY6jJ/O4jgaGoASlX qv5vV+sW1sWJecfvczwxwBteJY3PQJ646WbqwKbGRj+uwiGEfSNRS4CggH4zZCIPU7TW 5wM6/2cwSp0MEQZ0DQr4B8y+d8le/ialOWtw4jlWwLS9xxSPMVwtc/K2I7ET1J7UJGXg TE3xLM3hQ7xqQUNTQYNMwfGeB5wcTOab9HOEXC803RDY1HqoZFEvlisp+rwWHfn/frpY 2Wxs7w4QwhzZH+QpeKq8VAaBfA/43UbBXp7pX7+jqSxIEiBj3T/Q9v5Svq2kJl7EegOj nPQw== 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 q20-20020a170902e31400b001b061dcdb78si142100plc.92.2023.05.29.18.09.25; Mon, 29 May 2023 18:09:40 -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 S229513AbjE3ArC (ORCPT + 99 others); Mon, 29 May 2023 20:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjE3ArB (ORCPT ); Mon, 29 May 2023 20:47:01 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id E81FDD9 for ; Mon, 29 May 2023 17:46:59 -0700 (PDT) Received: (qmail 389283 invoked by uid 1000); 29 May 2023 20:46:59 -0400 Date: Mon, 29 May 2023 20:46:59 -0400 From: Alan Stern To: Badhri Jagan Sridharan Cc: gregkh@linuxfoundation.org, colin.i.king@gmail.com, xuetao09@huawei.com, quic_eserrao@quicinc.com, water.zhangjiantao@huawei.com, peter.chen@freescale.com, balbi@ti.com, francesco@dolcini.it, alistair@alistair23.me, stephan@gerhold.net, bagasdotme@gmail.com, luca@z3ntu.xyz, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v4 1/3] Revert "Revert "usb: gadget: udc: core: Invoke usb_gadget_connect only when started"" Message-ID: <012c8b5b-0697-4965-bed8-fbed4c8910c9@rowland.harvard.edu> References: <20230529234816.3720623-1-badhri@google.com> <6547e73e-81e4-4a29-babf-13f852f1eb8b@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6547e73e-81e4-4a29-babf-13f852f1eb8b@rowland.harvard.edu> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 29, 2023 at 08:42:18PM -0400, Alan Stern wrote: > On Mon, May 29, 2023 at 11:48:14PM +0000, Badhri Jagan Sridharan wrote: > > This reverts commit f22e9b67f19ccc73de1ae04375d4b30684e261f8. This is not the format we use for referring to commits. > > > > The regression reported in > > https://lore.kernel.org/all/ZF4bMptC3Lf2Hnee@gerhold.net/ is being > > fixed in > > commit 7d7863db7cc0 ("usb: gadget: udc: core: Offload usb_udc_vbus_handler processing"). That is the correct format. > What commit is that? It doesn't exist yet, at least, not in the > mainline kernel. > > > Hence reverting the revert. > > > > Signed-off-by: Badhri Jagan Sridharan > > No! Do not do this. If you do, there will again be a version of the > kernel that has the bug that caused the revert in the first place. Even > if it's only temporary, it could still affect people who are (for > example) trying to run bisections. > > Instead, reorder the patches. First fix the underlying problem that > led to the deadlocks. Once that's in good shape then you can safely > make this change. I forgot to mention... When you do eventually resubmit this, do NOT use the commit message above. It says absolutely nothing about what the patch actually does or why it is needed. It's okay to mention that this reinstates something that had to be reverted. But you also need to include the information that was in the original commit. Alan Stern