From: Fabien DESSENNE Subject: Re: [PATCH v3 2/5] crypto : stm32 - Add STM32F4 CRC32 support Date: Mon, 29 May 2017 07:56:48 +0000 Message-ID: References: <3c520bbef98c630ca7de609f8ec27405e2ac07d4.1495463449.git.cosardindar@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: "davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org" , "robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" , "mark.rutland-5wv7dgnIgG8@public.gmane.org" , "mcoquelin.stm32-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , Alexandre TORGUE , "linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" To: Cosar Dindar , "herbert-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q@public.gmane.org" Return-path: In-Reply-To: <3c520bbef98c630ca7de609f8ec27405e2ac07d4.1495463449.git.cosardindar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Content-Language: en-US Content-ID: <58173B46F577A94CB9B621165C5FAB39-qxv4g6HH51o@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-crypto.vger.kernel.org SGkgQ29zYXIsDQoNClRoYW5rIHlvdSBmb3IgdGhlIHBhdGNoDQoNCk9uIDIyLzA1LzE3IDE2OjM0 LCBDb3NhciBEaW5kYXIgd3JvdGU6DQo+IFRoaXMgcGF0Y2ggYWRkcyBDUkMgKENSQzMyIENyeXB0 bykgc3VwcG9ydCBmb3IgU1RNMzJGNCBzZXJpZXMuDQo+DQo+IEFzIGFuIGhhcmR3YXJlIGxpbWl0 YXRpb24gcG9seW5vbWlhbCBhbmQga2V5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lzdGVyX3NoYXNoZXMo YWxncywgYWxnc19zaXplKTsNCj4gICAJaWYgKHJldCkgew0KPiAgIAkJZGV2X2VycihkZXYsICJG YWlsZWQgdG8gcmVnaXN0ZXJcbiIpOw0KPiAgIAkJY2xrX2Rpc2FibGVfdW5wcmVwYXJlKGNyYy0+ Y2xrKTsNCj4gQEAgLTMwNCw2ICszNTEsNyBAQCBzdGF0aWMgaW50IHN0bTMyX2NyY19yZW1vdmUo c3RydWN0IHBsYXRmb3JtX2RldmljZSAqcGRldikNCj4gICANCj4gICBzdGF0aWMgY29uc3Qgc3Ry dWN0IG9mX2RldmljZV9pZCBzdG0zMl9kdF9pZHNbXSA9IHsNCj4gICAJeyAuY29tcGF0aWJsZSA9 ICJzdCxzdG0zMmY3LWNyYyIsIH0sDQo+ICsJeyAuY29tcGF0aWJsZSA9ICJzdCxzdG0zMmY0LWNy YyIsIH0sDQo+ICAgCXt9LA0KPiAgIH07DQo+ICAgTU9EVUxFX0RFVklDRV9UQUJMRShvZiwgc3Rt MzJfZHRfaWRzKTsNClJldmlld2VkLWJ5OiBGYWJpZW4gRGVzc2VubmUgPGZhYmllbi5kZXNzZW5u ZUBzdC5jb20+ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html