Received: by 10.192.165.148 with SMTP id m20csp2671151imm; Sun, 6 May 2018 21:54:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrktl/GVJyeTtj1FsRmDLclNhekjG7DkesGtTXQG0NqJ3H8UdXXtLimf59YdteXgfUXzFoI X-Received: by 2002:a63:8049:: with SMTP id j70-v6mr29676696pgd.12.1525668874103; Sun, 06 May 2018 21:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525668874; cv=none; d=google.com; s=arc-20160816; b=q0SkQtS+x8HZ5eQRDjKZdCrMkA+9vFSO9ZK6Fgdrt+wvRIY5aEKmiRFzqLnMkgpcO/ ZobE1AvHq8dZq07+O6sxGoxmhr/xpkU9uoKPoCcUzXY990uklzU/ZGDdYiJINznS3vyp IZYY26wgu0K0AkzhD3ygeiK2DCOLXZI8cXQ6HxYs6Xlwb3B9Drh5g9+JKUqcyr4zjJ0v YjslYSLDy/H8RNnSlGJpmKn+Quy/UHT1DkFVqr1z5jfptsWyH9hEoNKMH3/pA8VlS2f1 26x21jboXlfk67CxXmyX2Li4d2coRvbtb/8h299bCL0P0sNgFH/NHe1hRLrmzNVlEMmU 8GTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=FV5T0gn8Q18nfQz+oY5/07aRwLQzjefGdcy2MRhjQbk=; b=QDFCKhHRE+3kMD4cbsYHP8jIpUcjfFDxDzn7kcy34xOHe6/MElFnwTfXNsbjnRS6j0 eneBmDNT5yg5KKaq75ry6WTY6Xry7VwP/Id1iiqJkXkLazyGUALtzv2hbvz4q/7HwHoj fWsFOOG+HmOUGrWzY9qX9sA0P1V2h+sSsF1LHOSN3WLpJcvZOeCkfxPATevrd+V0P6+G Oj9+dtkxfDKLdnfQ5a9/ujoeLcAZ/G1FnMusIqYj+meXqT1LZMZRC3j2H1mkDUyWrb2C vjcDskYQ3CjjjySLiam0X15s8LLv76D/x9HI6VHzSKPJvv5ddtACOFJ5Zt26GDXqE6ec rPgQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v184-v6si17657656pgd.82.2018.05.06.21.54.19; Sun, 06 May 2018 21:54:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751950AbeEGExW (ORCPT + 99 others); Mon, 7 May 2018 00:53:22 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:60848 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751379AbeEGExJ (ORCPT ); Mon, 7 May 2018 00:53:09 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 7 May 2018 07:54:43 +0300 Received: from r-mgtswh-226.mtr.labs.mlnx. (r-mgtswh-226.mtr.labs.mlnx [10.209.1.51]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w474r2p5013164; Mon, 7 May 2018 07:53:03 +0300 From: Vadim Pasternak To: dvhart@infradead.org, andy.shevchenko@gmail.com, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, jiri@resnulli.us, michaelsh@mellanox.com, ivecera@redhat.com, Vadim Pasternak Subject: [PATCH v2 4/7] platform: mellanox: add new ODM system types to mlx-platform Date: Mon, 7 May 2018 06:48:52 +0000 Message-Id: <1525675735-125547-2-git-send-email-vadimp@mellanox.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1525675735-125547-1-git-send-email-vadimp@mellanox.com> References: <1525675735-125547-1-git-send-email-vadimp@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new ODM system types, matched according to DMI_BOARD_NAME. The supported ODM Ids are: VMOD0001, VMOD0002, VMOD0003, VMOD0004, VMOD0005. Patch does not introduce new systems, but allows to ODM companies to set DMI_BOARD_VENDOR and DMI_PRODUCT_NAME on their own. It assumes that ODM company can't change DMI_BOARD_NAME. Signed-off-by: Vadim Pasternak --- v1->v2: Comments pointed out by Darren: - Modify commit message; --- drivers/platform/x86/mlx-platform.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index 7a0bd24..912f844 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -844,6 +844,36 @@ static const struct dmi_system_id mlxplat_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "SN34"), }, }, + { + .callback = mlxplat_dmi_default_matched, + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "VMOD0001"), + }, + }, + { + .callback = mlxplat_dmi_msn21xx_matched, + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "VMOD0002"), + }, + }, + { + .callback = mlxplat_dmi_msn274x_matched, + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "VMOD0003"), + }, + }, + { + .callback = mlxplat_dmi_msn201x_matched, + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "VMOD0004"), + }, + }, + { + .callback = mlxplat_dmi_qmb7xx_matched, + .matches = { + DMI_MATCH(DMI_BOARD_NAME, "VMOD0005"), + }, + }, { } }; -- 2.1.4