Hi Maksim,
On 20/08/17 06:40, Maksim Salau wrote:
>> This introduces the `uart_mode` sysfs attribute as seen in the `io_ti`
>> USB serial driver, allowing this USB serial interface to be switched
>> between RS-232, 2-wire RS-485 and 4-wire RS-485.
> 
> Recently I've discovered a blog post by Greg Kroah-Hartman on sysfs files [1].
> I believe this information will help you to create the new file in a better 
> way.
> 
> [1] http://kroah.com/log/blog/2013/06/26/how-to-create-a-sysfs-file-correctly/

I'll definitely look into that… however I think the long-term plan in
this case is to expand the RS-485 IOCTL once some research is done into
what settings it should include.

I personally would like to see a sysfs interface in addition to enable
the possibility of udev rules configuring a port prior to its use,
however others have indicated that may result in a race condition.  A
dual-interface (ioctl + sysfs) would give us the best of both worlds,
and that link sounds like an ideal way of doing the sysfs part.
-- 
Stuart Longland
Systems Engineer
     _ ___
\  /|_) |                           T: +61 7 3535 9619
 \/ | \ |     38b Douglas Street    F: +61 7 3535 9699
   SYSTEMS    Milton QLD 4064       http://www.vrt.com.au
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to