Dash:
[t2.git] / package / base / linux / amd-i2c-smb.patch
blob86a0ba6fb7a5aecfd7f8df03278e50a0188e648b
2 The Aura Sync controller for the motherboard resides on an auxiliary SMBus.
3 For AMD systems, this SMBus is not initialised with the stock Linux kernel;
4 to get it to work, you will need to patch your kernel. The patch follows for
5 Linux kernel 4.20 (derived from
6 https://gitlab.com/CalcProgrammer1/KeyboardVisualizer/issues/85#note_121577579):
8 --- a/drivers/i2c/busses/i2c-piix4.c 2019-01-09 01:23:06.197945763 +1100
9 +++ b/drivers/i2c/busses/i2c-piix4.c 2019-01-09 01:24:58.007942622 +1100
10 @@ -964,6 +964,11 @@
11 retval = piix4_setup_sb800(dev, id, 1);
14 + if (dev->vendor == PCI_VENDOR_ID_AMD &&
15 + dev->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS) {
16 + retval = piix4_setup_sb800(dev, id, 1);
17 + }
19 if (retval > 0) {
20 /* Try to add the aux adapter if it exists,
21 * piix4_add_adapter will clean up if this fails */