[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPybu_19AgXA+Thc6sd-Zp-707P+u47xzJpcnFuJGTa9YvWYbA@mail.gmail.com>
Date: Thu, 1 Sep 2016 13:22:55 +0200
From: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>
To: "Ji-Ze Hong (Peter Hong)" <hpeter@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.com>, Arnd Bergmann <arnd@...db.de>,
Peter Hurley <peter@...leysoftware.com>,
linux-serial@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
PA20 TOM TSAI 蔡宗佑
<tom_tsai@...tek.com.tw>, Peter H <peter_hong@...tek.com.tw>,
"Ji-Ze Hong (Peter Hong)" <hpeter+linux_kernel@...il.com>
Subject: Re: [PATCH 5/7] serial: 8250_fintek: Add F81216 Support
Hi Peter
On Thu, Sep 1, 2016 at 5:39 AM, Ji-Ze Hong (Peter Hong)
<hpeter@...il.com> wrote:
> int fintek_8250_probe(struct uart_8250_port *uart)
> {
> struct fintek_8250 *pdata;
> @@ -248,8 +270,8 @@ int fintek_8250_probe(struct uart_8250_port *uart)
> return -ENOMEM;
>
> memcpy(pdata, &probe_data, sizeof(probe_data));
> - uart->port.rs485_config = fintek_8250_rs485_config;
Maybe just:
if (pdata->id != CHIP_ID_F81216)
uart->port.rs485_config = fintek_8250_rs485_config;
Instead of the whole function
> uart->port.private_data = pdata;
> + fintek_8250_set_rs485_handler(uart);
>
> return 0;
> }
> --
> 1.9.1
>
--
Ricardo Ribalda
Powered by blists - more mailing lists