From: guohanjun@huawei.com (Hanjun Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 11/11] drivers: PL011: add ACPI probing for SBSA UART
Date: Wed, 13 May 2015 09:09:53 +0800 [thread overview]
Message-ID: <5552A461.4020101@huawei.com> (raw)
In-Reply-To: <1431440095-5146-12-git-send-email-andre.przywara@arm.com>
On 2015/5/12 22:14, Andre Przywara wrote:
> From: Graeme Gregory <graeme.gregory@linaro.org>
>
> Add the necessary driver boilerplate to let the driver be used when
> the respective ACPI table is discovered by the ACPI subsystem.
>
> [Andre: change table name, add MODULE_DEVICE_TABLE entry and improve
> commit message]
>
> Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Acked-by: Sudeep Holla <sudeep.holla@arm.com>
> ---
> drivers/tty/serial/amba-pl011.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
> index cca93d9..79f716c 100644
> --- a/drivers/tty/serial/amba-pl011.c
> +++ b/drivers/tty/serial/amba-pl011.c
> @@ -58,6 +58,7 @@
> #include <linux/pinctrl/consumer.h>
> #include <linux/sizes.h>
> #include <linux/io.h>
> +#include <linux/acpi.h>
>
> #define UART_NR 14
>
> @@ -2483,12 +2484,19 @@ static const struct of_device_id sbsa_uart_of_match[] = {
> };
> MODULE_DEVICE_TABLE(of, sbsa_uart_of_match);
>
> +static const struct acpi_device_id sbsa_uart_acpi_match[] = {
> + { "ARMH0011", 0 },
> + {},
> +};
> +MODULE_DEVICE_TABLE(acpi, sbsa_uart_acpi_match);
> +
> static struct platform_driver arm_sbsa_uart_platform_driver = {
> .probe = sbsa_uart_probe,
> .remove = sbsa_uart_remove,
> .driver = {
> .name = "sbsa-uart",
> .of_match_table = of_match_ptr(sbsa_uart_of_match),
> + .acpi_match_table = ACPI_PTR(sbsa_uart_acpi_match),
> },
> };
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
next prev parent reply other threads:[~2015-05-13 1:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 14:14 [PATCH v4 00/11] drivers: PL011: add ARM SBSA Generic UART support Andre Przywara
2015-05-12 14:14 ` [PATCH v4 01/11] drivers: PL011: avoid potential unregister_driver call Andre Przywara
2015-05-12 14:14 ` [PATCH v4 02/11] drivers: PL011: refactor pl011_startup() Andre Przywara
2015-05-12 14:14 ` [PATCH v4 03/11] drivers: PL011: refactor pl011_shutdown() Andre Przywara
2015-05-12 14:14 ` [PATCH v4 04/11] drivers: PL011: refactor pl011_set_termios() Andre Przywara
2015-05-12 14:14 ` [PATCH v4 05/11] drivers: PL011: refactor pl011_probe() Andre Przywara
2015-05-12 14:14 ` [PATCH v4 06/11] drivers: PL011: replace UART_MIS reading with _RIS & _IMSC Andre Przywara
2015-05-12 14:14 ` [PATCH v4 07/11] drivers: PL011: move cts_event workaround into separate function Andre Przywara
2015-05-12 14:14 ` [PATCH v4 08/11] drivers: PL011: allow avoiding UART enabling/disabling Andre Przywara
2015-05-12 14:14 ` [PATCH v4 09/11] drivers: PL011: allow to supply fixed option string Andre Przywara
2015-05-12 14:14 ` [PATCH v4 10/11] drivers: PL011: add support for the ARM SBSA generic UART Andre Przywara
2015-05-13 14:32 ` Mark Langsdorf
2015-05-13 15:03 ` Graeme Gregory
2015-05-21 11:13 ` Andre Przywara
2015-05-21 12:49 ` Naresh Bhat
2015-05-21 15:12 ` Mark Langsdorf
2015-05-12 14:14 ` [PATCH v4 11/11] drivers: PL011: add ACPI probing for SBSA UART Andre Przywara
2015-05-13 1:09 ` Hanjun Guo [this message]
2015-05-12 15:18 ` [PATCH v4 00/11] drivers: PL011: add ARM SBSA Generic UART support Jakub Kiciński
2015-05-12 16:42 ` Robert Richter
2015-05-13 9:17 ` Lorenzo Pieralisi
2015-05-15 3:31 ` Hanjun Guo
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=5552A461.4020101@huawei.com \
--to=guohanjun@huawei.com \
--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).