Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp349386yba; Thu, 18 Apr 2019 02:16:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIVMHJvuBPp/TmooedBLuydHYQW+e06/Pv1ZEa4XTJou34R71xMOkDY2zj8nKf5DgueUWG X-Received: by 2002:a63:5b4b:: with SMTP id l11mr57295534pgm.95.1555579015268; Thu, 18 Apr 2019 02:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555579015; cv=none; d=google.com; s=arc-20160816; b=K+v5V2q9C2nYEZ9xYOBF1lxjutZHuG5hIRP2PZfNOQuT0emI5hJeUnYwYtsxgyjgs6 qSHdgZdCTIdRvr/xu4IJ6RtnT6rvCeUajXI2riUD70ygRbysfDm0C7CFnBMqp6QMOvFh uxmo27Aqdx4dJmvNbFLT0VBj4fal65p//KXFfFlsWiJpRW463ddWkUW8KgW41x/+SPeo b+IW/Jd7Dsg+mzsUn4eoIYh0IwyFkFDvcgmbVoCNAO2CQtGFj72HPQjhHH+iNcdEMVEz fWxJ9cEJ8Ydx7oC9de4Au+KsjcyKUjzWQY9ncLJ4Z1KbWiMLGjTwXbKFmP6HqddZG5H5 kWXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to; bh=6skBEIFuAvZV51JKuL7j/bPydrSZZG8NJhSlAaDkrR8=; b=MBIMc0kK+WHeahW/pi10ChIbkHmw6m2rVy7SDivIyqcIYVYP6Q5vTxVNHs+Jh5v5n1 O9VXPKvMmjQd6dvFJ49LEKL4VQ68oDrD7FTctLk/e9hEpqs73JoOjUTFdSEzImIQrHA0 f7Zqm+lBpotJATXWKa8EYt62bCSM9qQqd5DaRY3u5ytdOM297z/W1nt6jBT9FUIuyDu2 m+PQ96nC3+ET859LAHB92qtjD8jBKRDlqkbvsyCyD7rwbHm2d+dB8h4JjvqkadYyIeuI jGlCr8v0W1yNZ4kzWO12qm5l1baYfnxwUAbXklFChUTEkLEGINFxk4XwhQ+E2CTnwR2o 9cPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a67si1413453pgc.80.2019.04.18.02.16.40; Thu, 18 Apr 2019 02:16:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388426AbfDRJPR (ORCPT + 99 others); Thu, 18 Apr 2019 05:15:17 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:41633 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfDRJPQ (ORCPT ); Thu, 18 Apr 2019 05:15:16 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x3I9F53j004674 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Apr 2019 11:15:05 +0200 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x3I9F5qm010308; Thu, 18 Apr 2019 11:15:05 +0200 To: Greg Kroah-Hartman Cc: Linux Kernel Mailing List , linux-serial@vger.kernel.org, Sudip Mukherjee , Andy Shevchenko , Su Bao Cheng From: Jan Kiszka Subject: [PATCH] serial: 8250_exar: Adjust IOT2000 matching Message-ID: Date: Thu, 18 Apr 2019 11:15:04 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Su Bao Cheng 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 Reviewed-by: Jan Kiszka --- drivers/tty/serial/8250/8250_exar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250/8250_exar.c index 0089aa305ef9..edd6dfe055bf 100644 --- a/drivers/tty/serial/8250/8250_exar.c +++ b/drivers/tty/serial/8250/8250_exar.c @@ -361,12 +361,15 @@ static const struct exar8250_platform iot2040_platform = { .register_gpio = iot2040_register_gpio, }; +/* + * For SIMATIC IOT2000, only IOT2040 and its variants have the Exar device, + * IOT2020 doesn't have. Therefore it is sufficient to match on the common + * board name after the device was found. + */ static const struct dmi_system_id exar_platforms[] = { { .matches = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "SIMATIC IOT2000"), - DMI_EXACT_MATCH(DMI_BOARD_ASSET_TAG, - "6ES7647-0AA00-1YA2"), }, .driver_data = (void *)&iot2040_platform, }, -- 2.16.4