From: Jeremy Kerr <jk@ozlabs.org>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH v2 1/3] drivers/tty/serial/8250: Make Aspeed VUART SIRQ polarity configurable
Date: Thu, 05 Sep 2019 09:14:44 +0800 [thread overview]
Message-ID: <a2ff0b6edb87d5495dd8e683e95d3b719e55f970.camel@ozlabs.org> (raw)
In-Reply-To: <20190731013404.243755-1-osk@google.com>
Hi Oskar,
Looks good to me, some minor comments though:
> +
> +What: /sys/bus/platform/drivers/aspeed-vuart/*/sirq_polarity
> +Date: July 2019
> +Contact: Oskar Senft <osk@google.com>
> +Description: Configures the polarity of the serial interrupt to the
> + host via the BMC LPC bus.
Can you mention what the value represents? 1/0 don't really indicate a
specific polarity.
Alternatively, we could use descriptive values (say, "active-low" /
"idle-low").
> @@ -310,6 +379,7 @@ static int aspeed_vuart_probe(struct platform_device *pdev)
> struct resource *res;
> u32 clk, prop;
> int rc;
> + struct of_phandle_args espi_enabled_args;
Minor: can you reverse-christmas-tree this?
> @@ -402,6 +472,18 @@ static int aspeed_vuart_probe(struct platform_device *pdev)
>
> vuart->line = rc;
>
> + rc = of_parse_phandle_with_fixed_args(
> + np, "espi-enabled", 2, 0, &espi_enabled_args);
> + if (rc < 0) {
> + dev_warn(&pdev->dev, "espi-enabled property not found\n");
In the binding spec, you've listed this property at optional, but here
we dev_warn() if its not present. Can we default to existing behaviour
if it's not there?
That may just be a matter of changing this to dev_debug.
Cheers,
Jeremy
next prev parent reply other threads:[~2019-09-05 1:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-31 1:34 [PATCH v2 1/3] drivers/tty/serial/8250: Make Aspeed VUART SIRQ polarity configurable Oskar Senft
2019-07-31 1:34 ` [PATCH v2 2/3] dt-bindings: serial: 8250: Add documentation for espi-enabled Oskar Senft
2019-07-31 3:12 ` Andrew Jeffery
2019-09-05 1:16 ` Jeremy Kerr
2019-09-05 14:41 ` Oskar Senft
2019-07-31 1:34 ` [PATCH v2 3/3] arm: dts: aspeed: Add vuart espi-enabled to aspeed-g5.dtsi Oskar Senft
2019-09-05 1:14 ` Jeremy Kerr [this message]
2019-09-05 14:38 ` [PATCH v2 1/3] drivers/tty/serial/8250: Make Aspeed VUART SIRQ polarity configurable Oskar Senft
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=a2ff0b6edb87d5495dd8e683e95d3b719e55f970.camel@ozlabs.org \
--to=jk@ozlabs.org \
--cc=linux-aspeed@lists.ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).