From: Johan Hovold <johan@kernel.org>
To: Davide Tronchin <davide.tronchin.94@gmail.com>
Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
marco.demarco@posteo.net
Subject: Re: [PATCH] USB: serial: option: add u-blox LARA-R6 01B modem
Date: Wed, 21 Jun 2023 18:11:59 +0200 [thread overview]
Message-ID: <ZJMhT0ahToMBWISk@hovoldconsulting.com> (raw)
In-Reply-To: <20230621125314.7725-1-davide.tronchin.94@gmail.com>
On Wed, Jun 21, 2023 at 02:53:14PM +0200, Davide Tronchin wrote:
> > > The first 4 interfaces of all the 3 configurations (default, RMNET, ECM)
> > > are the same.
> > > Here below you can find debug/usb/devices file of the LARA-R6 01B module
> > > in all the USB configurations.
>
> > Thanks, can you include this in the commit message for v2 as well?
>
> Sure.
>
> > Right, I had USB_DEVICE_INTERFACE_CLASS() in mind for the ECM
> > configuration. That should avoid the need for RSVD().
>
> If possible, i would use USB_DEVICE_INTERFACE_CLASS() for all the
> R6 01B USB configurations. Something like:
>
> { USB_DEVICE_INTERFACE_CLASS(UBLOX_VENDOR_ID, 0x1311, 0xff) },
> { USB_DEVICE_INTERFACE_CLASS(UBLOX_VENDOR_ID, 0x1312, 0xff),
> .driver_info = RSVD(4) },
> { USB_DEVICE_INTERFACE_CLASS(UBLOX_VENDOR_ID, 0x1313, 0xff) },
>
> Reservation is required for RMNET on port 4, as the RMNET port also
> has USB interface class 255:
>
> If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
>
> What do you think?
That should work, but I don't think you should use more specific
matching than required either. So I'd suggest sticking with USB_DEVICE()
for the other two configurations.
Johan
prev parent reply other threads:[~2023-06-21 16:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 14:14 [PATCH] USB: serial: option: add u-blox LARA-R6 01B modem Davide Tronchin
2023-06-20 6:21 ` Johan Hovold
2023-06-21 8:47 ` Davide Tronchin
2023-06-21 9:07 ` Johan Hovold
2023-06-21 12:53 ` Davide Tronchin
2023-06-21 16:11 ` Johan Hovold [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=ZJMhT0ahToMBWISk@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=davide.tronchin.94@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=marco.demarco@posteo.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.