Re: [systemd-devel] WebUSB

2017-01-25 Thread Greg KH
On Wed, Jan 25, 2017 at 02:38:06PM +0100, Lars Knudsen wrote: > 1. someone plugs in hardware with an unknown VID/PID but CDC capabilities > 2. modemmanager does it's magic probing and finds "this is not a modem" > 3. the VID/PID(& more if needed) + findings is sent to a cloud db ... Do you want a

Re: [systemd-devel] WebUSB

2017-01-25 Thread Lars Knudsen
On Fri, Jan 20, 2017 at 1:38 PM, Greg KH wrote: > On Fri, Jan 20, 2017 at 01:18:12PM +0100, Lars Knudsen wrote: > > > The full device should be fine if it has a WebUSB interface (even > in a > > > composite scenario) > > > > Really? You want to allow

Re: [systemd-devel] WebUSB

2017-01-11 Thread Oliver Neukum
Am Mittwoch, den 11.01.2017, 16:01 +0100 schrieb Lars Knudsen: > If it can be invoked via DBus - what is the harm to only do the scan > for the greylisted (in this case webusb) modems when the user > actually wants to search for a modem (like a printer) - and leave the > poor devices alone

Re: [systemd-devel] WebUSB

2017-01-11 Thread Dan Williams
On Wed, 2017-01-11 at 16:01 +0100, Lars Knudsen wrote: > If it can be invoked via DBus - what is the harm to only do the scan > for > the greylisted (in this case webusb) modems when the user actually > wants to > search for a modem (like a printer) - and leave the poor devices > alone >

Re: [systemd-devel] WebUSB

2017-01-11 Thread Aleksander Morgado
On Wed, Jan 11, 2017 at 2:21 PM, Christer Weinigel wrote: >> Actually, that sounds like a very good compromise. I remember my own >> struggles 3-4 years ago when I had to get a device working properly on >> ChromeOS and Ubuntu, where the firmware had to handle that the

Re: [systemd-devel] WebUSB

2017-01-11 Thread Christer Weinigel
On 2017-01-10 19:55, Lars Knudsen wrote: > On Tue, Jan 10, 2017 at 7:08 PM, Dan Williams > wrote: > And we're quite happy to keep blacklisting specific VID/PID combos we > know are not modems. Another possible solution is to greylist devices >

Re: [systemd-devel] WebUSB

2017-01-11 Thread Oliver Neukum
On Tue, 2017-01-10 at 19:55 +0100, Lars Knudsen wrote > And we're quite happy to keep blacklisting specific VID/PID > combos we > know are not modems. Another possible solution is to greylist > devices > that happen to have webusb descriptors, such that

Re: [systemd-devel] WebUSB

2017-01-10 Thread Lars Knudsen
On Tue, Jan 10, 2017 at 7:08 PM, Dan Williams wrote: > On Tue, 2017-01-10 at 18:33 +0100, Greg KH wrote: > > On Tue, Jan 10, 2017 at 06:23:13PM +0100, Lars Knudsen wrote: > > > > > > > > > On Jan 10, 2017 18:19, "Greg KH" wrote: > > > > > > On Tue, Jan 10,

Re: [systemd-devel] WebUSB

2017-01-10 Thread Dan Williams
On Tue, 2017-01-10 at 18:33 +0100, Greg KH wrote: > On Tue, Jan 10, 2017 at 06:23:13PM +0100, Lars Knudsen wrote: > > > > > > On Jan 10, 2017 18:19, "Greg KH" wrote: > > > > On Tue, Jan 10, 2017 at 06:04:46PM +0100, Lars Knudsen wrote: > > > I figured that made most

Re: [systemd-devel] WebUSB

2017-01-10 Thread Greg KH
On Tue, Jan 10, 2017 at 06:23:13PM +0100, Lars Knudsen wrote: > > > On Jan 10, 2017 18:19, "Greg KH" wrote: > > On Tue, Jan 10, 2017 at 06:04:46PM +0100, Lars Knudsen wrote: > > I figured that made most sense :) > > > > Still, it would be good if we could have a

Re: [systemd-devel] WebUSB

2017-01-10 Thread Lars Knudsen
On Jan 10, 2017 18:19, "Greg KH" wrote: On Tue, Jan 10, 2017 at 06:04:46PM +0100, Lars Knudsen wrote: > I figured that made most sense :) > > Still, it would be good if we could have a rule to not grab the CDC interface > part if the device includes WebUSB functionality. What

Re: [systemd-devel] WebUSB

2017-01-10 Thread Lars Knudsen
I figured that made most sense :) Still, it would be good if we could have a rule to not grab the CDC interface part if the device includes WebUSB functionality. The likelihood of a modem+WebUSB combo is so small that it must fall in the category where potential rare exotic devices combining it

Re: [systemd-devel] WebUSB

2017-01-10 Thread Dan Williams
On Tue, 2017-01-10 at 01:01 +0100, Lars Knudsen wrote: > On Tue, Jan 10, 2017 at 12:47 AM, Lars Knudsen > wrote: > > > A small update:  When the modemmanager finishes probing (~16 secs > > after > > connection) data seems to stop flowing in from the WebUSB bulk > > endpoint > >

Re: [systemd-devel] WebUSB

2017-01-10 Thread Greg KH
On Tue, Jan 10, 2017 at 08:39:28AM +0100, Lars Knudsen wrote: > > > On Jan 10, 2017 07:51, "Greg KH" wrote: > > On Mon, Jan 09, 2017 at 01:32:40PM -0800, Reilly Grant wrote: > > On 2017-01-09 9:55 am, Greg KH wrote: > > > On Mon, Jan 09, 2017 at 06:13:04PM +0100,

Re: [systemd-devel] WebUSB

2017-01-10 Thread Greg KH
On Mon, Jan 09, 2017 at 01:32:40PM -0800, Reilly Grant wrote: > On 2017-01-09 9:55 am, Greg KH wrote: > > On Mon, Jan 09, 2017 at 06:13:04PM +0100, Bjørn Mork wrote: > > > Greg KH writes: > > > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen > > > > wrote:

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Jan 10, 2017 07:51, "Greg KH" wrote: On Mon, Jan 09, 2017 at 01:32:40PM -0800, Reilly Grant wrote: > On 2017-01-09 9:55 am, Greg KH wrote: > > On Mon, Jan 09, 2017 at 06:13:04PM +0100, Bjørn Mork wrote: > > > Greg KH writes: > > > > On Mon, Jan 09, 2017 at

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Tue, Jan 10, 2017 at 12:47 AM, Lars Knudsen wrote: > A small update: When the modemmanager finishes probing (~16 secs after > connection) data seems to stop flowing in from the WebUSB bulk endpoint > also. It is, however, possible to reconnect and get data again - so I

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
A small update: When the modemmanager finishes probing (~16 secs after connection) data seems to stop flowing in from the WebUSB bulk endpoint also. It is, however, possible to reconnect and get data again - so I need to see if there should be anything in the mbed firmware causing that behavior

Re: [systemd-devel] WebUSB

2017-01-09 Thread Dan Williams
On Mon, 2017-01-09 at 20:05 +0100, Lars Knudsen wrote: > For all practical reasons and looking ahead, I truly believe that > there > will be no reason to have a WebUSB header in any of the few coming > modem > devices (what are the stats on new USB CDC modems for these years in > general? - still

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Mon, Jan 9, 2017 at 7:43 PM, Bjørn Mork wrote: > Lars Knudsen writes: > > > configured with [0]CDC INT, [1]CDC BULK and [2]WebUSB CDC/BULK) would: > > > > 1) not be considered a modem (it would not make sense to do a modem > > including webusb headers - in

Re: [systemd-devel] WebUSB

2017-01-09 Thread Bjørn Mork
Lars Knudsen writes: > configured with [0]CDC INT, [1]CDC BULK and [2]WebUSB CDC/BULK) would: > > 1) not be considered a modem (it would not make sense to do a modem > including webusb headers - in the same device mode at least) > 2) provide standard /dev/ttyUSBx serial

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Jan 9, 2017 18:56, "Bjørn Mork" wrote: > Lars Knudsen writes: > > > It seemed like if just one interface in the description list was somehow > > compliant with modem manager, the full device seemed claimed. > > > > I may have missed something in my headers

Re: [systemd-devel] WebUSB

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 11:29:24AM +0100, Aleksander Morgado wrote: > On Mon, Jan 9, 2017 at 11:07 AM, Greg KH wrote: > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen wrote: > >> Web USB can only grab devices which has special Web USB headers. It can not >

Re: [systemd-devel] WebUSB

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 01:12:11PM +0200, Felipe Balbi wrote: > > I don't think we need to change anything in the kernel. What we need is > generic udev rule that fixes up permissions for the WebUSB Interface. > > IIRC, WebUSB is implemented much like CDC ACM, however bInterfaceClass > is set to

Re: [systemd-devel] WebUSB

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 06:13:04PM +0100, Bjørn Mork wrote: > Greg KH writes: > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen wrote: > >> Web USB can only grab devices which has special Web USB headers. It can not > >> grab any USB device. > >> > >>

Re: [systemd-devel] WebUSB

2017-01-09 Thread Bjørn Mork
Lars Knudsen writes: > It seemed like if just one interface in the description list was somehow > compliant with modem manager, the full device seemed claimed. > > I may have missed something in my headers while experimenting. Can you give > an example of a header structure

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
It seemed like if just one interface in the description list was somehow compliant with modem manager, the full device seemed claimed. I may have missed something in my headers while experimenting. Can you give an example of a header structure that will not be assumed to be a modem by MM while

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Mon, Jan 9, 2017 at 11:39 AM, Greg KH wrote: > On Mon, Jan 09, 2017 at 11:29:24AM +0100, Aleksander Morgado wrote: > > On Mon, Jan 9, 2017 at 11:07 AM, Greg KH wrote: > > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen > wrote: > > >>

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
I have som more input - but really need Reilly's comments on this: As hardware manufacturers most often want to make it possible for users to use their hardware in a WebUSB setting as well as in a "normal" app mode, we will most likely see composite devices that could have the following

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Jan 9, 2017 10:53, "Mantas Mikulėnas" wrote: On Mon, Jan 9, 2017 at 11:20 AM, Lars Knudsen wrote: Hi, I am currently looking into how we can make using WebUSB devices less painful for users on Linux. The main purpose of WebUSB (as far as I can see) is