Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298683
| From | Johan Hovold <johan@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5] USB: serial: add Moxa UPORT 11x0 driver |
| Date | 2015-12-28 16:40 +0100 |
| Message-ID | <qKI3V-402-27@gated-at.bofh.it> (permalink) |
| References | <qCFPA-6lv-1@gated-at.bofh.it> <qKGEN-38h-7@gated-at.bofh.it> <qKHhv-3pQ-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Dec 28, 2015 at 02:39:44PM +0000, One Thousand Gnomes wrote: > > https://lkml.kernel.org/r/201102171210.03474.frode@tennebo.com > > > > However, the TIOCSRS485-ioctl might not even be the right interface for > > changing transceiver modes, and instead a sysfs-based > > usb-serial-specific interface could be more appropriate for example. > > sysfs works out very badly if modes can be configured routinely at > runtime. In particular the sysfs interface is completely disconnected > from the vhangup() and security model of the tty interface. > > If its the kind if thing just administratively configured at boot then > it's a great interface, just be careful about who has access to it. I think this is something that you only want to configure once (e.g. at boot) and before even opening the tty device as this can change the functions of the pins (e.g. DCD becoming TxD-). If a generic usb-serial-specific interface for this makes sense, I think we should simply prevent mode changes while the port is in use. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v5] USB: serial: add Moxa UPORT 11x0 driver Johan Hovold <johan@kernel.org> - 2015-12-28 15:10 +0100
Re: [PATCH v5] USB: serial: add Moxa UPORT 11x0 driver One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2015-12-28 15:50 +0100
Re: [PATCH v5] USB: serial: add Moxa UPORT 11x0 driver Johan Hovold <johan@kernel.org> - 2015-12-28 16:40 +0100
[PATCH v6] USB: serial: add Moxa UPORT 11x0 driver Mathieu OTHACEHE <m.othacehe@gmail.com> - 2015-12-28 21:30 +0100
Re: [PATCH v6] USB: serial: add Moxa UPORT 11x0 driver Johan Hovold <johan@kernel.org> - 2015-12-29 13:30 +0100
csiph-web