[PATCH] serial: ns16550: Handle zero <clock-frequency> value

Simon Glass sjg at chromium.org
Sun Feb 7 01:16:44 CET 2021


Hi Simon,

On Thu, Feb 4, 2021 at 8:33 AM Simon Glass <sjg at chromium.org> wrote:
>
> On Wed, 3 Feb 2021 at 17:20, Bin Meng <bmeng.cn at gmail.com> wrote:
> >
> > Hi Simon,
> >
> > On Thu, Feb 4, 2021 at 5:42 AM Simon Glass <sjg at chromium.org> wrote:
> > >
> > > Hi Bin,
> > >
> > > On Wed, 3 Feb 2021 at 07:42, Bin Meng <bmeng.cn at gmail.com> wrote:
> > > >
> > > > A working device tree node of ns16550 should never be populated
> > > > with value zero for the <clock-frequency> property. Unfortunately
> > > > this is the case for the QEMU ppce500 target.
> > > >
> > > > Let's try to assign plat->clock to CONFIG_SYS_NS16550_CLK as the
> > > > last resort to handle such case.
> > > >
> > > > This commit should be reverted when:
> > > >
> > > > - The following QEMU patch [1] is merged, and
> > > > - U-Boot CI has upgraded its QEMU version that contains the fix
> > > >
> > > > [1] http://patchwork.ozlabs.org/project/qemu-devel/patch/1612362288-22216-2-git-send-email-bmeng.cn@gmail.com/
> > > >
> > > > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > > > ---
> > > >
> > > >  drivers/serial/ns16550.c | 2 ++
> > > >  1 file changed, 2 insertions(+)
> > > >
Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list