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 1gNfib-0000WA-Kq for barebox@lists.infradead.org; Fri, 16 Nov 2018 15:07:39 +0000 Message-ID: <1542380845.23489.24.camel@pengutronix.de> From: Lucas Stach Date: Fri, 16 Nov 2018 16:07:25 +0100 In-Reply-To: <20181115003637.GA16443@lenoch> References: <20181115003637.GA16443@lenoch> 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: Re: [PATCH] net: macb: dma_sync_* receive buffers To: Ladislav Michl , barebox@lists.infradead.org QW0gRG9ubmVyc3RhZywgZGVuIDE1LjExLjIwMTgsIDAxOjM2ICswMTAwIHNjaHJpZWIgTGFkaXNs YXYgTWljaGw6Cj4gUmVjZWl2ZSBidWZmZXJzIGFyZSBwcm9wZXJseSBzeW5jaHJvbml6ZWQgb25s eSBpZiBDYWRlbmNlIGlzCj4gR0VNLiBGaXggaXQgZm9yIE1BQ0IgYXMgd2VsbC4KPiAKPiBGaXhl czogODZkYzUyNTllMjVkIChuZXQ6IG1hY2I6IG5vIG5lZWQgZm9yIGNvaGVyZW50IG1lbW9yeSBm b3IgcmVjZWl2ZSBidWZmZXIpCj4gPiBTaWduZWQtb2ZmLWJ5OiBMYWRpc2xhdiBNaWNobCA8bGFk aXNAbGludXgtbWlwcy5vcmc+Cj4gLS0tCj4gwqBIaSBTYXNjaGEsCj4gCj4gwqBJJ20gdW5zdXJl IHRoaXMgaXMgcHJvcGVyIGZpeCwgYnV0IHdvcmtzIGZvciBtZSAoYXMgd2VsbCBhcwo+IMKgcmV2 ZXJ0aW5nIDg2ZGM1MjU5ZTI1ZCkKP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