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"

> 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.

This patch allows use this same solution for user defined hardware.

> > Signed-off-by: Robert Ryszard Paciorek <r.pacio...@icm.edu.pl>
>
> Sebastian

Regards,
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to