Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4849860rwb; Tue, 8 Aug 2023 15:11:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtbx0p4x1ypyyQqnmaNPkwOauCm7tOs5mOvfFNqQwtKCg0Uk062xN2hyZCyzcSu2ky7FE9 X-Received: by 2002:a05:6512:368c:b0:4f8:6560:6436 with SMTP id d12-20020a056512368c00b004f865606436mr531381lfs.9.1691532662471; Tue, 08 Aug 2023 15:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691532662; cv=none; d=google.com; s=arc-20160816; b=DsJinLesHp9oUv8G05A9gLm46My8r2J7y3JAQCLpf7Q8yHP+DPyPqgMhM2QHfUbr0k 8GNIIYfDPv3ENwVczTnYp4GfDMvUbmfzq5oWDi4PjWoNHW3nuzgdxs/gTlE+HdO/qreQ ajqmwK6QTghRNKBvnl5oWJkTX5V/njPMgkygCNMb0ReohRYD7ABHijO5apHemFCrImaW MmT2kJzyr7EyYWa33ReHSZFNVhVIOF8c1Ulot5PcNIuOC12jscb+Q/bDk5BgySyerFu5 EyMQQ4iPYxdbbcj2tz0voO0pY9ShCKWYf1/vnjOz8gOO8RsvBWob2QdBSFqPS22WDsMq wpIA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CmD2buXCYeHu6RrPG5QUFypTflXFQZGomaC5QIaeo5Q=; fh=EsJJb0BDvkYqK33eaFEfHChYok3yh3iOXNNDuf+dY74=; b=S/dfxueILZpzlEKfIjogQ4Ps1y4CvXRIluGJYQFrU7Xn11dquH1fJGAx6Ij9VAcM8y ZBCmQcCy72IN9x9qlLAmHuB6T6Td1H4AsaqVpvKoa9Z9hxBCceCtDBmqZVxlSsBK8tUF 0qTnw3z1cuIuDhIH0OBYOIz3FgI/XJsf/Njz6tpSkcDI7Mpq1r3DzPHj+FxSQsMqGykA 9D0K7aqZXCuGr+bFjqqH+KK8AxynszCZGzEGkCkHG6/Tuw7MirbCG4AIsnb7pMGl6hUW RJVFPNQd/AsZPnZDN6hqZ+mrInWryKM0+77nEJ/WzSYjvbAYJv/P6ltRnmORw/20+Ckz YZ4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XzyFfvsq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by17-20020a0564021b1100b005233e789ccasi3144376edb.456.2023.08.08.15.10.38; Tue, 08 Aug 2023 15:11:02 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XzyFfvsq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235367AbjHHTOQ (ORCPT + 99 others); Tue, 8 Aug 2023 15:14:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235270AbjHHTNy (ORCPT ); Tue, 8 Aug 2023 15:13:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 165C690A9; Tue, 8 Aug 2023 09:36:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D0D8E62430; Tue, 8 Aug 2023 08:17:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC2BCC433CB; Tue, 8 Aug 2023 08:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691482631; bh=K20OPC5mIbzsPiYWUHqX9jSEjf0CZwpl3w8OqWWhKfc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XzyFfvsqOn2SmKgAq45rOvihS03doRh6QVDx0L+nurJuDyOhD0o9FSNMIPMledtLZ 4yVhXcVtf+iv4AKdL45Nuk1EOLhr47xyrvoxYA4/EurbRJWZCJAme15gWcwnynYLIq X0wCYloPOy0wX9q0pAOQPvWCvzQXrZTizIRlG9mY= Date: Tue, 8 Aug 2023 10:17:08 +0200 From: Greg Kroah-Hartman To: Luke Lu Cc: Neil Armstrong , linux-usb@vger.kernel.org, linux-amlogic@lists.infradead.org, Thinh Nguyen , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Da Xue , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: dwc3: meson-g12a: do post init to fix broken usb after resumption Message-ID: <2023080852-estranged-limpness-aafb@gregkh> References: <20230808032510.31754-1-luke.lu@libre.computer> <2023080851-duh-scroll-09bf@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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, Aug 08, 2023 at 06:09:45AM +0000, Luke Lu wrote: > HI Greg: > > On Tue, Aug 8, 2023 at 4:56 AM Greg Kroah-Hartman > wrote: > > > > On Tue, Aug 08, 2023 at 03:25:10AM +0000, Luke Lu wrote: > > > Device connected to usb otg port of GXL-based boards can not be > > > recognised after resumption, doesn't recover even if disconnect and > > > reconnect the device. dmesg shows it disconnects during resumption. > > > > > > [ 41.492911] usb 1-2: USB disconnect, device number 3 > > > [ 41.499346] usb 1-2: unregistering device > > > [ 41.511939] usb 1-2: unregistering interface 1-2:1.0 > > > > > > Calling usb_post_init() will fix this issue, and it's tested and > > > verified on libretech's aml-s905x-cc board. > > > > > > Signed-off-by: Luke Lu > > > > What commit id does this fix? > Using "git blame" to explore the history, found dwc3_meson_g12a_resume() was > introduced along with the file of drivers/usb/dwc3/dwc3-meson-g12a.c. > as Da Xue pointed out, the suspend/resume was never tested in GXL based SoC, > so it's broken since the beginning.. > > For the Fixes tag, I think it's proper to use "5b0ba0caaf3a: (usb: > dwc3: meson-g12a: refactor usb init)" > since the usb_post_init() function was introduced in this commit and > this patch will depend on it. > > > Should it also go to stable kernels? > > > Yes, It would be great if the patch can go to stable tree, thanks for > suggesting this > I have it tested on 6.1-lts tree. > > Btw, I would wait for a few days for more comments and CC to stable in > next v2 if no objection. No worries, I'll drop this from my review queue and wait for a v2. thanks, greg k-h