lkml.org 
[lkml]   [2016]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices
    From
    Date
    On Mon, 2016-01-25 at 15:17 +0100, Jiri Kosina wrote:
    > On Sat, 23 Jan 2016, Michal Malý wrote:
    >
    > > I briefly considered leaving the switch up to the userspace and
    > handling the 
    > > device in the kernel only once it's been switched. I am however
    > uncertain how 
    > > to advertise this to the users. Writing a tiny app that would
    > currently handle 
    > > just one device seems like an overkill, abusing usb_modeswitch
    > seems counter-
    > > intuitive as it's purpose is to handle various USB modems. 
    >
    > Well, originally usb_modeswitch (beware, it's called "modeswitch",
    > not 
    > "modemswitch" :) ) was purely for handling ZeroCD on USB 3G modems,
    > and 
    > it's currently still by far the most common case, but there are
    > other 
    > devices being handled by that package now; I for example recall some 
    > HP printers needing a magic USB command to be sent to it before they
    > would 
    > start printing, and usb_modeswitch is handling those now AFAIK.
    >
    > So if we do this in userspace, I think usb_modeswitch is not a bad
    > choice.

    Ok, that's interesting... I tinkered with usb_modeswitch a bit and I
    made it switch the G920 just fine after a while. Consider the patches
    dropped then, letting usb_modeswitch take care of this sounds
    reasonable.

    Michal

    \
     
     \ /
      Last update: 2016-01-25 22:41    [W:3.508 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site