The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Atharva Tiwari <atharvatiwarilinuxdev@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb: acpi: Get correct location data for Apple macs
Date: Mon, 23 Nov 2026 07:01:51 +0100	[thread overview]
Message-ID: <2026112349-gala-unrobed-637d@gregkh> (raw)
In-Reply-To: <20261123055757.11283-1-atharvatiwarilinuxdev@gmail.com>

On Mon, Nov 23, 2026 at 12:57:57AM -0500, Atharva Tiwari wrote:
> > Local static variables are usually not a good idea.  Why is this needed
> > as it's only referenced once?
> 
> is_apple_location signifies that SSD methods are available in the ACPI bus,
> if we dont check this there might be a situation like:
> 
> Is internal USB Controller = true
> x86_apple_machine = true
> is_apple_machine (Are there any SSD methods in the hub) = false
> 
> So all USB2.0 ports will get a error, and all USB3.0 ports will succeed and
> provide wrong info.

Sure, but again, you only check it once, why not just do the logic there
then and not have any local variables?

> And btw the SSD methods are only used in new intel macs (2016+), so this becomes necessary.

So how have these old systems been working so far with Linux?

greg k-h

  reply	other threads:[~2026-11-23  6:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  5:39 [PATCH] usb: acpi: Get correct location data for Apple macs Atharva Tiwari
2026-11-23  5:44 ` Greg Kroah-Hartman
2026-11-23  5:57   ` Atharva Tiwari
2026-11-23  6:01     ` Greg KH [this message]
2026-11-23  6:23       ` Atharva Tiwari

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=2026112349-gala-unrobed-637d@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=atharvatiwarilinuxdev@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.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