Call usb_set_configuration() on Windows only
Hello,
working with interface 0 of the FT2232(H) on Linux, I get zillions of
kernel-log messages like:
kernel: usb 6-3: usbfs: interface 1 claimed by ftdi_sio while 'a.out' sets config #1
I understand as follows:
ftdi_usb_open_dev()
first detaches the driver for interface 0
Now usb_set_configuration() is called, but interface 1 is still attached to
the kernel driver. This results in above kernel log.
Do we really need to set the configuaration? Does any device have a
alternative configuration at all?
I propose appended patch, tested on Linux with and without ftdi_sio.ko
loaded. No other change seen, beside no more kernel log messages like above.
Bye
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From
fcb2609f0dae14c5616c34242177959cf226a5f2 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@hertz.ikp.physik.tu-darmstadt.de>
Date: Thu, 23 Jul 2009 16:21:08 +0200
Subject: usb_set_configuration() not needed on Linux