Linux-kernel mailing list archive 1997-47,: Re: 2.1.66 serial flakeyness?

# Re: 2.1.66 serial flakeyness?

Theodore Y. Ts'o (tytso@MIT.EDU)
Wed, 26 Nov 1997 16:41:06 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Krzysztof G. Baranowski: "Re: teardrop and Linux as a router"
- Previous message: Pierfrancesco Caci: "2.1.66 modem at 9600 here too"
- In reply to: Pete Clements: "Re: 2.1.66 serial flakeyness?"
- Next in thread: Robert Mihram: "Re: 2.1.66 serial flakeyness?"
- Reply: Robert Mihram: "Re: 2.1.66 serial flakeyness?"

> Has anyone else experienced this problem:
> When I go to dial out through my modem with it set to 38400, I can't get
> a higher then 9600 baud connection. This does not happen with 2.1.65 or
> any other kernel I've tried, it doesn't happen if I set the rate to 57600
> either.

Oops, I made a really stupid brain-o in the serial driver changes. The
following patch to 2.1.66 should fix things:

--- serial.c.orig Wed Nov 26 16:37:52 1997
+++ serial.c Wed Nov 26 16:38:34 1997
@@ -1376,7 +1376,8 @@
/* Determine divisor based on baud rate */
baud = tty_get_baud_rate(info->tty);
baud_base = info->state->baud_base;
- if (baud == 38400)
+ if (baud == 38400 &&
+ ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_CUST))
quot = info->state->custom_divisor;
else {
if (baud == 134)

Sorry for the inconvenience!!!

- Ted

- Next message: Krzysztof G. Baranowski: "Re: teardrop and Linux as a router"
- Previous message: Pierfrancesco Caci: "2.1.66 modem at 9600 here too"
- In reply to: Pete Clements: "Re: 2.1.66 serial flakeyness?"
- Next in thread: Robert Mihram: "Re: 2.1.66 serial flakeyness?"
- Reply: Robert Mihram: "Re: 2.1.66 serial flakeyness?"