1
0
mirror of https://github.com/sjlongland/adv950.git synced 2025-09-14 03:03:15 +10:00

8250: Pass tty_port to tty_buffer_request_room

As per 227434f8986c3827a1faedd1feb437acd6285315.
This commit is contained in:
Stuart Longland 2017-03-05 13:45:40 +10:00
parent 8f905f0925
commit e379d9c8af
Signed by: stuartl
GPG Key ID: 4DFA191410BDE3B7

View File

@ -1443,7 +1443,7 @@ receive_chars(struct uart_adv950_port *up, unsigned int *status)
serial_out(up, UART_ICR, up->acr); serial_out(up, UART_ICR, up->acr);
count = (up->port.fifosize < save_rfl)? up->port.fifosize: save_rfl; count = (up->port.fifosize < save_rfl)? up->port.fifosize: save_rfl;
//ensure tty core has enough space //ensure tty core has enough space
count = tty_buffer_request_room(tty, count); count = tty_buffer_request_room(tty->port, count);
//printk(KERN_INFO "RFL=%d,count=%d,", save_rfl, count); //printk(KERN_INFO "RFL=%d,count=%d,", save_rfl, count);
//firstly clear DMA status register //firstly clear DMA status register