All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: huangjia2hi@163.com
Cc: Vaibhav Agarwal <vaibhav.sr@gmail.com>,
	Mark Greer <mgreer@animalcreek.com>,
	Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
	greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: greybus: audio: use dynamic vendor and product IDs
Date: Tue, 25 Aug 2026 17:36:29 +0200	[thread overview]
Message-ID: <2026082557-certainly-secluded-b3bd@gregkh> (raw)
In-Reply-To: <20260818061520.67387-1-huangjia2hi@163.com>

On Tue, Aug 18, 2026 at 02:15:20PM +0800, huangjia2hi@163.com wrote:
> From: Jiazhi Huang <huangjia2hi@163.com>
> 
> Replace hardcoded magic numbers for Vendor ID (vid) and Product ID (pid)
> in gb_audio_mgmt_node_desc with dynamic values obtained from the
> greybus interface.
> 
> This resolves the associated TODO comments by using the actual vendor and
> product IDs provided by the interface structure.
> 
> Signed-off-by: Jiazhi Huang <huangjia2hi@163.com>
> ---
>  drivers/staging/greybus/audio_module.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c
> index 4cd1f42c11f0..9eed3ac0c49d 100644
> --- a/drivers/staging/greybus/audio_module.c
> +++ b/drivers/staging/greybus/audio_module.c
> @@ -358,8 +358,8 @@ static int gb_audio_probe(struct gb_bundle *bundle,
>  	dev_dbg(dev, "Inform set_event:%d to above layer\n", 1);
>  	/* prepare for the audio manager */
>  	strscpy(desc.name, gbmodule->name, sizeof(desc.name));
> -	desc.vid = 2; /* todo */
> -	desc.pid = 3; /* todo */
> +	desc.vid = bundle->intf->vendor_id;
> +	desc.pid = bundle->intf->product_id;

Are you sure this is right?  How was this tested?

A blind TODO change isn't usually a good idea.  If it was this simple, I
am pretty sure we would have done this a long time ago :)

thanks,

greg k-h

      reply	other threads:[~2026-08-25 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18  6:15 [PATCH] staging: greybus: audio: use dynamic vendor and product IDs huangjia2hi
2026-08-25 15:36 ` Greg Kroah-Hartman [this message]

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=2026082557-certainly-secluded-b3bd@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=elder@kernel.org \
    --cc=greybus-dev@lists.linaro.org \
    --cc=huangjia2hi@163.com \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mgreer@animalcreek.com \
    --cc=vaibhav.sr@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.