Re: [PATCH] usb: acpi: Get correct location data for Apple macs

From: Atharva Tiwari

Date: Mon Nov 23 2026 - 00:58:07 EST


> 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.

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

Thanks,

Atharva.