linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Niklas Neronin <niklas.neronin@linux.intel.com>,
	linux-usb@vger.kernel.org, mathias.nyman@linux.intel.com
Subject: Re: [PATCH] usb: common: add driver for USB Billboard devices
Date: Wed, 7 Feb 2024 09:46:40 +0000	[thread overview]
Message-ID: <2024020712-trimming-moonlit-8ca1@gregkh> (raw)
In-Reply-To: <ZcJQuwfXctmzZ+HX@kuha.fi.intel.com>

On Tue, Feb 06, 2024 at 05:31:07PM +0200, Heikki Krogerus wrote:
> On Tue, Feb 06, 2024 at 02:47:04PM +0000, Greg KH wrote:
> > On Tue, Feb 06, 2024 at 02:56:23PM +0200, Niklas Neronin wrote:
> > > This patch introduces the USB Billboard Driver. Its purpose is to display,
> > > via debugfs, basic information about connected Billboard devices.
> > 
> > Very cool, I was wondering if/when someone was going to write a kernel
> > driver for this type of hardware.
> > 
> > But why debugfs?  Normally that is locked down for root-access-only by
> > the system (rightfully so), why is this information restricted?
> > 
> > And why is this a kernel driver at all?  Why can't you just do this in
> > userspace and add support to 'lsusb' for it?
> 
> I'm to blame for that. I wanted a way to see the billboard information
> when something goes wrong with the alt mode entry in an environment
> where I don't necessarily have tools like lsusb - I think I need to
> include usbtools package to my Buildroot to get that app. I also
> proposed debugfs, because for me this would be purely for debugging
> purposes.

But you are also going to want this info in lsusb for all of the
non-root users, so why not just do it in one place?

> Later I was hoping to use this information in the Type-C drivers to
> help in situations where the alt mode entry fails and UCSI does not
> give any information about the partner (which unfortunately is the
> reality on several platforms).

Sure, but this is just debugfs, no interaction with any other kernel
code at the moment, so we have no hint anyone else might want it :(

> This is really just a proposal - perhaps we should have started with
> RFC first. But I think Niklas has done a great job in any case.

RFC might have been nice :)

Anyway, patches for lsusb are gladly accepted, let's keep this out of
debugfs for now as again, almost no one has access to it.  But if you do
want it in debugfs, please fix up the code and resubmit it with some
more justification.

thanks,

greg k-h

  reply	other threads:[~2024-02-07  9:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06 12:56 [PATCH] usb: common: add driver for USB Billboard devices Niklas Neronin
2024-02-06 14:47 ` Greg KH
2024-02-06 15:31   ` Heikki Krogerus
2024-02-07  9:46     ` Greg KH [this message]
2024-02-07  7:48   ` Mathias Nyman
2024-02-07 10:51   ` Neronin, Niklas
2024-02-12 14:16 ` Oliver Neukum
2024-02-13  8:06   ` Neronin, Niklas

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=2024020712-trimming-moonlit-8ca1@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.intel.com \
    --cc=niklas.neronin@linux.intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).