Linux on Apple ARM platform development
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Janne Grunau <j@jannau.net>
Cc: Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>,
	Simon Glass <sjg@chromium.org>,
	Joe Hershberger <joe.hershberger@ni.com>,
	u-boot@lists.denx.de, asahi@lists.linux.dev,
	Neal Gompa <neal@gompa.dev>
Subject: Re: [PATCH v3 4/6] usb: Add environment based device ignorelist
Date: Tue, 26 Mar 2024 12:29:34 +0100	[thread overview]
Message-ID: <87b40ef9-c8fc-473a-bda7-13ccdf5275a1@denx.de> (raw)
In-Reply-To: <ZgKKB_j02eAVltTs@robin>

On 3/26/24 9:40 AM, Janne Grunau wrote:
> On Fri, Mar 22, 2024 at 12:56:37PM +0100, Marek Vasut wrote:
>> On 3/22/24 8:47 AM, Janne Grunau via B4 Relay wrote:
>>
>> [...]
>>
>>> @@ -1099,6 +1142,20 @@ int usb_select_config(struct usb_device *dev)
>>>    	le16_to_cpus(&dev->descriptor.idProduct);
>>>    	le16_to_cpus(&dev->descriptor.bcdDevice);
>>>    
>>> +	/* ignore devices from usb_ignorelist */
>>> +	err = usb_device_is_ignored(dev->descriptor.idVendor,
>>> +				    dev->descriptor.idProduct);
>>> +	if (err == -ENODEV) {
>>> +		dev_dbg(dev->dev, "Ignoring USB device 0x%x:0x%x\n",
>>> +			dev->descriptor.idVendor, dev->descriptor.idProduct);
>>> +		return err;
>>> +	} else if (err == -EINVAL) {
>>> +		printf("usb_ignorelist parse error in \"%s\"\n",
>>> +		       env_get("usb_ignorelist"));
>>
>> Please use dev_err() here consistently with dev_dbg() above.
> 
> I didn't use dev_err() since the parsing error is not specific to the
> device. It doesn't matter much. I'll change it and resend after we've
> settled the new discussion about the interface limit.

Then please just clarify this in the commit message, that's fine.

Thanks !

  reply	other threads:[~2024-03-26 12:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-22  7:47 [PATCH v3 0/6] USB keyboard improvements for asahi / desktop systems Janne Grunau via B4 Relay
2024-03-22  7:47 ` [PATCH v3 1/6] usb: xhci: refactor xhci_set_configuration Janne Grunau via B4 Relay
2024-03-22  7:47 ` [PATCH v3 2/6] usb: xhci: Set up endpoints for the first 2 interfaces Janne Grunau via B4 Relay
2024-03-22  8:17   ` Heinrich Schuchardt
2024-03-26  8:36     ` Janne Grunau
2024-03-22  7:47 ` [PATCH v3 3/6] usb: xhci: Abort transfers with unallocated rings Janne Grunau via B4 Relay
2024-03-22  7:47 ` [PATCH v3 4/6] usb: Add environment based device ignorelist Janne Grunau via B4 Relay
2024-03-22 11:56   ` Marek Vasut
2024-03-26  8:40     ` Janne Grunau
2024-03-26 11:29       ` Marek Vasut [this message]
2024-03-22  7:47 ` [PATCH v3 5/6] usb: kbd: support Apple Magic Keyboards (2021) Janne Grunau via B4 Relay
2024-03-22  7:47 ` [PATCH v3 6/6] usb: kbd: Add probe quirk for Apple and Keychron keyboards Janne Grunau via B4 Relay

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=87b40ef9-c8fc-473a-bda7-13ccdf5275a1@denx.de \
    --to=marex@denx.de \
    --cc=asahi@lists.linux.dev \
    --cc=bmeng.cn@gmail.com \
    --cc=j@jannau.net \
    --cc=joe.hershberger@ni.com \
    --cc=neal@gompa.dev \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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