Re: [PATCH] USB: serial: ti_usb_3410_5052: Port uart_mode from io_ti.

From
Stuart Longland <hidden>
Date
2017-08-19 20:47:25
Hi Maksim,
On 20/08/17 06:40, Maksim Salau wrote:
quoted
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (1 message) 1 message, 1 author, last reply 2017-08-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help