Re: [PATCH v6 1/2] serial: imx: Use common rs485 device tree parsing function

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

 



Hello Greg,

On Wed, Sep 20, 2017 at 02:29:35PM +0200, Uwe Kleine-König wrote:
> From: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> 
> This adds support for the rs485 specific properties defined in
> Documentation/devicetree/bindings/serial/rs485.txt.
> 
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> ---
> Compared to v5 the 2nd hunk was added which prevents that the effect of
> of_get_rs485_mode is unconditionally overwritten.
> 
> This patch depends on
> 
> 	serial: Add common rs485 device tree parsing function
> 
> which currently sits as ef838a81dd4de1 in tty-next.
> 
>  drivers/tty/serial/imx.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
> index 78244c98573a..0ad4a2df3212 100644
> --- a/drivers/tty/serial/imx.c
> +++ b/drivers/tty/serial/imx.c
> @@ -2136,6 +2136,8 @@ static int serial_imx_probe_dt(struct imx_port *sport,
>  	if (of_get_property(np, "rts-gpios", NULL))
>  		sport->have_rtsgpio = 1;
>  
> +	of_get_rs485_mode(np, &sport->port.rs485);
> +
>  	ret = PTR_ERR_OR_ZERO(devm_gpiod_get_optional(&pdev->dev, "enable",
>  						      GPIOD_OUT_HIGH));
>  	return ret;

I screwed up again, this depends on a patch that you don't have, will
resend a v7, sigh.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
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