Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2413373ybt; Tue, 16 Jun 2020 05:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjD5P9OPYBffsva/BgVU6FOmUjjOFIIwUvByfRj4nNpvB89MPtc6TpOVjq+L86wC4cFmiq X-Received: by 2002:a50:a701:: with SMTP id h1mr2292267edc.170.1592311067193; Tue, 16 Jun 2020 05:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592311067; cv=none; d=google.com; s=arc-20160816; b=HU+cD1WLeDuffxIwgFmrF1vPUOjntkVxW//iGTajTZt6douvVQ+X5K1h/ztGYJVQiv tsBo0zLt1s2vD+UjH4ht7409uLrtkzTZWi0S4y63kEj/7UrIzEdy2XwS0gXRbPy8iA1F bitvyFa0Yi3pOdz91Yr8K4k6tKBMURLz8e7oHSC6AitH19qkRKuogEr1oqq1rao88Vc/ hV6Sa3tUglxKL43Nr92sADH9i/KPtu2WKHTvY5eYcRwRZx7RcN6ViWEAU5DwwuQmxAOg ojTq7toNk+jJQvtBMUGPERqTqYHb2Rn8mP9RqahE//Hmn5yezP/ZNW8iM0rHvIkFMRZA mTzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+GHnm45hE2jvr2nHAZ9rbe0xkhq/hG963s3MyoZ72c0=; b=Pl6M1cJT5OUIhut4E5E9c4KkvRKw55gr8nc59jfEzlFuGtoCvWM2BTXD2l0M/Ok1Pu +JcFxVc4OOEquMf6KmY1Z8htV7qU0Rv07/9K0ToEUNY8RJGn0BFO7mBe+//v3jx2ErhP KQW5TAPX6eezjpO8sSU9WNtBLCXQX6ZV1f9IFqPaZNnNurne9iGimd1dV0BPmHxVVOKR WGZ3gZXB3K//6S3s9E9SkB1E4Bgwocs1qHO/K2Cw7lCiUPRb9Pxk9mAXujlXxVKtE7Kp bHfPmvTip07YU0NYCtIaZEhG4xDjHN9fX0shkfrqZChAPkA4eYmTBVrYluSuou3KCkU2 mzfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ry5TuPar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si11766241edw.300.2020.06.16.05.37.25; Tue, 16 Jun 2020 05:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ry5TuPar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbgFPMfE (ORCPT + 99 others); Tue, 16 Jun 2020 08:35:04 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:51647 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726452AbgFPMfA (ORCPT ); Tue, 16 Jun 2020 08:35:00 -0400 X-UUID: 18f0da544a59497f86ccb810d66781e8-20200616 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=+GHnm45hE2jvr2nHAZ9rbe0xkhq/hG963s3MyoZ72c0=; b=ry5TuParlmxjOx5nT33uoyGIJz056/Nosl70ASUWDDsrb5z9G4U0BVQwv7hHKAGYbYN0087MwM6V3RcO904MgVdYFkiKKHGhH2hk/ORdNmX9zTJ0FDLshfQ6zx2evja7vu2FX3d9eFT2grb3zV3vVvIrYUtYug/DMMJzjm8mvtU=; X-UUID: 18f0da544a59497f86ccb810d66781e8-20200616 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1834094559; Tue, 16 Jun 2020 20:34:53 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jun 2020 20:34:49 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 16 Jun 2020 20:34:50 +0800 From: Macpaul Lin To: Chunfeng Yun , Greg Kroah-Hartman , Felipe Balbi , Matthias Brugger , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Sergey Organov , Fabrice Gasnier , , , , CC: Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin Subject: [PATCH 2/2] usb: gadget: u_serial: improve performance for large data Date: Tue, 16 Jun 2020 20:34:44 +0800 Message-ID: <1592310884-4307-2-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1592310884-4307-1-git-send-email-macpaul.lin@mediatek.com> References: <1592310884-4307-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: EDECF17A48CB3E8AC57607178CD1F115DB62B0B3FEBF009D4986F0C9798111442000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SWYgdGhlIGhhcmR3YXJlIChsaWtlIERNQSBlb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