[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOGqxeVokFqOQMpTrpyg1GPRk6YCw=GF0-ShBtiKz_3_0RU2XQ@mail.gmail.com>
Date: Fri, 23 Apr 2021 15:25:35 -0400
From: Alan Cooper <alcooperx@...il.com>
To: ": Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Cc: Jim Quinlan <jim2101024@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>, linux-serial@...r.kernel.org
Subject: Re: [PATCH] serial: 8250: of: Check for CONFIG_SERIAL_8250_BCM7271
Please ignore this patch, it was already submitted by Florian about an hour ago.
Thanks
Al
On Fri, Apr 23, 2021 at 3:20 PM Al Cooper <alcooperx@...il.com> wrote:
>
> From: Jim Quinlan <jim2101024@...il.com>
>
> This commit has of_platform_serial_probe() check specifically for the
> "brcm,bcm7271-uart" and whether its companion driver is enabled. If it
> is the case, and the clock provider is not ready, we want to make sure
> that when the 8250_bcm7271.c driver returns EPROBE_DEFER, we are not
> getting the UART registered via 8250_of.c.
>
> Signed-off-by: Jim Quinlan <jim2101024@...il.com>
> Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
> Signed-off-by: Al Cooper <alcooperx@...il.com>
> ---
> drivers/tty/serial/8250/8250_of.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/tty/serial/8250/8250_of.c b/drivers/tty/serial/8250/8250_of.c
> index 65e9045dafe6..aa458f3c6644 100644
> --- a/drivers/tty/serial/8250/8250_of.c
> +++ b/drivers/tty/serial/8250/8250_of.c
> @@ -192,6 +192,10 @@ static int of_platform_serial_probe(struct platform_device *ofdev)
> u32 tx_threshold;
> int ret;
>
> + if (IS_ENABLED(CONFIG_SERIAL_8250_BCM7271) &&
> + of_device_is_compatible(ofdev->dev.of_node, "brcm,bcm7271-uart"))
> + return -ENODEV;
> +
> port_type = (unsigned long)of_device_get_match_data(&ofdev->dev);
> if (port_type == PORT_UNKNOWN)
> return -EINVAL;
> --
> 2.17.1
>
Powered by blists - more mailing lists