Re: [U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-18 Thread Weijie Gao
On Fri, 2018-11-16 at 09:30 -0500, Tom Rini wrote:
> On Thu, Nov 15, 2018 at 11:59:34AM -0800, Simon Glass wrote:
> > Hi Ryder,
> > 
> > On 13 November 2018 at 17:32, Ryder Lee  wrote:
> > > On Tue, 2018-11-13 at 11:53 -0800, Simon Glass wrote:
> > >> Hi Ryder,
> > >>
> > >> On 6 November 2018 at 01:47, Ryder Lee  wrote:
> > >> > This patch adds an extra operation in ns16550.c to suuport MediaTek
> > >> > SoCs as we have a highspeed register which influences the calcualtion
> > >> > of the divisor.
> > >> >
> > >> > Note that we don't support the baudrate greater than 115200 currently.
> > >> >
> > >> > Signed-off-by: Ryder Lee 
> > >> > Tested-by: Matthias Brugger 
> > >> > Reviewed-by: Simon Glass 
> > >> > ---
> > >> > Changes since v4: None
> > >> >
> > >> > @Simon
> > >> > We have tried the compatible string, but it made the ns16550 driver 
> > >> > more complicated.
> > >> > To use the compatible string we have to add a new field in 
> > >> > ns16550_platdata, and change
> > >> > the flow of ns16550_serial_probe().
> > >> >
> > >> > Moreover, it's totally useless for debug uart. At present using a 
> > >> > macro is the easiest way here.
> > >> >
> > >> > What do you think?
> > >> > ---
> > >> >  drivers/serial/ns16550.c | 10 ++
> > >> >  1 file changed, 10 insertions(+)
> > >>
> > >> Please see my reply to the other thread. We should not have
> > >> arch-specific code in generic drivers.
> > >>
> > >> Sorry for not replying earlier on that.
> > >>
> > >
> > > OK.
> > >
> > > BTW, can you (or Tom) please take the other patches through your tree?
> > 
> > I think this is more Tom's domain, but I'm happy to do this if Tom wants me 
> > to.
> 
> I'll be picking up the whole series once everyone seems happy with it,
> thanks!
> 

Hi Tom,

We have uploaded the v5 patch series, which introduce a new serial
driver for MTK's high speed uart.

The v4 patch is obsolete.

Best Regards,

Weijie

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-16 Thread Tom Rini
On Thu, Nov 15, 2018 at 11:59:34AM -0800, Simon Glass wrote:
> Hi Ryder,
> 
> On 13 November 2018 at 17:32, Ryder Lee  wrote:
> > On Tue, 2018-11-13 at 11:53 -0800, Simon Glass wrote:
> >> Hi Ryder,
> >>
> >> On 6 November 2018 at 01:47, Ryder Lee  wrote:
> >> > This patch adds an extra operation in ns16550.c to suuport MediaTek
> >> > SoCs as we have a highspeed register which influences the calcualtion
> >> > of the divisor.
> >> >
> >> > Note that we don't support the baudrate greater than 115200 currently.
> >> >
> >> > Signed-off-by: Ryder Lee 
> >> > Tested-by: Matthias Brugger 
> >> > Reviewed-by: Simon Glass 
> >> > ---
> >> > Changes since v4: None
> >> >
> >> > @Simon
> >> > We have tried the compatible string, but it made the ns16550 driver more 
> >> > complicated.
> >> > To use the compatible string we have to add a new field in 
> >> > ns16550_platdata, and change
> >> > the flow of ns16550_serial_probe().
> >> >
> >> > Moreover, it's totally useless for debug uart. At present using a macro 
> >> > is the easiest way here.
> >> >
> >> > What do you think?
> >> > ---
> >> >  drivers/serial/ns16550.c | 10 ++
> >> >  1 file changed, 10 insertions(+)
> >>
> >> Please see my reply to the other thread. We should not have
> >> arch-specific code in generic drivers.
> >>
> >> Sorry for not replying earlier on that.
> >>
> >
> > OK.
> >
> > BTW, can you (or Tom) please take the other patches through your tree?
> 
> I think this is more Tom's domain, but I'm happy to do this if Tom wants me 
> to.

I'll be picking up the whole series once everyone seems happy with it,
thanks!

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-15 Thread Simon Glass
Hi Ryder,

On 13 November 2018 at 17:32, Ryder Lee  wrote:
> On Tue, 2018-11-13 at 11:53 -0800, Simon Glass wrote:
>> Hi Ryder,
>>
>> On 6 November 2018 at 01:47, Ryder Lee  wrote:
>> > This patch adds an extra operation in ns16550.c to suuport MediaTek
>> > SoCs as we have a highspeed register which influences the calcualtion
>> > of the divisor.
>> >
>> > Note that we don't support the baudrate greater than 115200 currently.
>> >
>> > Signed-off-by: Ryder Lee 
>> > Tested-by: Matthias Brugger 
>> > Reviewed-by: Simon Glass 
>> > ---
>> > Changes since v4: None
>> >
>> > @Simon
>> > We have tried the compatible string, but it made the ns16550 driver more 
>> > complicated.
>> > To use the compatible string we have to add a new field in 
>> > ns16550_platdata, and change
>> > the flow of ns16550_serial_probe().
>> >
>> > Moreover, it's totally useless for debug uart. At present using a macro is 
>> > the easiest way here.
>> >
>> > What do you think?
>> > ---
>> >  drivers/serial/ns16550.c | 10 ++
>> >  1 file changed, 10 insertions(+)
>>
>> Please see my reply to the other thread. We should not have
>> arch-specific code in generic drivers.
>>
>> Sorry for not replying earlier on that.
>>
>
> OK.
>
> BTW, can you (or Tom) please take the other patches through your tree?

I think this is more Tom's domain, but I'm happy to do this if Tom wants me to.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-13 Thread Ryder Lee
On Tue, 2018-11-13 at 11:53 -0800, Simon Glass wrote:
> Hi Ryder,
> 
> On 6 November 2018 at 01:47, Ryder Lee  wrote:
> > This patch adds an extra operation in ns16550.c to suuport MediaTek
> > SoCs as we have a highspeed register which influences the calcualtion
> > of the divisor.
> >
> > Note that we don't support the baudrate greater than 115200 currently.
> >
> > Signed-off-by: Ryder Lee 
> > Tested-by: Matthias Brugger 
> > Reviewed-by: Simon Glass 
> > ---
> > Changes since v4: None
> >
> > @Simon
> > We have tried the compatible string, but it made the ns16550 driver more 
> > complicated.
> > To use the compatible string we have to add a new field in 
> > ns16550_platdata, and change
> > the flow of ns16550_serial_probe().
> >
> > Moreover, it's totally useless for debug uart. At present using a macro is 
> > the easiest way here.
> >
> > What do you think?
> > ---
> >  drivers/serial/ns16550.c | 10 ++
> >  1 file changed, 10 insertions(+)
> 
> Please see my reply to the other thread. We should not have
> arch-specific code in generic drivers.
> 
> Sorry for not replying earlier on that.
> 

OK. 

BTW, can you (or Tom) please take the other patches through your tree? 

Ryder


___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-13 Thread Simon Glass
Hi Ryder,

On 6 November 2018 at 01:47, Ryder Lee  wrote:
> This patch adds an extra operation in ns16550.c to suuport MediaTek
> SoCs as we have a highspeed register which influences the calcualtion
> of the divisor.
>
> Note that we don't support the baudrate greater than 115200 currently.
>
> Signed-off-by: Ryder Lee 
> Tested-by: Matthias Brugger 
> Reviewed-by: Simon Glass 
> ---
> Changes since v4: None
>
> @Simon
> We have tried the compatible string, but it made the ns16550 driver more 
> complicated.
> To use the compatible string we have to add a new field in ns16550_platdata, 
> and change
> the flow of ns16550_serial_probe().
>
> Moreover, it's totally useless for debug uart. At present using a macro is 
> the easiest way here.
>
> What do you think?
> ---
>  drivers/serial/ns16550.c | 10 ++
>  1 file changed, 10 insertions(+)

Please see my reply to the other thread. We should not have
arch-specific code in generic drivers.

Sorry for not replying earlier on that.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot