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

serial: 8250_exar: Adjust IOT2000 matching

Since there are more IOT2040 variants with identical hardware but
different asset tags, the asset tag matching should be adjusted to
support them.

As only the IOT2040 variants have the Exar chip on board, matching on
their board name is enough. In the future there will be no other devices
with the "SIMATIC IOT2000" DMI board name but different hardware.

Signed-off-by: Su Bao Cheng <baocheng.su@siemens.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Su Bao Cheng and committed by
Greg Kroah-Hartman
3e51ceea 4cdd17ba

+5 -2
+5 -2
drivers/tty/serial/8250/8250_exar.c
··· 361 361 .register_gpio = iot2040_register_gpio, 362 362 }; 363 363 364 + /* 365 + * For SIMATIC IOT2000, only IOT2040 and its variants have the Exar device, 366 + * IOT2020 doesn't have. Therefore it is sufficient to match on the common 367 + * board name after the device was found. 368 + */ 364 369 static const struct dmi_system_id exar_platforms[] = { 365 370 { 366 371 .matches = { 367 372 DMI_EXACT_MATCH(DMI_BOARD_NAME, "SIMATIC IOT2000"), 368 - DMI_EXACT_MATCH(DMI_BOARD_ASSET_TAG, 369 - "6ES7647-0AA00-1YA2"), 370 373 }, 371 374 .driver_data = (void *)&iot2040_platform, 372 375 },