Re: [PATCH] tty: serial: qcom_geni_serial: Don't slow all ports just for kgdb

From: msavaliy
Date: Wed Oct 17 2018 - 03:34:14 EST


On 2018-10-16 02:14, Douglas Anderson wrote:
If you turn on CONFIG_KGDB then you'll get CONFIG_CONSOLE_POLL
selected.

If you have CONFIG_CONSOLE_POLL selected then the GENI serial driver
was setting RX_BYTES_PW to 1 for _all_ UART ports.

This doesn't seem like such a good idea. Let's only set RX_BYTES_PW
to 1 for the console port.

Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
---

drivers/tty/serial/qcom_geni_serial.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

Good finding, Makes sense to keep changes this way for console only port.

Reviewed-by: Mukesh Kumar Savaliya <msavaliy@xxxxxxxxxxxxxx>