Received: by 10.213.65.68 with SMTP id h4csp402295imn; Tue, 27 Mar 2018 01:09:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELtH7RGOByiz37MYc+Tjt5ymSBmILOlTHi6JD5761DML/t4ENxHmAybvpY8w6Vp1c/xa9UL+ X-Received: by 10.99.113.83 with SMTP id b19mr30777958pgn.167.1522138161853; Tue, 27 Mar 2018 01:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522138161; cv=none; d=google.com; s=arc-20160816; b=kCWp+NQxt/OPcvqURaISx6s+m4u6HwIwGfsvXrY35mPyYE2hx9t7n4VnfNF3wXMHgJ x3ACh0AXAD7z6nd2bB/2Eysw4usJTFNQOyJBiV3lhIpHNH09c4Vhskl+uAVsC+u/mal2 nFi2LPAnP3inmdF393Yay/rIU16kjAEg8o/JpyBJsaxOUG0l57ED5camjJj3+STcKv2H Q3rOQDv92WPx2C2sqBaYUcW7Miyj+mlqljyeyPrUXsL5C92E8bQbC8ckT36Z4QNEd0f4 G5ieNgmCxwRvJtTKcej9bEeKy4+KtF5vxOdnKuISOW/XNsqlQLBzHWzRxUNz3GO8u28l Ygtg== 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=qFaVWPe1+tbmkzmsCdV/C+aXE6GtDuL5LEaK+UDPn2U=; b=bD1Evv1MKLH3vBWjWpywWq0sZxIP74ToFZHQaziowEpSTv9GHnZ+574I8b3C3zrWXF 7JaYXcFCFcjh9QQLw4lqbRxe8Do1a+SvUEp4sCF9L75llcrmHZD8N5GdSWQ+Ugu5ErFh Jg45fSRImclmD/UyU2f1DbbHwxLlxYSNJMDbgInXzoaKb4BIpEP74SAOGGQbdOiFAOgr Vs96cjhWh10ZyPD6IgGVNAGVDB5B+iulnuNrGRWXwEsuFB596Ts1P/l82RDF7oum16Rv B5BKPKtpntf3m8e2lmXaMJqIp/JtagyGQtxtDYrCMDmtBMtkf/sr/q0sRbJXqTcXmqL5 I08w== 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 r59-v6si753681plb.69.2018.03.27.01.09.07; Tue, 27 Mar 2018 01:09:21 -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 S1752384AbeC0IHV (ORCPT + 99 others); Tue, 27 Mar 2018 04:07:21 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:35143 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752192AbeC0IF5 (ORCPT ); Tue, 27 Mar 2018 04:05:57 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 Mar 2018 10:06:46 +0200 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 w2R85mx4029508; Tue, 27 Mar 2018 11:05:53 +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 v1 4/7] platform: mellanox: add new ODM system types to mlx-platform Date: Tue, 27 Mar 2018 10:02:04 +0000 Message-Id: <1522144927-56512-5-git-send-email-vadimp@mellanox.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1522144927-56512-1-git-send-email-vadimp@mellanox.com> References: <1522144927-56512-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 Patch adds new ODM systems, matched according to DMI_BOARD_NAME. The supported ODM Ids are: VMOD0001, VMOD0002, VMOD0003, VMOD0004, VMOD0005. It doesn't 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 --- 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