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 1fn2nY-0008H4-M7 for barebox@lists.infradead.org; Tue, 07 Aug 2018 14:17:22 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 7 Aug 2018 16:17:07 +0200 Message-Id: <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] usb: gadget: allow to actually enable sparse fastboot support To: barebox@lists.infradead.org V2hlbiBzcGFyc2Ugc3VwcG9ydCB3YXMgKGludGVuZGVkIHRvIGJlKSBtYWRlIG9wdGlvbmFsIGl0 IHdhcwplZmZlY3RpdmVseSB1bmNvbmRpdGlvbmFsbHkgZGlzYWJsZWQgYmVjYXVzZQoKCUlTX0VO QUJMRUQoVVNCX0dBREdFVF9GQVNUQk9PVF9TUEFSU0UpCgphbHdheXMgZXZhbHVhdGVzIHRvIDAu IFRvIGFjdHVhbGx5IG1ha2UgdXNlIG9mIHRoZSBpbnRyb2R1Y2VkIGtjb25maWcKc3ltYm9sIHRo ZSBDT05GSUdfIHByZWZpeCBtdXN0IG5vdCBiZSBza2lwcGVkLgoKRml4ZXM6IGY0YjVkM2VlYjYw NyAoInVzYjogZ2FkZ2V0OiBmYXN0Ym9vdDogTWFrZSBzcGFyc2Ugc3VwcG9ydCBvcHRpb25hbCIp ClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2VuaWdAcGVuZ3V0 cm9uaXguZGU+Ci0tLQogZHJpdmVycy91c2IvZ2FkZ2V0L2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