From patchwork Tue May 2 16:21:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 8841 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp748954vqo; Tue, 2 May 2023 09:36:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EJ5APigrsG8tefL4NxubBZZ2lO78S8vT94YxEOxH2NP4oJR/Fh6CLy/tDQLX+Qy0xT10E X-Received: by 2002:a17:902:ceca:b0:1a6:dc1f:6230 with SMTP id d10-20020a170902ceca00b001a6dc1f6230mr20904089plg.55.1683045371145; Tue, 02 May 2023 09:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683045371; cv=none; d=google.com; s=arc-20160816; b=i5iGwJOL4w6pxE+BlaQOCPo+j/zXs7Kp1bzqGOKVtdBHYOgNaEpPefk0u+JX9bDpHt uqFufmseBDQNE73rejIZLxew3r0djNEGCHSJc3TkyRtHzO9nZz1B5DgJzXfu0dAt8z8I djFkDkkY24Jrokd9EFsonXEYIWDnJvERXeh1fuGRw2fQXJYYNNBkcPI8CiKfPVbUYgrT 7co6yHdqbKN+gC2s9MqzywdOJJzuwl1kqgWUnf/c9MVH0tioeJIeGKA/b6yRm6fRgW5T 901trizzIPUg+JYgYhDJJNcaOx0fNmAIjOOqldq3b9wAUwaf8qd7Qpv9h3I4GzS1UPLQ qyAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HzF+7Ul9bvIEB5vyGn9jkkGZ1/Y0SVR8+6lVNEEGei4=; b=hrWfMdeKotOl9LS8Gn5HVczdh0aFKW5yvMYpkXfQOH5Fri8DGOCw9rK4NZJMPjNoiV 02rEJPITTN8K2zLJ4vl+LE3618NwP1fuUwYKT+9jwoLEgEoSfipXSzxjlFaZNAD0XJ6U zBNZdj+BNgD7F1TDUXUoaZEkTKdnERy3YPnETAnZvhCrdcUzlZgbVdk5OPzswW6f3n9h pfAvO1MDhP3FqANCWdCaj+DCST5+wmtRyB9j7ZCJg7Xyiegt9PXpB79T+XWIO3lYWZAD gn6yIHQMKcTXGlAsTrUciIIiP+rl3U9mEackiOzmYDw9qYxi9Lpq49eDEnzE/e4wjL+Z 6oGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M/5NHz43"; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020a170902c40f00b001a52ce30cc2si33370281plk.420.2023.05.02.09.35.55; Tue, 02 May 2023 09:36:11 -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=@kernel.org header.s=k20201202 header.b="M/5NHz43"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233936AbjEBQVn (ORCPT + 99 others); Tue, 2 May 2023 12:21:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233922AbjEBQVl (ORCPT ); Tue, 2 May 2023 12:21:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0735D1B1; Tue, 2 May 2023 09:21:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 936FE626A7; Tue, 2 May 2023 16:21:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5890C4339B; Tue, 2 May 2023 16:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683044500; bh=cFJ8a6f80qJJIon/6vWEsVZtcR6LqKDxeq8RA9J2dN0=; h=From:To:Cc:Subject:Date:From; b=M/5NHz43vfQmeVan9T1m8BGENgz2iBJb2iu5TN26mU3NIkpn/G1AzYtJLO//F8ZTo edyA/vW27mJYu1MDztvV8LNFgSfqjvafZI4YCkml4MeH2iOVDqt856ceujbNPuJYKZ og1XAb//SujXKTc6rx40BnqKRbOc+Oh6l3Z66Qz0Mea7jBANo+UlAJdc6E6kWQmJo3 imCUHzYvGtwWR+yNUbafHE31vPFnhIgNd+1YxvgFQOcFEpfVa+TfzNkibIJ2fLdqPX Ul0AhgLp8RloN776uf0VKVK0NFNnQ5VILHSG8aPQjmfnuAZBhth6OL7V1yH6/i7fLk amVfxsNzOVvEg== From: Roger Quadros To: Thinh.Nguyen@synopsys.com Cc: gregkh@linuxfoundation.org, r-gunasekaran@ti.com, srk@ti.com, wcheng@codeaurora.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v2 0/2] usb: dwc3: gadget: Improve dwc3_gadget_suspend/resume Date: Tue, 2 May 2023 19:21:31 +0300 Message-Id: <20230502162133.148821-1-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764800983027062616?= X-GMAIL-MSGID: =?utf-8?q?1764800983027062616?= Hi, This series improves suspend/resume handling - check for error condition .suspend - avoid Timeout error and delay in .suspend Changelog: v2: - rebase on greg/usb-next - split into 2 patches. Add Fixes tag and cc stable. - do not check for !softconnect in error condition in dwc3_gadget_suspend() Roger Quadros (2): usb: dwc3: gadget: Avoid controller stop in .suspend if !softconnect usb: dwc3: gadget: Improve dwc3_gadget_suspend() and dwc3_gadget_resume() drivers/usb/dwc3/gadget.c | 68 +++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 34 deletions(-)