mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] serial: stm32: set linux_console_name
Date: Tue, 20 Aug 2019 10:26:11 +0200	[thread overview]
Message-ID: <20190820082611.21855-1-a.fatoum@pengutronix.de> (raw)

Linux names these UARTs ttySTM. Tell barebox about this, so it can be
used to correctly compose the console= kernel command line argument.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/serial/serial_stm32.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c
index a84e64e974e7..4bbfb1eef72c 100644
--- a/drivers/serial/serial_stm32.c
+++ b/drivers/serial/serial_stm32.c
@@ -182,6 +182,7 @@ static int stm32_serial_probe(struct device_d *dev)
 	cdev->getc   = stm32_serial_getc;
 	cdev->flush  = stm32_serial_flush;
 	cdev->setbrg = stm32_serial_setbaudrate;
+	cdev->linux_console_name = "ttySTM";
 
 	if (dev->device_node) {
 		devname = of_alias_get(dev->device_node);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2019-08-20  8:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20  8:26 Ahmad Fatoum [this message]
2019-08-21  6:43 ` Sascha Hauer

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=20190820082611.21855-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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