Skip to content

Commit 6171194

Browse files
mariushochrafaeljw
authored andcommitted
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>
1 parent 793582f commit 6171194

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

drivers/acpi/x86/utils.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@ static const struct override_status_id override_status_ids[] = {
143143
DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"),
144144
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
145145
}),
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+
}),
146156
};
147157

148158
bool acpi_device_override_status(struct acpi_device *adev, unsigned long long *status)

0 commit comments

Comments
 (0)