From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 21 Sep 2011 10:15:14 -0400 Subject: [U-Boot] [PATCH v4] serial: uartlite: Support for SERIAL_MULTI In-Reply-To: <4E79D6CF.3020804@monstr.eu> References: <1316094600-13633-1-git-send-email-monstr@monstr.eu> <201109200933.33174.marek.vasut@gmail.com> <4E79D6CF.3020804@monstr.eu> Message-ID: <201109211015.17698.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, September 21, 2011 08:21:35 Michal Simek wrote: > Marek Vasut wrote: > > On Tuesday, September 20, 2011 09:19:23 AM Michal Simek wrote: > >> Michal Simek wrote: > >>> Add support for SERIAL MULTI for uartlite. > >> > >> Any comment? > > > > Avoid endless loops > > No problem to do it for putc but for getc? > What would you like to return if there is no character available? getc() is allowed to loop forever. pretty much most drivers also wait forever with putc(). i dont think serial drivers really matter as if the hardware breaks, u-boot itself isn't terribly useful anymore. just make sure flow control doesn't bite you (CTS/RTS). -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110921/eba26152/attachment.pgp