Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: x86: utils: Remove Lenovo Yoga Tablet 2's MAGN0001

The LSM303D on the Lenovo Yoga Tablet 2 series is present
as both ACCL0001 and MAGN0001. As we can only ever register an
i2c client for one of them, ignore MAGN0001.

Currently this errors:
i2c i2c-4: Failed to register i2c client MAGN0001:00 at 0x1d (-16)

Tested on a Lenovo Yoga Tablet 2 1051-F.

Signed-off-by: Marius Hoch <mail@mariushoch.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Marius Hoch and committed by
Rafael J. Wysocki
61711941 793582ff

+10
+10
drivers/acpi/x86/utils.c
··· 143 143 DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"), 144 144 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"), 145 145 }), 146 + 147 + /* 148 + * The LSM303D on the Lenovo Yoga Tablet 2 series is present 149 + * as both ACCL0001 and MAGN0001. As we can only ever register an 150 + * i2c client for one of them, ignore MAGN0001. 151 + */ 152 + NOT_PRESENT_ENTRY_HID("MAGN0001", "1", ATOM_SILVERMONT, { 153 + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), 154 + DMI_MATCH(DMI_PRODUCT_FAMILY, "YOGATablet2"), 155 + }), 146 156 }; 147 157 148 158 bool acpi_device_override_status(struct acpi_device *adev, unsigned long long *status)