Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754501AbbEMIrH (ORCPT ); Wed, 13 May 2015 04:47:07 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:49402 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813AbbEMIrD (ORCPT ); Wed, 13 May 2015 04:47:03 -0400 From: Arnd Bergmann To: Maxime Ripard Cc: linux-arm-kernel@lists.infradead.org, Vinod Koul , Dan Williams , Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Lior Amsalem , Herbert Xu , Thomas Petazzoni , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, "David S. Miller" Subject: Re: [PATCH 2/8] dmaengine: mv_xor: add support for a38x command in descriptor mode Date: Wed, 13 May 2015 10:46:45 +0200 Message-ID: <2913865.DiE4h2cH6J@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20150513081535.GS10961@lukather> References: <1431445063-20226-1-git-send-email-maxime.ripard@free-electrons.com> <4862159.g8Sk9nOiS2@wuerfel> <20150513081535.GS10961@lukather> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:G5wymoEXkBfEbbzc0qh9ejOJfs9dXQy0GlMlFwHmwnEhN8kgOBN xO+ycO01gznEkzj26y0KfE5A0cdyuaOWaJCy8XvisE3yuvIEwcnJM7z5uPEDzD7ZbaWbbOc To66ShBMbxbS8YOFUXh3oL+C6L47ZeCLDKGwW0Fv5/ZyttSjeAfSyzGyRt7w7TJFLQZnkVi i4Q57C0uty1MxUIxrqPZw== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 920 Lines: 25 On Wednesday 13 May 2015 10:15:35 Maxime Ripard wrote: > > Alternatively, you could leave the XOR_DESCRIPTOR_SWAP flag disabled > > and just swap the descriptors manually like a lot of other drivers > > do. You have to swap the mmio accesses anywya. > > That won't be easily doable however. > > Not only the endianness of the individual fields in the descriptor > changes, but changing the endianness also swaps the fields themselves > by pair of u32. > > You can see that here: > http://lxr.free-electrons.com/source/drivers/dma/mv_xor.h#L159 > > So I'm guessing that leaving it like it is was the more readable > solution. I see, yes that would get a bit ugly. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/