From patchwork Wed May 30 12:01:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zeng Tao X-Patchwork-Id: 137215 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp4821415lji; Tue, 29 May 2018 21:03:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKwsNgeVvBnCy21MMy2paLH5zyM5/j4nfSkCrMIVVmfks312m6qe2+5DO7IKFe56RuOg77f X-Received: by 2002:a62:3b5d:: with SMTP id i90-v6mr1189889pfa.24.1527652996892; Tue, 29 May 2018 21:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527652996; cv=none; d=google.com; s=arc-20160816; b=e2PuGtiaAy7q8+ZZcTQ7dHmuzapAAYmR5IgKjLyJZFYwRO82oiuIySV4uaTZNtdAT/ fTDGiPw/O5uUOQtQ2PWIexEnrfkMSh0JUEY5Ipj3uEfNbUThqMVDm7mqOtzi7VArm1M5 UwD3rStTIy5FpkZ6rMc43hZ2O04mmU9SPV0bj2OmXvbv/Q2S7WUjgxQ91WtSnCPmpGD9 yABoOMXmQHaxiceOqX2UMBxUh3/elpy2gM4MKtXlvqI4/8VMMhcboJys4jKOMKxTRkAq KR5ptmK8HJcAZFy7Yb1PVO2GZEy8+wKOFgPxjXhqKEIzRNOrI+RllTSkcYMxWTGneez1 tsZQ== 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=UF60vfYyp1yxRF26I7cQyak4Gq93DXKH4RWTx3dYCzE=; b=OJNJYttX1VAp+J6rT2XgicVvVaKKXNK4QfFleCNRvykZGdkCVBhnVweiEw4yYdG3u2 0eOi8mJQmLCEXhuYFcJFkHmnCNgIAdSWiBmN2eXZb/0xZsh7O5k5PFyfHqfcyk7OeBcB P9NOpWsWhr0beW21+OLWNwYOitoY9fHNJ8ljE2ln6rg2dkCSno3Td70T9emdle2jCvV2 nceRRwQ61I+tMBZxB7uYBBCxGq6NN25hux1DWzTQAb/DoiDl8e0d9dnePfWwyeM31HmY 4zHxbgcW3L/NQyD8jKJxc1XPPlR6XRQsd/24lQUuxzR8CCyKA340eXjBMUBs6UUH7Xwr Vz7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-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 u19-v6si34083711pfn.241.2018.05.29.21.03.16; Tue, 29 May 2018 21:03:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750756AbeE3EDB (ORCPT + 3 others); Wed, 30 May 2018 00:03:01 -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 X-Originating-IP: [10.69.192.158] X-CFilter-Loop: Reflected Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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)) {