Home Home > GIT Browse > SLE15-SP1-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-19 18:03:06 +0200
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-19 18:03:12 +0200
commit4ab71633de0ce1c577916e29152c836861ad48ff (patch)
tree75ada1541c06af42e0c0a1f9d5a883ce26f2c8d7
parent286abc36c3bb948d1dbb4d57d1221de236ef00f6 (diff)
platform/mellanox: Add new ODM system types to mlx-platform
(bsc#1112374).
-rw-r--r--patches.drivers/platform-mellanox-Add-new-ODM-system-types-to-mlx-pl.patch59
-rw-r--r--series.conf1
2 files changed, 60 insertions, 0 deletions
diff --git a/patches.drivers/platform-mellanox-Add-new-ODM-system-types-to-mlx-pl.patch b/patches.drivers/platform-mellanox-Add-new-ODM-system-types-to-mlx-pl.patch
new file mode 100644
index 0000000000..9ab2d9bb2d
--- /dev/null
+++ b/patches.drivers/platform-mellanox-Add-new-ODM-system-types-to-mlx-pl.patch
@@ -0,0 +1,59 @@
+From: Vadim Pasternak <vadimp@mellanox.com>
+Date: Mon, 7 May 2018 06:48:52 +0000
+Subject: platform/mellanox: Add new ODM system types to mlx-platform
+Patch-mainline: v4.18-rc1
+Git-commit: cbf7ff8cdb03a81ae81680ac133c7b1bf5194001
+References: bsc#1112374
+
+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 <vadimp@mellanox.com>
+Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
+Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
+---
+ drivers/platform/x86/mlx-platform.c | 30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
+
+--- a/drivers/platform/x86/mlx-platform.c
++++ b/drivers/platform/x86/mlx-platform.c
+@@ -844,6 +844,36 @@ static struct dmi_system_id mlxplat_dmi_
+ 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"),
++ },
++ },
+ { }
+ };
+
diff --git a/series.conf b/series.conf
index fc3637b630..c5984fb41a 100644
--- a/series.conf
+++ b/series.conf
@@ -34124,6 +34124,7 @@
patches.drivers/platform-x86-dell-wmi-Set-correct-keycode-for-Fn-lef.patch
patches.drivers/platform-x86-asus-wireless-Fix-format-specifier.patch
patches.drivers/platform-mellanox-mlxreg-hotplug-add-extra-cycle-for.patch
+ patches.drivers/platform-mellanox-Add-new-ODM-system-types-to-mlx-pl.patch
patches.drivers/platform-x86-dell-wmi-Ignore-new-rfkill-and-fn-lock-.patch
patches.drivers/platform-x86-dell-laptop-Fix-keyboard-backlight-time.patch
patches.drivers/scsi-aacraid-remove-bogus-GFP_DMA32-specifies.patch