Hi
I read from the Documentation/serial/driver that the custom divisor is
only applied to ports that have baud 38400. I'm asking if there is some
reason why custom divisor should not be used for other speeds too? I do
have a MIPS-SoC that does have 16550A-type uart but it needs custom
divisor, no matter what the speed is. The custom divisor is calculated
as follows:
baud = speed of port
system_frequency is in MHz
cdiv = (system_frequency * 5000) / baud;
if ((cdiv % 16)>7) cdiv += 8;
cdiv /= 16;
What I'm doing is to use early_serial_setup with flags containing
ASYNC_SPD_CUST and cdiv as .custom_divisor. However the serial_core
doesn't apply that divisor unless the speed is 38400 (and for example I
mostly need to run it in 9600). I'm now asking if I've misunderstood
something or does the removal of baud==38400 from serial_core cause
problems with other architectures?
btw. I'm not subscribed to the list so please cc me if replying.
yours,
Miika
--
All bugs added by me :)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]