Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-09-06 Thread Patrick DELAUNAY
Hi Stefan, > From: Stefan > Sent: mardi 4 septembre 2018 14:08 > > Hi Patrick, > > On 04.09.2018 09:56, Patrick DELAUNAY wrote: > > Hi Stefan > > > >> From: Stefan > >> Sent: lundi 3 septembre 2018 16:03 > >> > >> Hi Patrick, > >> > >> On 03.09.2018 15:35, Patrick DELAUNAY wrote: > >>> Hi Simo

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-09-04 Thread Stefan
Hi Patrick, On 04.09.2018 09:56, Patrick DELAUNAY wrote: Hi Stefan From: Stefan Sent: lundi 3 septembre 2018 16:03 Hi Patrick, On 03.09.2018 15:35, Patrick DELAUNAY wrote: Hi Simon and Stefan, Sorry for my late answer (I just come back from my summer holiday) From: s...@google.com On B

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-09-04 Thread Patrick DELAUNAY
Hi Stefan > From: Stefan > Sent: lundi 3 septembre 2018 16:03 > > Hi Patrick, > > On 03.09.2018 15:35, Patrick DELAUNAY wrote: > > Hi Simon and Stefan, > > > > Sorry for my late answer (I just come back from my summer holiday) > > > >> From: s...@google.com On Behalf Of Simon Glass > >> Sent:

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-09-03 Thread Stefan
Hi Patrick, On 03.09.2018 15:35, Patrick DELAUNAY wrote: Hi Simon and Stefan, Sorry for my late answer (I just come back from my summer holiday) From: s...@google.com On Behalf Of Simon Glass Sent: mercredi 8 août 2018 11:56 On 3 August 2018 at 05:38, Patrick Delaunay wrote: Add test to a

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-09-03 Thread Patrick DELAUNAY
Hi Simon and Stefan, Sorry for my late answer (I just come back from my summer holiday) > From: s...@google.com On Behalf Of Simon Glass > Sent: mercredi 8 août 2018 11:56 > > On 3 August 2018 at 05:38, Patrick Delaunay wrote: > > Add test to avoid access to rx buffer when this buffer is empty

Re: [U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-08-08 Thread Simon Glass
On 3 August 2018 at 05:38, Patrick Delaunay wrote: > Add test to avoid access to rx buffer when this buffer is empty. > In this case directly call getc() function to avoid issue when tstc() > is not called. > > Signed-off-by: Patrick Delaunay > --- > > drivers/serial/serial-uclass.c | 3 +++ > 1

[U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-08-03 Thread Patrick Delaunay
Add test to avoid access to rx buffer when this buffer is empty. In this case directly call getc() function to avoid issue when tstc() is not called. Signed-off-by: Patrick Delaunay --- drivers/serial/serial-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/serial/serial-u