From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gACrZ-0003Jf-Aa for barebox@lists.infradead.org; Wed, 10 Oct 2018 11:41:21 +0000 Received: by mail-pg1-x52a.google.com with SMTP id a5-v6so2380561pgv.13 for ; Wed, 10 Oct 2018 04:41:02 -0700 (PDT) MIME-Version: 1.0 References: <20181010071443.msez5a7yriayx2va@pengutronix.de> <1539158817.19112.52.camel@pengutronix.de> In-Reply-To: <1539158817.19112.52.camel@pengutronix.de> From: Patrick Huesmann Date: Wed, 10 Oct 2018 13:40:50 +0200 Message-ID: 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: bootchooser: constant decrement of remaining_attempts To: barebox@lists.infradead.org Cc: ejo@pengutronix.de SGksCgpBbSBNaS4sIDEwLiBPa3QuIDIwMTggdW0gMTA6MDYgVWhyIHNjaHJpZWIgSmFuIEzDvGJi ZSA8amx1QHBlbmd1dHJvbml4LmRlPjoKPgo+IElOVF9NQVggd291bGQgbmVlZCB0byBiZSByZWxh dGl2ZSB0byB0aGUgYWN0dWFsIHR5cGUgZGVmaW5lZCBpbiB0aGUKPiBzdGF0ZSB2YXJpYWJsZSAo dTMyIHZzLiB1OCkuIEFuIGFsdGVybmF0aXZlIHdvdWxkIGJlIHRvIGhhdmUgYSBnbG9iYWwKPiBm bGFnIHRvIGVuLS9kaXNhYmxlIGNvdW50aW5nLgo+Cj4gQ3VycmVudGx5IHRoZXJlIGlzIG9uZSB3 YXkgdG8gYXZvaWQgd3JpdGVzIHRvIGZsYXNoIGluIHRoZSBzdWNjZXNzZnVsCj4gY2FzZTogVXNl IGEgd2F0Y2hkb2cgYW5kIGNhb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