From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.megiteam.pl ([31.186.83.105]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwnlO-0008O7-7v for barebox@lists.infradead.org; Mon, 03 Sep 2018 12:16:03 +0000 From: Marcin Niestroj Date: Mon, 3 Sep 2018 13:44:38 +0200 Message-Id: <20180903114452.4611-14-m.niestroj@grinn-global.com> In-Reply-To: <20180903114452.4611-1-m.niestroj@grinn-global.com> References: <20180903112408.2086-1-m.niestroj@grinn-global.com> <20180903114452.4611-1-m.niestroj@grinn-global.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: [PATCH 04/18] crypto: caam - handle core endianness != caam endianness To: barebox@lists.infradead.org Cc: Marcin Niestroj UGljayBjb21taXQgMjYxZWEwNThmMDE2YmMwNGZhMDY0MzQ4YWQ5YmYzOWQ5NDM3OTM4MSBmcm9t IExpbnV4CnVwc3RyZWFtLgoKICAgIGNyeXB0bzogY2FhbSAtIGhhbmRsZSBjb3JlIGVuZGlhbm5l c3MgIT0gY2FhbSBlbmRpYW5uZXNzCgogICAgVGhlcmUgYXJlIFNvQ3MgbGlrZSBMUzEwNDNBIHdo ZXJlIENBQU0gZW5kaWFubmVzcyAoQkUpIGRvZXMgbm90IG1hdGNoCiAgICB0aGUgZGVmYXVsdCBl bmRpYW5uZXNzIG9mIHRoZSBjb3JlIChMRSkuCiAgICBNb3Jlb3ZlciwgdGhlcmUgYXJlIHJlcXVp cmVtZW50cyBmb3IgdGhlIGRyaXZlciB0byBoYW5kbGUgY2FzZXMgbGlrZQogICAgQ1BVX0JJR19F TkRJQU49eSBvbiBBUk0tYmFzZWQgU29Dcy4KICAgIFRoaXMgcmVxdWlyZXMgZm9yIGEgY29tcGx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