[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/7] ns8250: Add base support for MMIO UARTs
From: |
Benjamin Herrenschmidt |
Subject: |
Re: [PATCH 3/7] ns8250: Add base support for MMIO UARTs |
Date: |
Thu, 22 Dec 2022 13:11:13 +1100 |
User-agent: |
Evolution 3.44.4-0ubuntu1 |
Thanks for your review !
I'll address everything. Small "nits":
On Wed, 2022-12-21 at 14:25 +0100, Daniel Kiper wrote:
> > +
> > +char *
> > +grub_serial_ns8250_add_mmio(grub_addr_t addr)
> > +{
> > + struct grub_serial_port *p;
> > + unsigned i;
>
> Please add en empty line here.
Ack. I copied grub_serial_ns8250_add_port() :-) I'll fix that one as
well
> > + for (i = 0; i < GRUB_SERIAL_PORT_NUM; i++)
> > + if (com_ports[i].mmio && com_ports[i].mmio_base == addr)
> > + return com_names[i];
> > +
> > + p = grub_malloc (sizeof (*p));
> > + if (!p)
>
> I prefer "p == NULL" instead of "!p". If you could fix that here and in
> the other places/patches that will be nice.
Ditto (pre-existing construct).
I'll fix them in the other code too, holler if you object.
Cheers,
Ben.
- [RESEND PATCH 0/7] serial: Add MMIO & SPCR support, Benjamin Herrenschmidt, 2022/12/01
- [PATCH 1/7] acpi: Export a generic grub_acpi_find_table, Benjamin Herrenschmidt, 2022/12/01
- [PATCH 2/7] acpi: Add SPCR and generic address definitions, Benjamin Herrenschmidt, 2022/12/01
- [PATCH 3/7] ns8250: Add base support for MMIO UARTs, Benjamin Herrenschmidt, 2022/12/01
- [PATCH 4/7] ns8250: Add configuration parameter when adding ports, Benjamin Herrenschmidt, 2022/12/01
- [PATCH 5/7] ns8250: Use ACPI SPCR table when available to configure serial, Benjamin Herrenschmidt, 2022/12/01
- [PATCH 6/7] ns8250: Support more MMIO access sizes, Benjamin Herrenschmidt, 2022/12/01
- [PATCH 7/7] serial: Add ability to specify MMIO ports via 'serial', Benjamin Herrenschmidt, 2022/12/01
- Re: [RESEND PATCH 0/7] serial: Add MMIO & SPCR support, Daniel Kiper, 2022/12/21