mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Oliver Neukum <oneukum@suse.com>
Cc: "Michal Malý" <madcatxster@devoid-pointer.net>,
	"Bjørn Mork" <bjorn@mork.no>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	dmitry.torokhov@gmail.com, jikos@kernel.org, elias.vds@gmail.com,
	edwin@velds.nl, simon@mungewell.org
Subject: Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices
Date: Sun, 24 Jan 2016 14:48:15 -0800	[thread overview]
Message-ID: <20160124224815.GA8819@kroah.com> (raw)
In-Reply-To: <1453673105.12171.4.camel@suse.com>

On Sun, Jan 24, 2016 at 11:05:05PM +0100, Oliver Neukum wrote:
> On Sat, 2016-01-23 at 08:39 -0800, Greg KH wrote:
> > Have your program install a udev rule to make it run automatically
> > when
> > the device is plugged in, and then just file a bug with the different
> > distros to have them pick up your program and add it to their
> > releases.
> > With free services like Github to host the code, and OBS to build
> > packages for every different distro out there, there has never been an
> > easier time to get programs to distros.
> > 
> > So please just do this in userspace, we don't like to take kernel
> > drivers for functions that can be done in userspace.
> 
> That raises a point. If we wish to do port power switching
> as a form of runtime PM, we will need to do mode switching
> in kernel space. The notion that this can be done in user space
> is likely to become wrong as things develop.

Maybe, if a device doesn't remember it's "mode" after sleeping, then it
might get messy, it will be interesting to see how that works out over
time...

  reply	other threads:[~2016-01-24 22:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-23 10:35 Michal Malý
2016-01-23 10:35 ` [PATCH 1/2] Add usb_skelswitch skeleton module to do basic initialization of devices that at first appear as a generic USB device Michal Malý
2016-01-23 10:35 ` [PATCH 2/2] Use usb_skelswitch module to switch Logitech G920 Racing Wheel to HID mode Michal Malý
2016-01-23 12:46 ` [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices Bjørn Mork
2016-01-23 15:56   ` Michal Malý
2016-01-23 16:39     ` Greg KH
2016-01-24 22:05       ` Oliver Neukum
2016-01-24 22:48         ` Greg KH [this message]
2016-01-25 11:27           ` Oliver Neukum
2016-01-25 14:17     ` Jiri Kosina
2016-01-25 21:02       ` Michal Malý

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=20160124224815.GA8819@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=bjorn@mork.no \
    --cc=dmitry.torokhov@gmail.com \
    --cc=edwin@velds.nl \
    --cc=elias.vds@gmail.com \
    --cc=jikos@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=madcatxster@devoid-pointer.net \
    --cc=oneukum@suse.com \
    --cc=simon@mungewell.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

Powered by JetHome