Commit 95a1b40
serial: 8250: Use high-level writing function for FIFO
Currently serial8250_console_fifo_write() directly writes into
the UART_TX register rather than using the high-level function
serial8250_console_putchar(). This is because
serial8250_console_putchar() waits for the holding register to
become empty, which would defeat the purpose of the FIFO code.
Move the LSR_THRE waiting to a new function
serial8250_console_wait_putchar() so that the FIFO code can use
serial8250_console_putchar(). This will be particularly important
for a follow-up commit, where output bytes are inspected to track
newlines.
This is only refactoring and has no functional change.
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 8d5cfb1 commit 95a1b40
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
3301 | 3306 | | |
3302 | 3307 | | |
3303 | 3308 | | |
3304 | 3309 | | |
3305 | | - | |
| 3310 | + | |
3306 | 3311 | | |
3307 | 3312 | | |
3308 | 3313 | | |
| |||
3352 | 3357 | | |
3353 | 3358 | | |
3354 | 3359 | | |
| 3360 | + | |
3355 | 3361 | | |
3356 | 3362 | | |
3357 | 3363 | | |
| |||
3362 | 3368 | | |
3363 | 3369 | | |
3364 | 3370 | | |
3365 | | - | |
| 3371 | + | |
3366 | 3372 | | |
3367 | 3373 | | |
3368 | | - | |
| 3374 | + | |
3369 | 3375 | | |
3370 | 3376 | | |
3371 | 3377 | | |
| |||
3445 | 3451 | | |
3446 | 3452 | | |
3447 | 3453 | | |
3448 | | - | |
| 3454 | + | |
3449 | 3455 | | |
3450 | 3456 | | |
3451 | 3457 | | |
| |||
0 commit comments