From 453db1918ccba64befb136afabd9232e3bfe791f Mon Sep 17 00:00:00 2001 From: Pradchaya Phucharoen Date: Wed, 20 May 2020 17:12:20 +0700 Subject: [PATCH] [platform/questone2bd] Fix DPS1100 crash after sonic kernel patched VID Note: This commit applicable to sonic-linux-kernel@32963dab or newer. Ref: https://github.com/Azure/sonic-linux-kernel/commit/32963dab6b6ea9f9fbda9b2b49a77574453fb8ef Because DPS1100 is out of three driver module and depends on pmbus_core. To do so, we borrow pmbus.h from the kernel source three. When the pmbus.h was patched by the 32963dab in sonic-linux-kernel, this copy of header in our platform must be update to make the *pmbus_driver_info* struct in DPS1100 aligned with pmbus_core. --- .../sonic-platform-modules-cel/questone2bd/modules/pmbus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/broadcom/sonic-platform-modules-cel/questone2bd/modules/pmbus.h b/platform/broadcom/sonic-platform-modules-cel/questone2bd/modules/pmbus.h index c0df0d7daa1e..16d8f9b61222 100644 --- a/platform/broadcom/sonic-platform-modules-cel/questone2bd/modules/pmbus.h +++ b/platform/broadcom/sonic-platform-modules-cel/questone2bd/modules/pmbus.h @@ -341,12 +341,12 @@ enum pmbus_sensor_classes { #define PMBUS_HAVE_STATUS_VMON BIT(19) enum pmbus_data_format { linear = 0, direct, vid }; -enum vrm_version { vr11 = 0, vr12 }; +enum vrm_version { vr11 = 0, vr12, vr13, imvp9, amd625mv }; struct pmbus_driver_info { int pages; /* Total number of pages */ enum pmbus_data_format format[PSC_NUM_CLASSES]; - enum vrm_version vrm_version; + enum vrm_version vrm_version[PMBUS_PAGES]; /* vrm version per page */ /* * Support one set of coefficients for each sensor type * Used for chips providing data in direct mode.