Commit bb3aac8
committed
8250: Use proper set_mctrl callback for ni16550 clock divider
Commit b4a29b9 ("serial: 8250: Move Alpha-specific quirk out of the
core") removed the mcr_mask and mcr_force members from struct
uart_8250_port. Upstream they are only used for an Alpha-specific
quirk. The Alpha code was instead refactored to use the proper
'->set_mctrl' callback.
The out-of-tree patches for the 8250 ni16550 serial driver rely on
mcr_force to set UART_MCR_CLKSEL (divide clock by 4) for certain clock
rate configurations. Refactor the code to use a '->set_mctrl' callback
instead to set this MCR bit flag.
Fixes: ff4f5de ("8250_pnp: Add new ID NIC792B for NI 16550 UART 25MHz")
Fixes: c170227 ("serial: 8250_ni16550: Add support for NIC7A69")
Signed-off-by: Gratian Crisan <gratian.crisan@ni.com>1 parent 266b84d commit bb3aac8
4 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | | - | |
1034 | 1033 | | |
1035 | 1034 | | |
1036 | 1035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
0 commit comments