Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3818837rwd; Mon, 29 May 2023 17:52:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60XjbPGRjS3xw4Crb2UZf5fJsHfWNW9JSgUKBqlIbcX5+u7YdAeCMWSwFj6AC0zufrWu1V X-Received: by 2002:a05:6a00:b8c:b0:64c:ae1c:3385 with SMTP id g12-20020a056a000b8c00b0064cae1c3385mr483783pfj.32.1685407941314; Mon, 29 May 2023 17:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685407941; cv=none; d=google.com; s=arc-20160816; b=iW0ru9QfuY/jpgLgxvwYcuHJZbqA3cW+/Mf2L9VLyK0eil3pqXagwPejtRvanH2Dt+ wfLspUG8JkSoO/a5fzTd6ESiWk5OyCbCJk3MLaOHBW31IJF3quL3z9gV2kG4B1Lg7B6N YTdtG6We82LI1ESonWgv0dbP3vNwke2+U1ryasBjO3WhWLg5VmLUoOt/c4lOXzGtsGvs 6gE8XfWuTHGN4NUI28ExFU4vcSVLusKYQbfYHoqjMV33vTCkdvdmDW3Ru5WJzswIc5Fp icdFrXvL7tm2imMzO2kVDkXxEUObIocEYXyOHMISm4yvXaznWZS+IJ+RS4tEiWduJsdY X4lA== 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=uwPRZq0FtJ0kr7MVeqiVwcENOpafS328lnvJs17vpsg=; b=Z/mjjRfucLjYjdkVAQe604llc9u0BRD58Fhdd3mRxJ4AwtrNc3gXi01u3L76GNqXBK JWuCJ42n+hCUCfuo+MZxyWiEtSnoO17CH+bQ8TnVHCvtNKJyRO93rNnWs0LamMjqUWDk 3AQv96C5S9/tMwtLWljMczF2LKR85SBatQlUZ177Q9Ocvc6hrhmxO2Ec8rZZX7DhjSBs TpirTCyqqqzPOLj6g6XQb3Vj6HnkCOcNz3/3NOfrUPGK5JIHO2EbAPfVLlNX9FibVIlh yBmOQerpwZL876FHpQ7qtY46fpFeHq0aSeCqrGa+MIt1a65TjuNkgKOrR1XfN+okLgcY z14g== 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 a27-20020aa794bb000000b0064547f9483bsi658190pfl.405.2023.05.29.17.52.09; Mon, 29 May 2023 17:52:21 -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 S229595AbjE3AmW (ORCPT + 99 others); Mon, 29 May 2023 20:42:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjE3AmV (ORCPT ); Mon, 29 May 2023 20:42:21 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 68745DB for ; Mon, 29 May 2023 17:42:19 -0700 (PDT) Received: (qmail 389126 invoked by uid 1000); 29 May 2023 20:42:18 -0400 Date: Mon, 29 May 2023 20:42:18 -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: <6547e73e-81e4-4a29-babf-13f852f1eb8b@rowland.harvard.edu> References: <20230529234816.3720623-1-badhri@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230529234816.3720623-1-badhri@google.com> 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 11:48:14PM +0000, Badhri Jagan Sridharan wrote: > This reverts commit f22e9b67f19ccc73de1ae04375d4b30684e261f8. > > 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"). 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. Alan Stern