[U-Boot] [PATCH v4] serial: uartlite: Support for SERIAL_MULTI
Mike Frysinger
vapier at gentoo.org
Wed Sep 21 16:15:14 CEST 2011
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
More information about the U-Boot
mailing list