lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAAt=GnJZmPCqjgP3-XNLwf=+OTvEm2KKpGP1ON1JQ+=KCziCPQ@mail.gmail.com>
Date:	Mon, 15 Oct 2012 15:21:01 -0400
From:	Mostafa Kassem <m.kassem681@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: Re: usbserial & ftdi_sio problem

Thanks for the prompt reply, please see inline.

On Mon, Oct 15, 2012 at 2:18 PM, Greg KH <gregkh@...uxfoundation.org> wrote:
> On Mon, Oct 15, 2012 at 11:11:26AM -0700, Greg KH wrote:
>> On Mon, Oct 15, 2012 at 01:15:05PM -0400, Mostafa Kassem wrote:
>> > Greetings,
>> >
>> > I am having a problem with usbserial and ftdi_sio kernel loadable modules.
>> >
>> > I am working on an embedded board using RHEL 6.0.
>>
>> Wait right there.  If you are using RHEL, you need to get support from
>> Red Hat for it, especially as you are already paying for it, you should
>> use it.

Thanks, will do.

>> > The board has 2 FTDI
>> > chips each with quad serial interface for a total of 8 serial ports.
>> > In addition, we have a WiFi module that behaves as a USB to Serial
>> > converter.
>>
>> What specific wifi module is this?  What driver is it?

The FTDI chips are FT4232 and the WiFi module is from connectone, this
one: http://www.connectone.com/?page_id=233

>> > I can see in /dev directory that the 8 serial ports from FTDI are
>> > mapped as ttyUSB0 to ttyUSB7, however I can't find the WiFi module. If
>> > I disable the loading of ftdi_sio.ko module, the WiFi module appears
>> > as ttyUSB0 and it works fine. It seems to me that both the WiFi module
>> > and the one of the FTDI interfaces want to use ttyUSB0 and it seems
>> > that the FTDI interface is winning.
>>
>> Odd, again, what driver/device is this wifi device?

Please see above.

>>
>> > Even if I rename the FTDI interfaces from ttyUSB0..7 to fdtisio0..7 ,
>> > I still don't see the WiFi module.
>> >
>> > The WiFi module is loaded in rc.local  using modprobe usbserial
>> > vendor=0x**** product=0x**** as per the WiFi module vendor's
>> > recommendations.
>>
>> Oh, that's the problem, NEVER do that, you just broke things, as you
>> found out.  No one should ever use the generic usb serial interface,
>> newer kernels will warn you about this.  Let the proper driver manage
>> the wifi device and you will not have any of these issues.
>

Well, I had to do that or the WiFi device won't work, as simple as
that. It is also what the manufacturer recommends. The manufacturer is
using the generic usbserial and don't have a specific driver.

> Also, what is the vendor and product id you are passing to the driver?
> That will help us determine what the real driver you should be using
> instead.
>

vendor=0x1af1 and product=0x0003

> thanks,
>
> greg k-h

No, thank you. Your help is greatly appreciated.

Mostafa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ