Skip to content

Commit

Permalink
Merge pull request #23 from ec-michael-shih/07_20231221_202211_0_fixe…
Browse files Browse the repository at this point in the history
…d_common_ym2651y_pmbus_driver

[Edge-core][common driver][pmbus][ym2651y.c] When …
  • Loading branch information
bryan1978 authored Jan 3, 2024
2 parents 074383b + 1283c4a commit be99f0f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@ static int ym2651y_update_thread(void *arg)

/* PMBus STATUS_WORD(0x79): psu_power_good, high byte bit 3, 0=>OK, 1=>FAIL */
data->reg_val.status_word |= 0x800;

/* psu_power_good = failed, modified to return 1023 degree for python used. */
data->reg_val.temp_input[0] = 0x3ff;
data->reg_val.temp_input[1] = 0x3ff;
data->reg_val.temp_input[2] = 0x3ff;
}
mutex_unlock(&data->update_lock);

Expand Down

0 comments on commit be99f0f

Please sign in to comment.