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 1fGKmL-0004Y2-7g for barebox@lists.infradead.org; Wed, 09 May 2018 08:48:55 +0000 Message-ID: <1525855717.17568.16.camel@pengutronix.de> From: Lucas Stach Date: Wed, 09 May 2018 10:48:37 +0200 In-Reply-To: <20180508212951.6446-27-andrew.smirnov@gmail.com> References: <20180508212951.6446-1-andrew.smirnov@gmail.com> <20180508212951.6446-27-andrew.smirnov@gmail.com> 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 26/28] ARM: mmu: Simplify the use of dma_flush_range() To: Andrey Smirnov , barebox@lists.infradead.org QW0gRGllbnN0YWcsIGRlbiAwOC4wNS4yMDE4LCAxNDoyOSAtMDcwMCBzY2hyaWViIEFuZHJleSBT bWlybm92Ogo+IFNpbXBsaWZ5IHRoZSB1c2Ugb2YgZG1hX2ZsdXNoX3JhbmdlKCkgYnkgY2hhbmdp bmcgaXRzIHNpZ25hdHVyZSB0bwo+IGFjY2VwdCBwb2ludGVyIHRvIHN0YXJ0IG9mIHRoZSBkYXRh IGFuZCBkYXRhIHNpemUuIFRoaXMgY2hhbmdlIGFsbG93cwo+IHVzIHRvIGF2b2lkIGEgd2hvbGUg YnVuY2ggb2YgcmVwZXRpdGl2ZSBhcml0aG1ldGljIGN1cnJlbnRseSBkb25lIGJ5Cj4gYWxsIG9m IHRoZSBjYWxsZXJzLgo+IAo+IFNpZ25lZC1vZmYtYnk6IEFuZHJleSBTbWlybm92IDxhbmRyZXcu c21pcm5vdkBnbWFpbC5jb20+CgpPbmUgbml0IGJlbG93LCBvdGhlcndp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