lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2025071642-saline-concave-4ec0@gregkh>
Date: Wed, 16 Jul 2025 15:19:47 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Damien Riégel <damien.riegel@...abs.com>
Cc: greybus-dev@...ts.linaro.org, linux-kernel@...r.kernel.org,
	linux-devel@...abs.com, Alex Elder <elder@...nel.org>,
	Johan Hovold <johan@...nel.org>
Subject: Re: [RFC 5/6] greybus: match device with bundle ID

On Fri, Jul 04, 2025 at 08:40:35PM -0400, Damien Riégel wrote:
> When matching a device, only the vendor ID and product ID are used.

It shouldn't be that way.  That was not the intention.

> As
> all bundles in an interface share the same VID and PID, there is no way
> to differentiate between two bundles, and they are forced to use the
> same driver.
> 
> To allow using several vendor bundles in the same device, include the
> bundle ID when matching. The assumption here is that bundle IDs are
> stable across the lifespan of a product and never change.
> 
> The goal of this change is to open the discussion. Greybus standardizes
> a bunch of protocols like GPIO, SPI, etc. but also has provisioning for
> vendor bundle and protocol. There is only one ID reserved for vendor,
> 0xFF, so the question is did Greybus ever envision supporting several
> vendor bundles, or one vendor bundle with several vendor cports in it?
> Or the assumption always was that there could be at most only vendor
> cport?

The goal was to emulate what USB does here.  If you have a
vendor-specific protocol, then set the vendor protocol id (0xff) and
then trigger off of the VID and PID.  Then you can do whatever you want
here in your driver as it's a vendor-specific one.

So you are wanting multiple devices with the same vid/pid yet do
different things?  Why not just change the PID?

Like with USB, a bundle id is not guaranteed to be "static", BUT if you
want to make that distinction in your driver that is a vendor-specific
one, go ahead.  Again, that should be like USB interface numbers, right?

thanks,

greg k-h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ