From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Tue, 22 Oct 2019 11:46:18 +0200 From: Roland Hieber Message-ID: <20191022094618.3poydrhezxezyif2@pengutronix.de> References: <20190930072613.17956-1-u.oelmann@pengutronix.de> <20190930072613.17956-9-u.oelmann@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190930072613.17956-9-u.oelmann@pengutronix.de> Subject: Re: [OSS-Tools] [PATCH dt-utils 08/13] state: keep backward compatibility 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: Ulrich =?utf-8?Q?=C3=96lmann?= Cc: Pengutronix Public Open-Source-Development T24gTW9uLCBTZXAgMzAsIDIwMTkgYXQgMDk6MjY6MDhBTSArMDIwMCwgVWxyaWNoIMOWbG1hbm4g d3JvdGU6Cj4gSW50cm9kdWNlIHRoZSBuZXcgYnVpbGQgdGltZSBvcHRpb24gJy0tZW5hYmxlLXN0 YXRlLWJhY2t3YXJkLWNvbXBhdGliaWxpdHknIHRvCj4gcG9ydCB0aGUgZm9sbG93aW5nIGJhcmVi b3ggY29tbWl0Lgo+IAo+IE5PVEU6IFRoaXMgY2hhbmdlcyBiYXJlYm94LXN0YXRlJ3MgZGVmYXVs dCBiZWhhdmlvdXIuCj4gCj4gfCBjb21taXQgNDgwY2RlMWIyMjgzMWZlYmFjYzJhOGFiOTFkZmU5 OWQyZTViZThlOQo+IHwgQXV0aG9yOiBKdWVyZ2VuIEJvcmxlaXMgPGpiZUBwZW5ndXRyb25peC5k ZT4KPiB8IERhdGU6ICAgVHVlIEF1ZyAxNSAxNTo0NjozMSAyMDE3ICswMjAwCj4gfAo+IHwgICAg IHN0YXRlOiBrZWVwIGJhY2t3YXJkIGNvbXBhdGliaWxpdHkKPiB8Cj4gfCAgICAgUHJldmlvdXMg J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PiArICAg ICAgICBBQ19ERUZJTkUoQ09ORklHX1NUQVRFX0JBQ0tXQVJEX0NPTVBBVElCTEUsIFswXSkKPiAr XSkKPiArCj4gIEFDX0NIRUNLX0ZVTkNTKFtfX3NlY3VyZV9nZXRlbnYgc2VjdXJlX2dldGVudl0p Cj4gIAo+ICBteV9DRkxBR1M9Ii1XYWxsIFwKPiBAQCAtNTMsMTUgKzYyLDE2IEBAIEFDX01TR19S RVNVTFQoWwo+ICAgICAgICAgICRQQUNLQUdFICRWRVJTSU9OCj4gICAgICAgICAgPT09PT0KPiAg Cj4gLSAgICAgICAgcHJlZml4OiAgICAgICAgICAgICAgICAgJHtwcmVmaXh9Cj4gLSAgICAgICAg c3lzY29uZmRpcjogICAgICAgICAgICAgJHtzeXNjb25mZGlyfQo+IC0gICAgICAgIGxpYmRpcjog ICAgICAgICAgICAgICAgICR7bGliZGlyfQo+IC0gICAgICAgIGluY2x1ZGVkaXI6ICAgICAgICAg ICAgICR7aW5jbHVkZWRpcn0KPiArICAgICAgICBwcmVmaXg6ICAgICAgICAgICAgICAgICAgICAg ICAgICR7cHJlZml4fQo+ICsgICAgICAgIHN5c2NvbmZkaXI6ICAgICAgICAgICAgICAgICAgICAg JHtzeXNjb25mZGlyfQo+ICsgICAgICAgIGxpYmRpcjogICAgICAgICAgICAgICAgICAgICAgICAg JHtsaWJkaXJ9Cj4gKyAgICAgICAgaW5jbHVkZWRpcjogICAgICAgICAgICAgICAgICAgICAke2lu Y2x1ZGVkaXJ9Cj4gIAo+IC0gICAgICAgIGNvbXBpbGVyOiAgICAgICAgICAgICAgICR7Q0N9Cj4g LSAgICAgICAgY2ZsYWdzOiAgICAgICAgICAgICAgICAgJHtDRkxBR1N9Cj4gLSAgICAgICAgbGRm bGFnczogICAgICAgICAgICAgICAgJHtMREZMQUdTfQo+ICsgICAgICAgIGNvbXBpbGVyOiAgICAg ICAgICAgICAgICAgICAgICAgJHtDQ30KPiArICAgICAgICBjZmxhZ3M6ICAgICAgICA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