From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 1/2] WIP: serial: Introduce ->getinfo() callback
Date: Thu, 15 Nov 2018 18:03:37 +0200 [thread overview]
Message-ID: <20181115160337.GT10650@smile.fi.intel.com> (raw)
In-Reply-To: <CAEUhbmVKgE6sGhp-DLO+Dbt9AygXy1S6VhK7dJ68qL7LvnH+Ww@mail.gmail.com>
On Tue, Sep 25, 2018 at 10:24:42AM +0800, Bin Meng wrote:
> On Sat, Sep 22, 2018 at 9:05 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
I found a bit of time to look at this again.
> > +static int ns16550_serial_getinfo(struct udevice *dev, struct serial_device_info *info)
> > +{
> > + struct NS16550 *const com_port = dev_get_priv(dev);
> > + struct ns16550_platdata *plat = com_port->plat;
> > +
> > + info->addr_space = 0;
> This one is tricky. Looks current 8250 DT binding does not have a
> property to describe the address space to be MMIO or PIO. I am not
> sure what's the best option here.
For now I suggest to leave it hard coded to MMIO.
> > + info->reg_width = 8;
> For this one, I believe we can use "reg-io-width" property from device tree.
I will try this path.
> > + info->reg_shift = plat->reg_shift;
> > + info->reg_offset = plat->reg_offset;
> > + info->addr = plat->base;
> > + return 0;
> > +}
> Generally this patch looks OK to me.
Thanks! Still I have few amendments for the real submission of the series.
> BTW: why doesn't the kernel use the 'earlycon' command line?
Not all hardware supports it or supports it in a right way.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2018-11-15 16:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-22 13:05 [U-Boot] [PATCH v1 0/2] ACPI: Generate SPCR table Andy Shevchenko
2018-09-22 13:05 ` [U-Boot] [PATCH v1 1/2] WIP: serial: Introduce ->getinfo() callback Andy Shevchenko
2018-09-24 7:43 ` Patrice CHOTARD
2018-09-24 7:52 ` Andy Shevchenko
2018-09-25 2:24 ` Bin Meng
2018-11-15 16:03 ` Andy Shevchenko [this message]
2018-09-22 13:05 ` [U-Boot] [PATCH v1 2/2] WIP: x86: acpi: Generate SPCR table Andy Shevchenko
2018-09-24 7:44 ` Patrice CHOTARD
2018-09-25 2:27 ` Bin Meng
2018-11-15 16:06 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181115160337.GT10650@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox