Skip to content

Commit be99f0f

Browse files
authored
Merge pull request #23 from ec-michael-shih/07_20231221_202211_0_fixed_common_ym2651y_pmbus_driver
[Edge-core][common driver][pmbus][ym2651y.c] When …
2 parents 074383b + 1283c4a commit be99f0f

File tree

1 file changed

+5
-0
lines changed
  • platform/broadcom/sonic-platform-modules-accton/common/modules

1 file changed

+5
-0
lines changed

platform/broadcom/sonic-platform-modules-accton/common/modules/ym2651y.c

+5
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,11 @@ static int ym2651y_update_thread(void *arg)
983983

984984
/* PMBus STATUS_WORD(0x79): psu_power_good, high byte bit 3, 0=>OK, 1=>FAIL */
985985
data->reg_val.status_word |= 0x800;
986+
987+
/* psu_power_good = failed, modified to return 1023 degree for python used. */
988+
data->reg_val.temp_input[0] = 0x3ff;
989+
data->reg_val.temp_input[1] = 0x3ff;
990+
data->reg_val.temp_input[2] = 0x3ff;
986991
}
987992
mutex_unlock(&data->update_lock);
988993

0 commit comments

Comments
 (0)