public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Simon Arlott <simon@fire.lp0.eu>
To: Ondrej Zary <linux@rainbow-software.org>
Cc: accessrunner-general@lists.sourceforge.net,
	netdev@vger.kernel.org,
	Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: cxacru: USB ethernet port of CX82310-based ADSL routers?
Date: Wed, 01 Sep 2010 07:40:26 +0100	[thread overview]
Message-ID: <4C7DF55A.3080007@simon.arlott.org.uk> (raw)
In-Reply-To: <201009010048.44644.linux@rainbow-software.org>

On 31/08/10 23:48, Ondrej Zary wrote:
> On Wednesday 01 September 2010 00:15:49 Simon Arlott wrote:
>> On 31/08/10 22:13, Ondrej Zary wrote:
>> > Hello,
>> > I have an ADSL router based on Conexant CX82310 chip. This chip provides
>> > both ethernet and USB interfaces. The ethernet interface is often
>> > internally connected to a 5-port switch (in my case too). The USB
>> > interface works as an ethernet card in Windows (using proprietary
>> > driver). In Linux, the cxacru driver binds to the device but does not
>> > work (no wonder - it's doing firmware things in an attempt to bring an
>> > ADSL modem up).

If you get the firmware loaded, it may implement an existing protocol
for ethernet over USB like all the ATM modems linux supports do.

>> > I wonder how to implement support for this device in cxacru driver. Or
>> > would be a separate driver better?
>>
>> Support for this shouldn't really go into the cxacru driver, as that's
>> for an USB ATM interface (it depends on usbatm for actual ATM traffic)
>> not ethernet.
> 
> That's what I was afraid of...

The firmware loading process is likely to be similar if not identical,
but these devices usually don't respond to the status command after
loading with the ADSL firmware.

>> Unfortunately it doesn't look like a trivial task to auto-detect which
>> driver should handle it... your device itself claims to be an "ADSL
>> Modem".
> 
> In fact, it does not. The idProduct text is from usb.ids file (which is often 
> incorrect). The device says that it's "USB NET CARD" (iProduct). But I don't 
> know if Linux can match drivers by iProduct string.

The probe function could ignore it allowing another driver to take it.

> 
> Maybe ignoring the device if class is 255 and iProduct is "USB NET CARD" (or 
> does not contain "MODEM"?). 
> 
> All these devices seem to use bDeviceClass 0 and iProduct "ADSL USB MODEM".
> 

However, there may be others that don't. I only have three variants of
a generic device rebranded... although they don't appear to have a way
of replacing that string. Ignoring "USB NET CARD" would be reasonable.

-- 
Simon Arlott

      reply	other threads:[~2010-09-01  6:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 21:13 cxacru: USB ethernet port of CX82310-based ADSL routers? Ondrej Zary
2010-08-31 22:15 ` Simon Arlott
2010-08-31 22:48   ` Ondrej Zary
2010-09-01  6:40     ` Simon Arlott [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C7DF55A.3080007@simon.arlott.org.uk \
    --to=simon@fire.lp0.eu \
    --cc=accessrunner-general@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rainbow-software.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox