From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from zimbra2.kalray.eu ([92.103.151.219]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1itZbq-0003Cr-V8 for barebox@lists.infradead.org; Mon, 20 Jan 2020 16:09:08 +0000 Date: Mon, 20 Jan 2020 17:08:56 +0100 (CET) From: =?utf-8?Q?Cl=C3=A9ment?= Leger Message-ID: <1043390847.13051146.1579536536042.JavaMail.zimbra@kalray.eu> In-Reply-To: References: <20200115102650.11739-1-cleger@kalray.eu> <20200115102650.11739-6-cleger@kalray.eu> 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 5/5] watchdog: k1c: Add k1c watchdog support To: Ahmad Fatoum Cc: Barebox List SGkgQWhtYWQsCgotLS0tLSBPbiAyMCBKYW4sIDIwMjAsIGF0IDE2OjEwLCBBaG1hZCBGYXRvdW0g YS5mYXRvdW1AcGVuZ3V0cm9uaXguZGUgd3JvdGU6Cgo+IE9uIDEvMTUvMjAgMTE6MjYgQU0sIENs ZW1lbnQgTGVnZXIgd3JvdGU6Cj4+IEFkZCBhIHdhdGNoZG9nIGZvciBrMWMgYXJjaGl0ZWN0dXJl IGJhc2VkIG9uIGNvcmUgd2F0Y2hkb2cuCj4+IAo+PiBTaWduZWQtb2ZmLWJ5OiBDbGVtZW50IExl Z2VyIDxjbGVnZXJAa2FscmF5LmV1Pgo+PiAtLS0KPj4gIGFyY2gvazFjL2NvbmZpZ3MvZ2VuZXJp Y19kZWZjb25maWcgfCAgIDMgKwo+PiAgZHJpdmVycy93YXRjaGRvZy9LY29uZmlnICAgICAgICAg ICB8ICAgNyArKysKPj4gIGRyaXZlcnMvd2F0Y2hkb2cvTWFrZWZpbGUgICAgICAgICAgfCAgID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fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX18KYmFyZWJveCBtYWlsaW5nIGxpc3QKYmFyZWJveEBsaXN0cy5pbmZy YWRlYWQub3JnCmh0dHA6Ly9saXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4vbGlzdGluZm8vYmFy ZWJveAo=