Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1739503rwb; Wed, 26 Jul 2023 18:19:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlG64O9s28osQFjgrH8doY8UrGVHcDZbykcHCEPQCiuCLl3PZhvnEflCe8DZJZHb9en4C9Qs X-Received: by 2002:a05:6808:2a4c:b0:3a4:2829:326d with SMTP id fa12-20020a0568082a4c00b003a42829326dmr1140833oib.14.1690420785763; Wed, 26 Jul 2023 18:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690420785; cv=none; d=google.com; s=arc-20160816; b=ydGpaoNsmMjRoT3Xiu6+zDbNs7qH6CNVK1PD2erDhN5FXZXCB9r6pTEDcreL1aHz8h 8Zv17LEB8djAbs1oVgwq9+x9bKglZLBUp72dptgUPEcPMVnENgkH5L+YTQ0RHsCgFrlg 8XYukrlCi2fSBBF20Yp5N89FYyNSZnTtb0gEBkt6LNbgX757ZfYiKgu7Do1sjaH7CjlP pESEHmM96/EWRA16fgvXUXilIFpyyQtxVAuCxtvzJcsFEZy2RIYu/rt6kCuHKubYgqxy T6Cxqku1j5Wn/qMloWcXLcVC8qomNzAj7aip+9Gx6+/n3uqDc7KUav/dOIJ0iBCLoSlg jkQg== 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; bh=tw7wPqB0ble9Aj57nhkPS7VSUpYA4aX5+58Qybd1vXY=; fh=5nBN7bZqiczIVFkNpCFFjaA5tUUPiME1tRvW0UNAT58=; b=HOThnYRMa1o1P226pgVsfd/+CU6ORQvUw4L39EpFvBDDf9EDZ1FyErs6jwbj2nZyJQ DxsA2rFOvOePFj8gV4TlKEGvTTiNVwbdVCrorg2Rb/HHXXTLffTipNdkCJHLUh+0SD4C rw9qM2vRlbp2pz8IHbssR18EfyqA0uCuxvnZPenYbikaKQze8eT2CtcBdL4z4yhM4N6p tIYONtXJfS4/ZLNRjvDrz2yKa1zuN0G0H0V9EoWo962B4pXllxX2SX+GC52Ftv5lQel6 q6ZWZg5giiV1Prc1MBMW4Hc/UW6vzWrBjmX9yv1kzuSqkZOk3tE50Qh7sQOtOBXCgIt3 nTiA== 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 e193-20020a6369ca000000b0055b6a717367si241723pgc.45.2023.07.26.18.19.31; Wed, 26 Jul 2023 18:19:45 -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 S230187AbjG0AwS convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Jul 2023 20:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjG0AwQ (ORCPT ); Wed, 26 Jul 2023 20:52:16 -0400 Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB75026A6; Wed, 26 Jul 2023 17:52:14 -0700 (PDT) Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 36R0prL4049406; Thu, 27 Jul 2023 08:51:53 +0800 (+08) (envelope-from surong.pang@unisoc.com) Received: from SHDLP.spreadtrum.com (shmbx05.spreadtrum.com [10.29.1.56]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4RBBy64wsQz2K5pr2; Thu, 27 Jul 2023 08:50:22 +0800 (CST) Received: from zeshkernups01.spreadtrum.com (10.29.55.99) by shmbx05.spreadtrum.com (10.29.1.56) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Thu, 27 Jul 2023 08:51:52 +0800 From: Surong Pang To: , , , CC: , , , Subject: [PATCH] usb: dwc3: gadget: let pm runtime get/put paired Date: Thu, 27 Jul 2023 08:51:50 +0800 Message-ID: <20230727005150.18836-1-surong.pang@unisoc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Originating-IP: [10.29.55.99] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To shmbx05.spreadtrum.com (10.29.1.56) Content-Transfer-Encoding: 8BIT X-MAIL: SHSQR01.spreadtrum.com 36R0prL4049406 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 pm_runtime_get is called when setting pending_events to true. pm_runtime_put is needed for pairing with pm_runtime_get. Signed-off-by: Surong Pang --- drivers/usb/dwc3/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 5fd067151fbf..9c835c5f9928 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -4720,5 +4720,6 @@ void dwc3_gadget_process_pending_events(struct dwc3 *dwc) dwc3_interrupt(dwc->irq_gadget, dwc->ev_buf); dwc->pending_events = false; enable_irq(dwc->irq_gadget); + pm_runtime_put(dwc->dev); } } -- 2.17.1 ________________________________ This email (including its attachments) is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Unauthorized use, dissemination, distribution or copying of this email or the information herein or taking any action in reliance on the contents of this email or the information herein, by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is strictly prohibited. If you are not the intended recipient, please do not read, copy, use or disclose any part of this e-mail to others. Please notify the sender immediately and permanently delete this e-mail and any attachments if you received it in error. Internet communications cannot be guaranteed to be timely, secure, error-free or virus-free. The sender does not accept liability for any errors or omissions. 本邮件及其附件具有保密性质,受法律保护不得泄露,仅发送给本邮件所指特定收件人。严禁非经授权使用、宣传、发布或复制本邮件或其内容。若非该特定收件人,请勿阅读、复制、 使用或披露本邮件的任何内容。若误收本邮件,请从系统中永久性删除本邮件及所有附件,并以回复邮件的方式即刻告知发件人。无法保证互联网通信及时、安全、无误或防毒。发件人对任何错漏均不承担责任。