mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bjorn@mork.no>
To: "SZ Lin (林上智)" <SZ.Lin@moxa.com>
Cc: "Johan Hovold" <johan@kernel.org>,
	"Taiyi TY Wu (吳泰毅)" <TaiyiTY.Wu@moxa.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] USB: serial: option: adding support for YUGA CLM920-NC5
Date: Tue, 19 Dec 2017 07:14:17 +0100	[thread overview]
Message-ID: <878tdzb5xi.fsf@miraculix.mork.no> (raw)
In-Reply-To: <5942081F7727964D830FC876E62CA85601194755CD@MHQMBX01.moxa.com> ("SZ Lin =?utf-8?B?KOael+S4iuaZuikiJ3M=?= message of "Tue, 19 Dec 2017 05:59:42 +0000")

"SZ Lin (林上智)" <SZ.Lin@moxa.com> writes:
>> Johan Hovold <johan@kernel.org> writes:
>> 
>> >> +static const struct option_blacklist_info yuga_clm920_nc5_blacklist = {
>> >> +	.reserved = BIT(0) | BIT(1) | BIT(4), };
>> >
>> > Do you really need to blacklist the first interface?
>> 
>> Good question. Interface #0 does look a lot like a Qualcomm DM/DIAG function, based
>> on two bulk endpoints, no additional descriptors and the fact that it is the first interface.
>> If so, then we do want a serial driver for it.  There is a basic libqcdm implementation in
>> ModemManager if you want to test it out.
>> 
>
> I have confirmed that interface #0 is QCDM/DIAG port in this module,
>and thus I will remove this from reserved list in next patch.
>Furthermore, interface #1 is ADB port. Should I also remove this from
>reserved list?

No. ADB is handled by userspace tools using libusb.  It should not be
bound to any serial driver, so you will need to blacklist it.  But you
need to keep the blacklist anyway to include the QCDM/DIAG port

I assume Johan's alternative was to match class/subclass/protocol
against ff/00/00, which would have worked if you only wanted to include
interfaces 2 and 3.

>> And I expect interface #4 is QMI/rmnet?  Feel free to confirm that assumption with a
>> patch against qmi_wwan :-)
>> 
> Yes, it is. I will send qmi_wwan patch by all means.

Thanks


Bjørn

  reply	other threads:[~2017-12-19  6:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15 10:32 SZ Lin
2017-12-18 16:52 ` Johan Hovold
2017-12-18 18:44   ` Bjørn Mork
2017-12-19  5:59     ` SZ Lin (林上智)
2017-12-19  6:14       ` Bjørn Mork [this message]
2017-12-19  8:54         ` Johan Hovold

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=878tdzb5xi.fsf@miraculix.mork.no \
    --to=bjorn@mork.no \
    --cc=SZ.Lin@moxa.com \
    --cc=TaiyiTY.Wu@moxa.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@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

all inboxes | Powered by JetHome®