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

From: Greg Kroah-Hartman

Date: Sun Nov 22 2026 - 23:57:48 EST


On Sun, Nov 22, 2026 at 11:44:09PM -0500, Atharva Tiwari wrote:
> Add Power handling for Card readers on Apple systems using SPWR
> ACPI method, SPWR(1) turns on the card reader, SPWR(0) turns off
> the card reader, on newer systems SPWR just writes a variable in EC.
> On previous systems it writes to GPIO pins.
>
> Its also used by the macOS driver with the function
> AppleUSB30XHCICardReaderPort::setDevicePower in AppleUSBXHCIPCI.kext.
>
> (This should fix https://bugzilla.kernel.org/show_bug.cgi?id=111201
> But thats not confirmed)
>
> (Tested on iMac20,1)
>
> Changes in v2:
> - Fixed grammatical errors.
> - Added CONFIG_ACPI check
> - Checked for xhci_suspend success before turning off power

changes go below the --- line.

thanks,

greg k-h