serial.c patch in 2.3.19

Thomas Sailer (sailer@ife.ee.ethz.ch)
Thu, 14 Oct 1999 21:35:36 +0200


Hi Ted

Do you know who added the following patch in 2.3.19
and what its purpose is?

It's breaking systems and HOWTO's. It's getting difficult
to convince serial.c to give up its lock on the ioregion
if one has another driver that also drives 8250 style
serial ports (such as baycom_ser_*).

Thanks Jean-Luc f5ibh@db0bm.ampr.org for finding the problem.

setserial /dev/ttySx port 0 seems to be the only way
to convince serial to give up a particular port.

Tom

@@ -2006,7 +2006,7 @@
info->xmit_fifo_size = state->xmit_fifo_size =
new_serial.xmit_fifo_size;

- if (state->port)
+ if (state->type != PORT_UNKNOWN && state->port)
release_region(state->port,8);
if (change_port || change_irq) {
/*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/