[PATCH] dm: serial: introduce puts hook
Peng Fan
peng.fan at nxp.com
Mon May 4 16:24:16 CEST 2020
Hi Simon,
> Subject: Re: [PATCH] dm: serial: introduce puts hook
>
> Hi Peng,
>
> On Sun, 3 May 2020 at 06:42, Peng Fan <peng.fan at nxp.com> wrote:
> >
> > Introduce puts hook for dm serial driver.
> >
> > Signed-off-by: Peng Fan <peng.fan at nxp.com>
> > ---
> > drivers/serial/serial-uclass.c | 13 +++++++++++--
> > include/serial.h | 8 ++++++++
> > 2 files changed, 19 insertions(+), 2 deletions(-)
>
> I'm just wondering why we need this? Isn't serial_putc() enough?
This is to let u-boot could run in a XEN hypervisor DomU virtual machine.
It is low efficiently if each time, we use putc to let xen dom0 print uboot
log.
We could pass a string, not a char to improve performance.
Thanks,
Peng.
>
> Regards,
> Simon
More information about the U-Boot
mailing list