Dnia Friday 14 September 2012 14:35, Sebastian Andrzej Siewior napisał: > 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. Maybe this is a better solution, especially considering aversion to do this by the module parameters. Or maybe it is better to give support for I2C, SPI to ftdi_sio module and use sysfs to switch betwen uart/ic2c/spi ... > 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? I plan do this with other kernel module, matching to the same device, but serving other interface. I haven't complete module yet, but in first tests this concept works ok. Robert -- 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