Skip to content

Commit

Permalink
[platform/questone2bd] Fix DPS1100 crash after sonic kernel patched VID
Browse files Browse the repository at this point in the history
 Note: This commit applicable to sonic-linux-kernel@32963dab or newer.
 Ref: sonic-net/sonic-linux-kernel@32963da

 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 32963da 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.
  • Loading branch information
pphuchar committed May 20, 2020
1 parent e966628 commit 453db19
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 453db19

Please sign in to comment.