From: Thomas Abraham <ta.omasab@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 4/8] serial: s5p: get the port id number from the alias of the device node
Date: Sat, 23 Apr 2016 22:18:10 +0530 [thread overview]
Message-ID: <1461430094-5186-5-git-send-email-ta.omasab@gmail.com> (raw)
In-Reply-To: <1461430094-5186-1-git-send-email-ta.omasab@gmail.com>
From: Thomas Abraham <thomas.ab@samsung.com>
The port id, if not specified in the device node, can be obtained from
the alias of the device node listed in the aliases node.
Cc: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
---
drivers/serial/serial_s5p.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index feba467..8590dfd 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -174,8 +174,8 @@ static int s5p_serial_ofdata_to_platdata(struct udevice *dev)
return -EINVAL;
plat->reg = (struct s5p_uart *)addr;
- plat->port_id = fdtdec_get_int(gd->fdt_blob, dev->of_offset, "id", -1);
-
+ plat->port_id = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
+ "id", dev->seq);
return 0;
}
--
1.6.6.rc2
next prev parent reply other threads:[~2016-04-23 16:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-23 16:48 [U-Boot] [PATCH v3 0/8] Add support for Espresso7420 board Thomas Abraham
2016-04-23 16:48 ` [U-Boot] [PATCH v3 1/8] pinctrl: add the DM_UC_FLAG_SEQ_ALIAS flag for numbering the devices Thomas Abraham
2016-04-23 16:48 ` [U-Boot] [PATCH v3 2/8] pinctrl: Add pinctrl driver support for Exynos7420 SoC Thomas Abraham
2016-04-23 16:48 ` [U-Boot] [PATCH v3 3/8] clk: exynos: add clock driver for Exynos7420 Soc Thomas Abraham
2016-04-23 17:00 ` Simon Glass
2016-04-23 16:48 ` Thomas Abraham [this message]
2016-04-23 17:00 ` [U-Boot] [PATCH v3 4/8] serial: s5p: get the port id number from the alias of the device node Simon Glass
2016-04-23 16:48 ` [U-Boot] [PATCH v3 5/8] serial: s5p: use clock api to get clock rate Thomas Abraham
2016-04-23 16:48 ` [U-Boot] [PATCH v3 6/8] arm: exynos: realign the code to allow support for newer 64-bit platforms Thomas Abraham
2016-04-23 17:00 ` Simon Glass
2016-04-23 16:48 ` [U-Boot] [PATCH v3 7/8] arm: exynos: add support for Exynos7420 SoC Thomas Abraham
2016-04-23 16:48 ` [U-Boot] [PATCH v3 8/8] board: samsung: add initial Espresso7420 board support Thomas Abraham
2016-04-25 20:58 ` [U-Boot] [PATCH v3 0/8] Add support for Espresso7420 board Tom Rini
2016-04-26 6:16 ` Alim Akhtar
2016-05-26 1:30 ` Minkyu Kang
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=1461430094-5186-5-git-send-email-ta.omasab@gmail.com \
--to=ta.omasab@gmail.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