From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/3] tty: amba-pl011: add .get_fifosize for ZTE device
Date: Fri, 8 Jul 2016 17:00:40 +0800 [thread overview]
Message-ID: <1467968441-4056-3-git-send-email-shawn.guo@linaro.org> (raw)
In-Reply-To: <1467968441-4056-1-git-send-email-shawn.guo@linaro.org>
ZTE PL011 device has a fixed FIFO size 16. Let's add a .get_fifosize
hook for it.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
drivers/tty/serial/amba-pl011.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index e09354e6bcb7..8b7fb3689ee7 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -204,6 +204,11 @@ static const u16 pl011_zte_offsets[REG_ARRAY_SIZE] = {
[REG_DMACR] = ZX_UART011_DMACR,
};
+static unsigned int get_fifosize_zte(struct amba_device *dev)
+{
+ return 16;
+}
+
static struct vendor_data vendor_zte __maybe_unused = {
.reg_offset = pl011_zte_offsets,
.access_32b = true,
@@ -212,7 +217,7 @@ static struct vendor_data vendor_zte __maybe_unused = {
.fr_dsr = ZX_UART01x_FR_DSR,
.fr_cts = ZX_UART01x_FR_CTS,
.fr_ri = ZX_UART011_FR_RI,
- .get_fifosize = get_fifosize_arm,
+ .get_fifosize = get_fifosize_zte,
};
/* Deals with DMA transactions */
--
1.9.1
next prev parent reply other threads:[~2016-07-08 9:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-08 9:00 [PATCH v3 0/3] Complete ZTE PL011 device support Shawn Guo
2016-07-08 9:00 ` [PATCH v3 1/3] tty: amba-pl011: define flag register bits for ZTE device Shawn Guo
2016-09-16 14:23 ` Sudeep Holla
2016-09-16 16:39 ` Russell King - ARM Linux
2016-09-16 17:11 ` Timur Tabi
2016-09-17 5:37 ` Shawn Guo
2016-09-17 9:17 ` Russell King - ARM Linux
2016-09-17 5:26 ` Shawn Guo
2016-07-08 9:00 ` Shawn Guo [this message]
2016-07-08 9:00 ` [PATCH v3 3/3] tty: amba-pl011: probe ZTE device from AMBA bus with a pseudo-ID Shawn Guo
2016-07-14 13:26 ` [PATCH v3 0/3] Complete ZTE PL011 device support Shawn Guo
2016-07-18 13:35 ` Russell King - ARM Linux
2016-08-09 3:21 ` Shawn Guo
2016-08-09 8:27 ` Greg Kroah-Hartman
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=1467968441-4056-3-git-send-email-shawn.guo@linaro.org \
--to=shawn.guo@linaro.org \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).