From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fayFa-0000Ut-1E for oss-tools@pengutronix.de; Thu, 05 Jul 2018 09:00:22 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1fayFZ-0001mq-PD for oss-tools@pengutronix.de; Thu, 05 Jul 2018 09:00:21 +0200 Date: Thu, 5 Jul 2018 09:00:21 +0200 From: Michael Olbrich Message-ID: <20180705070021.e66q3hc2inw3k26r@pengutronix.de> References: <20180704162912.13765-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180704162912.13765-1-u.kleine-koenig@pengutronix.de> Subject: Re: [OSS-Tools] [PATCH microcom 1/2] Handle EOF from port with a better error message 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: oss-tools@pengutronix.de T24gV2VkLCBKdWwgMDQsIDIwMTggYXQgMDY6Mjk6MTFQTSArMDIwMCwgVXdlIEtsZWluZS1Lw7Zu aWcgd3JvdGU6Cj4gSWYgaW4gdGhlIHJmYzIyMTcgY2FzZSB0aGUgc29ja2V0IGlzIGNsb3NlZCBm cm9tIHRoZSByZW1vdGUgZW5kLCB3cml0aW5nIG91dAo+ICJJbnZhbGlkIGFyZ3VtZW50IiBpc24n dCB2ZXJ5IGhlbHBmdWwuCj4gCj4gU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUu a2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4KPiAtLS0KPiAgLnRyYXZpcy55bWwgfCA3IC0t LS0tLS0KPiAg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