Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4839159rwb; Tue, 8 Aug 2023 15:01:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDV9p0ou/6/ProGm9MxZl9DEAAkKDA/TpXCG93nex3zoA7HX7q1wHdMnOuNj6xf+EwEzCw X-Received: by 2002:a17:907:78c1:b0:99b:499d:4635 with SMTP id kv1-20020a17090778c100b0099b499d4635mr677637ejc.75.1691532094885; Tue, 08 Aug 2023 15:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691532094; cv=none; d=google.com; s=arc-20160816; b=sfWyePVJVhLrE1s54dQgXTjCHwSxEpw79qlmwxCj9cndVJpBQLeLzpPJLWQ9hzNQk2 owiI5LLfgzVRmQWFsjm1lT5yxsxzccFNNyUEUV0C5KjdnGtG1lu/fP7LX0aNOaIq9vun dtD6pmI+TSaUNbtsmWmnPiOMlYYPcmR/+djXPMTdVc8pNF3/r8hoqLNEe3cpnSd6jbWk 6mtkObHoZMpCD9OlHH8diKKSfX5KjgxrL8X8f25bJ1IUjc02XkZODfvgxAFq5WbG2RXp ikes4+wv7xWTpvp1E7zFwF+UAwQYcU6xREYdp7r2wLu4PGT41BVrC5ESlBtY6oxmzZ6r RHxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wYPXrTj0ac3/TbvRu9WrEZ10bFywEsKaB4qoBFTir7E=; fh=PRz01TvHe9+5E3fG1Mt44KhfAs+gsNUDnqtF5dBUVDw=; b=OwK1TfnX3QI46p3UsEvghayLy0FKvheZXW9dcalLa33UmKwt+ZTaVCzUWucv14r9t9 8jLVabac0yjOb2LLxhFcKmkoAbzSCOrGlZb7T94fEoGyrRNTNBlmtUqfMSPyDJpwAqIw IyvRQuN3ouXM2zAngYGtTqDxwjnJQ+HeUPXAEtY502U3yuRydRvAa1WeBXiycBPYkTPk 9NBg0F1v2VqBcrwQNbPjSTU73QmoBtQ9G1CmXZyxVLsXbYunBW9522sv/SNJGbFaKDb6 vOunloVDMAlV9bH9WliLCjvNyf4ZssmkZbLvaRRVlj9/lVzEE8pM0S46AG9BvNi5ZCAD gAUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@libre.computer header.s=google header.b=A5HHa47L; 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 z6-20020a170906240600b0099bd00f8f73si7659575eja.742.2023.08.08.15.01.09; Tue, 08 Aug 2023 15:01:34 -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=@libre.computer header.s=google header.b=A5HHa47L; 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 S235406AbjHHSLO (ORCPT + 99 others); Tue, 8 Aug 2023 14:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235378AbjHHSKl (ORCPT ); Tue, 8 Aug 2023 14:10:41 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F9E1BAE5 for ; Tue, 8 Aug 2023 10:13:05 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3110ab7110aso5153930f8f.3 for ; Tue, 08 Aug 2023 10:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libre.computer; s=google; t=1691514784; x=1692119584; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wYPXrTj0ac3/TbvRu9WrEZ10bFywEsKaB4qoBFTir7E=; b=A5HHa47LuBlyQT5CZO8LKtXoptTPXL+CNL0aeCwjZ3TZsGgjfeggKRn8qi8oqnFVzP H8HdeQsondiDt9lIqw0XCPyX48bKWuaRWe09Uhb97b1tKaXObTtlT1Un3dV0AVNk43BQ YGgXdcsQfliK9+Y8dlniOmcRJ/ZVkEZBVGbU7jZ52Ky8d83vbt6sQhnPqhiOn4aDZ7jH ngNRrj+wEoJn6tMrx8ZQywZSOs697eh1h/N/viD98CDhjlpnhDfRYlA6hkCBjE6ZOvvK hcDxWiXw2RE0/h6jgLLkdN4fH8681/gMrDSiJLyoKLi2uz7vhoSLgNqXWO8poobOb+EB BD1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691514784; x=1692119584; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wYPXrTj0ac3/TbvRu9WrEZ10bFywEsKaB4qoBFTir7E=; b=JCYhTlCMeH7xP95D1t15uv2C0EqrMb3XKh7qLc07iVGaLYi3lM+MvNpTdxURXUy35b AkJCqUIpavFx/XlrGiQrHHHpztgL711mD/c7bxAzmZKwJFtCYqQSL/cy2enbCn7RbbtC hRRM5tD9BhXL135lYiTC1RK5ac3ffvInbAtZqVzkKtn44uu9pclp1bx2ZTB573yalgY2 51GE3N/FfgPFt7Ktk0x5L4A2QlVcZpxL/H1l74uAXGRQw4AdRZFvurSlZkSqRrGdc9Kn CE77G4vpL+K5JI2BFm/NqbLU6511z25SId6/9Tx+6LjaIBEOIMCRF2n6tZaIOK1dTWA5 DwbA== X-Gm-Message-State: AOJu0YzAQc+gntwzazU4+JCAmoFQglvEAeedOeNhE5QvMfn6gYEfAspq B74FKQGqxtw5fK02+VXzAMuEeJWKznp1I03Gr+mbOAEDis8Ii3gJV0GpCfnEuBQ= X-Received: by 2002:a2e:87c6:0:b0:2b6:e2aa:8fc2 with SMTP id v6-20020a2e87c6000000b002b6e2aa8fc2mr6824193ljj.46.1691474997354; Mon, 07 Aug 2023 23:09:57 -0700 (PDT) MIME-Version: 1.0 References: <20230808032510.31754-1-luke.lu@libre.computer> <2023080851-duh-scroll-09bf@gregkh> In-Reply-To: <2023080851-duh-scroll-09bf@gregkh> From: Luke Lu Date: Tue, 8 Aug 2023 06:09:45 +0000 Message-ID: Subject: Re: [PATCH] usb: dwc3: meson-g12a: do post init to fix broken usb after resumption To: Greg Kroah-Hartman 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 HI Greg: On Tue, Aug 8, 2023 at 4:56=E2=80=AFAM 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() wa= s 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. > thanks, > > greg k-h Luke