Re: [PATCH v3] usb: xhci-pci: Add Power handling for Card readers on Apple systems

From: Atharva Tiwari

Date: Mon Nov 23 2026 - 00:47:49 EST


> That feels very wrong for all non-x86 systems to be forced to include.

I understand that it may feels wrong, but the file checks for CONFIG_X86 and if it is not true, then it sets
x86_apple_machine to false automatically

#ifndef PLATFORM_DATA_X86_APPLE_H
#define PLATFORM_DATA_X86_APPLE_H

#ifdef CONFIG_X86
/**
* x86_apple_machine - whether the machine is an x86 Apple Macintosh
*/
extern bool x86_apple_machine;
#else
#define x86_apple_machine false
#endif

#endif

^ complete file

> and this still feels very platform specific, why must it be in generic
> xhci code?

Apple macs use the generic driver, and i figured it would be best to do this as a quirk in xhci-pci.c
If you have any other ideas, please provide them.

Thanks,

Atharva.