Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2413130ybt; Tue, 16 Jun 2020 05:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFwCI7n1GJ/i2AJ+koZpBlAiEWYicjWRgMv1BpQW5ibpfortnDd/lVjw4b6aVc759Rv1bO X-Received: by 2002:a17:906:f1d5:: with SMTP id gx21mr2660190ejb.416.1592311038549; Tue, 16 Jun 2020 05:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592311038; cv=none; d=google.com; s=arc-20160816; b=wnGVQ6n3yQI8NZNM7CFsWmv48bTaAsB+LoVzVb/pPfCdDaMUvSE99HIU4quV8fTZKI /hTBQGmilVPw/mGX1cCHFHxiwAOA6g+UNdNFW6XmTsJejN6t2FkZ2TKK7UeoclSWgQwj 3xjLdGz9cjCUoREXtXmtXIo3M9AFN/kd6fS4ecil/3YY3LulLOVZ2Ky9URWdf5Q2fBuT x/MN/MHBbMCMdDtHpqaTf3atPkNW1xkrmcmw+kmjCpxGSBNoc7He66soTpoJGSdbBb7C hrEdb7cCvYrGB+gPWo1MFml8ahIJZVwOh4aTriORIUPYTxyU9fooSRznrdU5aa/H71mV cW+g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1y6jYCU5bn8D2X7/K/Tvzzlj7X36JuNHASO4pxrPu4w=; b=roQSOMtEaWzD6aBLS/KqZa0vPcv0u2OdlPak4hTqqCQnE2+cGuOkhwiOAvRzQz3/5L rkSh5XzaH4pRec09zPYMJQSRjhCI+4WHcdWrwxyPtUcUKu7kIoM7TjgR7B1TVFfITsqU 723TZqumx0NO4JCgCpidJDwpOBp4km1WBiyqzDZyDDZfx+rehvEKM6VgsH6R6E22XvJA Md8fZsrcxfWsBCVTYBRt04+hdx2/zivWPbf+n2OtaWHydzXPEHaxUUfQ81GfQ7D51LmH 7sbPaGX3Oj+cCb76I+Sxa5vBEqx2LSNgIpDoILn7dSCA7ATVSq27cUpDx8CMk6CLvMEk 6iOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JCHVluwv; 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 h4si10297516edv.535.2020.06.16.05.36.55; Tue, 16 Jun 2020 05:37:18 -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=JCHVluwv; 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 S1728250AbgFPMe6 (ORCPT + 99 others); Tue, 16 Jun 2020 08:34:58 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:62858 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726452AbgFPMe6 (ORCPT ); Tue, 16 Jun 2020 08:34:58 -0400 X-UUID: c02764eaeb6245f7bd17e571a64225b0-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:Message-ID:Date:Subject:CC:To:From; bh=1y6jYCU5bn8D2X7/K/Tvzzlj7X36JuNHASO4pxrPu4w=; b=JCHVluwvubnAC79HGWfxQzzbZHBAdnggu2+TvgzBhgLQH4zt6HkdYKRLcHgEjSFP1988uVhl5+eAJEQbL0bMrRiwaP9khpc8Xbb1LkhQmOc+g1uDNSo0O1yVDknyGEbVlrFM/wekguEQ6endFEJxhF6jHvaNLC1NPDBnivckaFE=; X-UUID: c02764eaeb6245f7bd17e571a64225b0-20200616 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1283620589; Tue, 16 Jun 2020 20:34:54 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jun 2020 20:34:45 +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:45 +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 1/2] usb: gadget: introduce flag for large request Date: Tue, 16 Jun 2020 20:34:43 +0800 Message-ID: <1592310884-4307-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain 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 U29tZSBVU0IgaGFyZHdhcmUgbGlrZSBETUEgZW5naW5lIGNhbiBoZWxwIHRvIHByb2Nlc3MgKHNw bGl0KSB0aGUgZGF0YQ0Kb2YgZWFjaCBVUkIgcmVxdWVzdCBpbnRvIHNtYWxsIHBhY2tldHMuIEZv ciBleGFtcGxlLCB0aGUgbWF4IHBhY2tldC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