Hi
We are trying to enable g_serial in Intel platform and facing
issue with RX path.
stable kernel version: K3.14
configuration enabled: USB_G_SERIAL
testing details:
writing from device side(ttyS0) to Windows Host(com 11-g_serial): working fine
from ttyS0: echo test > /dev/ttyGS0 -- received in comm 11
Typing any character from windows host pc(com 11 using teraterm) to
device side: not working
from ttyS0: cat /dev/ttyGS0
issue details:
In Device side(ttyS0): cat /dev/ttyGS0
In Windows Host PC (Com 11 -- g_serial - using teraterm) -- typing
enter or any character is not sending bytes most of the time but
sometimes typing character(e.g a) is sending the bytes and received in
device side(cat /dev/ttyGS0) as per below log.
logs added in u_serial:
[ 94.912072] gs_write: ttyGS0 (a2471c00) writing 1 bytes -- not
working case
[ 94.916679] ttyGS0: tx len=1, 0x73 0x6c 0xa7 ...
[ 94.921279] RAM: g_write_comp
[ 95.006267] gs_rx_push:n 0
[ 95.007649] ttyGS0: rx block 1/1 do_push:1
[ 95.011831] gs_start_rx
[ 95.015112] gs_write: ttyGS0 (a2471c00) writing 1 bytes
[ 95.019591] ttyGS0: tx len=1, 0x64 0x6c 0xa7 ...
[ 95.024496] RAM: g_write_comp
[ 95.119200] gs_rx_push:n 0
[ 95.120618] ttyGS0: rx block 1/1 do_push:1
[ 95.124853] gs_start_rx
a[ 95.190935] gs_rx_push:n 0
-- working case
[ 95.192360] ttyGS0: rx block 1/1 do_push:1
[ 95.196500] gs_start_rx
s[ 95.298273] gs_rx_push:n 0
[ 95.299678] ttyGS0: rx block 1/1 do_push:1
[ 95.303900] gs_start_rx
we are observing "gs_rx_push" tasklet is triggered at every time if we
press the character or by pressing enter key and the "do_push" flag is
set.
Kernel Log:
pr_vdebug(PREFIX "%d: rx block %d/%d\n",
port->port_num,
count, req->actual);
relative debug log with do_push print:
ttyGS0: rx block 1/1 do_push:1
Please help on the same.
Regards,
Ramajayam S
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html