From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Tue, 16 Mar 2021 15:24:37 +0100 From: Roland Hieber Message-ID: <20210316142437.v6kfydi43d2gnix3@pengutronix.de> References: <20201113190856.3197-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201113190856.3197-1-a.fatoum@pengutronix.de> Subject: Re: [OSS-Tools] [PATCH v2] barebox-state: have the --set option to avoid writes if possible List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: oss-tools-bounces@pengutronix.de Sender: "OSS-Tools" To: Ahmad Fatoum Cc: oss-tools@pengutronix.de T24gRnJpLCBOb3YgMTMsIDIwMjAgYXQgMDg6MDg6NTZQTSArMDEwMCwgQWhtYWQgRmF0b3VtIHdy b3RlOgo+IGJhcmVib3gtc3RhdGUgLS1zZXQgYWx3YXlzIGRpcnRpZXMgdGhlIHN0YXRlIHdoZW4g c3VjY2Vzc2Z1bC4gVXNlcnMKPiBzZWVraW5nIHRvIGNvbnNlcnZlIHdyaXRlIGN5Y2xlcyB0aHVz IGhhdmUgdG8gLS1nZXQgdGhlIHZhcmlhYmxlIGluCj4gcXVlc3Rpb24gZmlyc3QgdG8gY2hlY2sg d2hldGhlciB0byB3cml0ZSBpdC4gTWFrZSBsaWZlIG9mIHN1Y2ggdXNlcnMKPiBlYXNpZXIgYnkg aGF2aW5nIGJhcmVib3gtc3RhdGUgc3VwcG9ydCB0aGlzIG91dC1vZi10aGUtYm94Lgo+IAo+IFRo aXMgYWxsb3dzIHVzZXJzIHRvIGZpcmUgYW5kIGZvcmdldCBleGVjdXRlIGJhcmVib3gtc3RhdGUu Cj4gCj4gVGhpcyBhcmd1YWJseSBzaG91bGQgaGF2ZSBiZWVuIHRoZSBiZWhhdmlvciBmcm9tIHRo ZSBiZWdpbm5pbmcsCj4gdGhlIHN0YXRlIGltcG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