Commit bb1201d
serial: 8250_pci: rewrite pericom_do_set_divisor()
Have pericom_do_set_divisor() use the uartclk instead of a hard coded
value to work with different speed crystals. Tested with 14.7456 and 24
MHz crystals.
Have pericom_do_set_divisor() always calculate the divisor rather than
call serial8250_do_set_divisor() for rates below baud_base.
Do not write registers or call serial8250_do_set_divisor() if valid
divisors could not be found.
Fixes: 6bf4e42 ("serial: 8250: Add support for higher baud rates to Pericom chips")
Cc: stable <[email protected]>
Signed-off-by: Jay Dolan <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent c525c5d commit bb1201d
1 file changed
+17
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
1328 | | - | |
1329 | 1327 | | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1333 | 1332 | | |
1334 | | - | |
1335 | | - | |
| 1333 | + | |
| 1334 | + | |
1336 | 1335 | | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1337 | 1345 | | |
1338 | 1346 | | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
| 1347 | + | |
| 1348 | + | |
1342 | 1349 | | |
1343 | 1350 | | |
1344 | 1351 | | |
1345 | | - | |
1346 | | - | |
1347 | 1352 | | |
1348 | 1353 | | |
1349 | | - | |
1350 | 1354 | | |
1351 | 1355 | | |
1352 | 1356 | | |
| |||
0 commit comments