Re: [PATCH v4 11/11] drivers: PL011: add ACPI probing for SBSA UART

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2015/5/12 22:14, Andre Przywara wrote:
> From: Graeme Gregory <graeme.gregory@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>
> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
> Acked-by: Sudeep Holla <sudeep.holla@xxxxxxx>
> ---
>  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@xxxxxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux