DKMS module for MacBook8,1 (12", Early 2015) keyboard/trackpad support. The Wildcat Point GSPI controller (PCI 8086:9ce6) on this hardware has a broken DMA handshake that causes all SPI transfers to time out. This patched version of spi-pxa2xx-pci forces PIO mode (enable_dma=0) for this PCI ID only, leaving DMA enabled for all other LPSS SPI devices. Requires irqpoll on the kernel command line for the SPI IRQ handler to be serviced (since IO-APIC doesn't deliver IRQ 21 from this hardware). Also includes a modprobe blacklist to prevent the in-tree spi_pxa2xx_pci from claiming the device before our patched version. Conflicts with macbook12-spi-driver-dkms (mutually exclusive; this machine uses the in-tree applespi driver instead of the macbook12 out-of-tree one). Closes basecamp/omarchy#1954
5 lines
226 B
Plaintext
5 lines
226 B
Plaintext
# MacBook8,1 SPI keyboard/trackpad fix:
|
|
# Blacklist the in-tree spi_pxa2xx_pci so our PIO-mode version
|
|
# (spi_pxa2xx_pci_nodma) binds to the Wildcat Point GSPI instead.
|
|
blacklist spi_pxa2xx_pci
|
|
install spi_pxa2xx_pci /bin/true |