Re: [ patch 4/7] drivers/serial/jsm: new serial device driver
From: Greg KH
Date: Tue Mar 08 2005 - 19:32:35 EST
On Tue, Mar 08, 2005 at 03:47:45PM -0600, Kilau, Scott wrote:
> > Who needs to know if a port is open or not?
> <snipped some code>
> > +static ssize_t jsm_tty_baud_show(struct class_device *class_dev, char *buf)
> > No, please delete these, and the other sysfs files that duplicate the
> > same info that you can get by using the standard Linux termios calls.
> > There is no need for them here.
> Our serial port monitoring tools need to know these things, and to
> find them out *without* opening up the serial port to do an ioctl().
> For example, lets say a customer has a modem connected to a serial port.
> If you were to open up the port with an "stty -a" to get the current
> settings and signals, you would unintentionally raise RTS and DTR.
Why not fix the driver to not change the current line settings if it is
not being opened for the first time? That seems like a much simpler way
to solve this, and probably the saner way, as you don't want any user to
be able to mess up your modem...
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/