[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151228143944.111a6c7f@lxorguk.ukuu.org.uk>
Date: Mon, 28 Dec 2015 14:39:44 +0000
From: One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
To: Johan Hovold <johan@...nel.org>
Cc: Mathieu OTHACEHE <m.othacehe@...il.com>,
gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org
Subject: Re: [PATCH v5] USB: serial: add Moxa UPORT 11x0 driver
> 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.
Otherwise the traditional interface for that level of configuration has
probably been termiox, which we do have hooks for but don't really make
much use of.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists