On Thu, 17 Feb 2011 12:10:03 +0100 Frode Tennebø <frode@xxxxxxxxxxx> wrote: > I just recently aquired an Edgeport/8s for use with Linux (currently > running Fedora 14, kernel 2.6.34.7, but flexible). But I need to set > the ports to RS422 and RS485. However, the ionmode utility provided does not > work: > > [root@tommy utils]# ./ionmode -F /dev/ttyUSB0 > ./ionmode GETMODE failed for port /dev/ttyUSB0 > [root@tommy utils]# ./ionmode -F /dev/ttyUSB0 mode 0x01 > ./ionmode SETMODE failed for port /dev/ttyUSB0 > > On closer inspection, the edge_ioctl() function in the io_ti.c module > does not contain the hooks for neither ION_GETMODE nor ION_SETMODE. I > was led to believe that it should already be included in recent 2.6 kernels, > but anyway... > > Then I found (http://www.mail-archive.com/linux-usb- > devel@xxxxxxxxxxxxxxxxxxxxx/msg28881.html) which apparently was not applied in > full according to the follow-up. > > However, inspecting the patch versus the current mainline git source shows > that most of the functionality of the patch is indeed implemented, except the > aforementioned IOCTLs. As I'm not familiar with the history I was wondering > if there is a rationale for not including the IOCTLs and what is needed to get > the them in? There are standardised ioctls for RS485 mode and the like. So just add support for those and submit a patch. (TIOCGRS485/TIOCSRS485). It's fairly recent so there are intentionally lots of free flags and several free data fields in case there are RS485 features we need to add -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html