From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.rapiddevelopmentkit.de ([217.6.246.34] helo=root.phytec.de) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T6fBU-0008K2-30 for barebox@lists.infradead.org; Wed, 29 Aug 2012 10:07:40 +0000 From: Christian Hemp In-Reply-To: <1346216778-14100-7-git-send-email-plagnioj@jcrosoft.com> References: <20120829042727.GA18708@game.jcrosoft.org> <1346216778-14100-1-git-send-email-plagnioj@jcrosoft.com> <1346216778-14100-7-git-send-email-plagnioj@jcrosoft.com> Date: Wed, 29 Aug 2012 12:07:37 +0200 Message-ID: <1346234857.11069.39.camel@lws-hemp> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 7/7] smm911x: check if the device is ready before using it To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org SGkgSmVhbi1DaHJpc3RvcGhlLAoKdGhlcmUgaXMgYSBpc3N1ZSBpbiB5b3VyIGhlYWRlcgrigJxb UEFUQ0ggNy83XSBzbW05MTF4OiBjaGVjayBpZiB0aGUgZGV2aWNlIGlzIHJlYWR5IGJlZm9yZSB1 c2luZyBpdOKAnQogICAgICAgICAgICAKSSB0aGluayBzbWM5MTF4IGlzIGNvcnJlY3QuCgoKQ2hy aXN0aWFuCgpBbSBNaXR0d29jaCwgZGVuIDI5LjA4LjIwMTIsIDA3OjA2ICswMjAwIHNjaHJpZWIg SmVhbi1DaHJpc3RvcGhlClBMQUdOSU9MLVZJTExBUkQ6Cj4gcG9sbCB0aGUgUkVBRFkgYml0IGlu IFBNVF9DVFJMLiBBbnkgb3RoZXIgYWNjZXNzIHRvIHRoZSBkZXZpY2UgaXMKPiBmb3JiaWRkZW4g d2h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