Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4063720imm; Tue, 29 May 2018 21:08:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLufJqXburTBg6Q8MYQiEHgbVo/WVumDIRvyH1dwK0EPIEWEekmMRcqzcS/5efPfuEFZCxG X-Received: by 2002:a63:5f12:: with SMTP id t18-v6mr882730pgb.81.1527653290128; Tue, 29 May 2018 21:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527653290; cv=none; d=google.com; s=arc-20160816; b=LqerFVKX3fPgv/KBUFGmlzkxMAcjFqhhf5Esj7cjMlYurFW01oHIe09pLfgesMqzeE m3ZXaCjZIQ7vC/TWDP5haNnudBttueugMis+XrWpm5whf+MSAxhfsbwhhd3c2c/x5UTr 0HUagL5372PZcRfLxI3Ud2t0IOAwlMJYs5nQeKpAn8AmBkCw4QA4bItIIloSvtnHrBXf 4SHtWqsQQZT+E1cNQZZOFs5jsNcQa09/C3bSJyIDuaDqa6bKdMVIB6lppFuZs0adIVm5 LC+qhSFkb+JH1maqj37WBAyTJ54Aujwc7JNwAr923IJs5gGhv4lTqsOu3nZLjCsxcrFf agkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=B0QSqwPs+38l5UamRXQdjULPeKir0vbJDyJVev2WfEM=; b=HgHPRSs2XBSAI4Lib/JGwl+K+9tIT6zMo8ft85jK2vEgqmlKg5uQKy8NpsMpeEyx4y 1orRP9eNPYwYPl9FcDemdAXCIupJPPEBrlhgIbSJb8+u9r3Bnc8ubZ2yK/lEwoDpEnWQ k4fwy4xp8BaiNVhbvKS5oaO+U8K4v97hlAsN/4z/APx/WNFRqGuj9vAEJkdvBAUiStzn wxCGiTK2DwwEvPi5vp/9WHhZ83v4E56xKCclduB+/Ghc04VFjjBHev2spB5I1XxRzO3V Sd1QwP0IIP1KnWrncvFHKGMFIlDxTCL6Uf+hHxu7lmsqjkHfuFZxHZqKF3vceP3u8WZC UfyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc7-v6si33619119plb.310.2018.05.29.21.07.44; Tue, 29 May 2018 21:08:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750827AbeE3EDC (ORCPT + 99 others); Wed, 30 May 2018 00:03:02 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8205 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750735AbeE3EDA (ORCPT ); Wed, 30 May 2018 00:03:00 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8CEF7AE1E8E4C; Wed, 30 May 2018 12:02:46 +0800 (CST) Received: from dessert.huawei.com (10.69.192.158) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.382.0; Wed, 30 May 2018 12:02:37 +0800 From: Zeng Tao To: CC: Zeng Tao , Greg Kroah-Hartman , , Subject: [PATCH] usb: dwc2: gadget: fix missing process for isoc descriptor dma mode Date: Wed, 30 May 2018 20:01:15 +0800 Message-ID: <1527681676-44003-1-git-send-email-prime.zeng@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.158] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If it's the first request to queue, and we are using descriptor dma mode for isoc transfer, we only need to add the request to the queue, and it will be processed in the future nak interrupt handler. Signed-off-by: Zeng Tao --- drivers/usb/dwc2/gadget.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index f0d9ccf..48e3a48c 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -1365,6 +1365,9 @@ static int dwc2_hsotg_ep_queue(struct usb_ep *ep, struct usb_request *req, return 0; } + if (using_desc_dma(hs)) + return 0; + /* Update current frame number value. */ hs->frame_number = dwc2_hsotg_read_frameno(hs); while (dwc2_gadget_target_frame_elapsed(hs_ep)) { -- 2.7.4