On Fri, Sep 14, 2012 at 01:55:46PM +0000, Robert Ryszard Paciorek wrote: > Hi, > > Dnia Friday 14 September 2012 12:02, Sebastian Andrzej Siewior napisał: > > On Fri, Sep 14, 2012 at 10:04:02AM +0000, Robert Ryszard Paciorek wrote: > > > Add parametrs to hide some of converter interfaces against ftdi_sio > > > driver. This allows on multiple-interfaces converter (such as ft2232, > > > ft4232) use uart with kernel driver and use e.g. I2C or SPI (on other > > > interface) with libusb or other kernel-driver. > > > > Couldn't you instead do an unbind of that particular interface via sysfs? > > On one FT4232 chip is 4 uart interfaces. Two first uart can be configured > as I2C, SPI, JTAG, etc. > > I can unbind only full usb device not single interfaces on devices. When I try > unbind interface I get "write error: No such device" So that is something you might want to change. However back to the SPI/I2C thingy. You ignore one uart port and decide to use it as SPI host right? So you should get a reference somehow to this port so you can register a SPI host to the system right? How do you do this? > > How do you pass that particular interface to your i2c / SPI? > > For example: In similar kernel module to ftdi_sio I can select only other > interfaces. Configuration of FT4232 is per interfaces, so there should > be no conflict. > > Method of elimination some interfaces by return ENODEV is used in this > driver for dedicated JTAG port in some devices - see ftdi_jtag_probe() > and ftdi_stmclite_probe() function. And how is this port used? I just see that interface is beeing ignored. > Regards, > Robert Sebastian -- 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