From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fn2ty-0001yN-2h for barebox@lists.infradead.org; Tue, 07 Aug 2018 14:23:59 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 7 Aug 2018 16:23:44 +0200 Message-Id: <20180807142344.26219-1-u.kleine-koenig@pengutronix.de> In-Reply-To: <20180807141707.25909-1-u.kleine-koenig@pengutronix.de> References: <20180807141707.25909-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2] usb: gadget: allow to actually enable sparse fastboot support To: barebox@lists.infradead.org V2hlbiBzcGFyc2Ugc3VwcG9ydCB3YXMgKGludGVuZGVkIHRvIGJlKSBtYWRlIG9wdGlvbmFsIGl0 IHdhcwplZmZlY3RpdmVseSB1bmNvbmRpdGlvbmFsbHkgZGlzYWJsZWQgYmVjYXVzZQoKCUlTX0VO QUJMRUQoVVNCX0dBREdFVF9GQVNUQk9PVF9TUEFSU0UpCgphbHdheXMgZXZhbHVhdGVzIHRvIDAu IFRvIGFjdHVhbGx5IG1ha2UgdXNlIG9mIHRoZSBpbnRyb2R1Y2VkIGtjb25maWcKc3ltYm9sIHRo ZSBDT05GSUdfIHByZWZpeCBtdXN0IG5vdCBiZSBza2lwcGVkLgoKRml4ZXM6IGY0YjVkM2VlYjYw NyAoInVzYjogZ2FkZ2V0OiBmYXN0Ym9vdDogTWFrZSBzcGFyc2Ugc3VwcG9ydCBvcHRpb25hbCIp ClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1Lmts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