We are not getting more than 16 bytes from TTY call back function even tty->receive_room = 1024

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

We are not getting more than 16 bytes from TTY call back function even tty->receive_room = 1024

625 Views
ravis5354
Contributor I

We implemented TTY Gadget driver for low level driver communication. I am using struct tty_ldisc_ops operations . We are not able to receive more than 16 bytes from tty call back function ( .receive_buf ) even  tty->receive_room is set to 1024 bytes. We are always receiving 16 bytes in the call back function even the incoming packets more than 16 bytes. But remaining bytes of the packets getting in the next call back after 25-30 milliseconds that is one tty receives another 16 bytes. Someone can you please help us about tty call back. please let us know if any other things is required

can you see below code for reference- 

1. Set tty->receive_room = 1024, in tty_open() call

2.using void tty_receive(struct tty_struct *tty,const unsigned char *cp,char *fp, int count) call back , In every call back count not getting more than 16 bytes.

Thanks...

0 Kudos
Reply
1 Reply

604 Views
Juan-Rodarte
NXP Employee
NXP Employee

Hi Ravi,

Could you share more details? code, board, etc.

Best regards,
Diego.

0 Kudos
Reply