1. 28 Jul, 2022 2 commits
    • Adam Wujek's avatar
      main/i2c: use var block mode for UPTIME_SECS and TMR_ERROR_CNT · 6e6c651c
      Adam Wujek authored
      Thanks to this change the linux kernel may use PEC for these registers
      in much easier way.
      
      In pytest, update query flags for TEMP_CURVE_POINTS and TEMP_MATRIX_ROW
      registers.
      Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
      6e6c651c
    • Adam Wujek's avatar
      main/i2c: use var block mode for TEMP_CURVE_POINTS and TEMP_MATRIX_ROW · b6492661
      Adam Wujek authored
      Changes cover:
      - fix broken handling of setting row/points (size of temp_matrix_row was too
        small, fan_n in set_tc_curve was read from a wrong type (uint16 not uint8))
      - use structures for handling row/points
      - add get functionality for row/points (before it was possible to read only
        the transfered data not the actual used)
      - iterate over fan entries when getting row/points
      - update pytests
        -- update query flags for TEMP_CURVE_POINTS and TEMP_MATRIX_ROW registers
        -- improve write testing of TEMP_CURVE_POINTS and TEMP_MATRIX_ROW
           registers
      - update documentation
      Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
      b6492661
  2. 12 Jul, 2022 1 commit
    • Adam Wujek's avatar
      common/i2c: fix variable size block writes · 5fd1cff2
      Adam Wujek authored
      The line:
      *cmds->cmds[cmd_index].data_len = tx_tmp;
      triggered the write to memory, which is declared as read-only (const).
      Such writes trigger the memory exception.
      
      To make the code simpler and avoid problematic write,
      support only writes that has a size of a register.
      
      The fix was tested for PEC.
      Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
      5fd1cff2
  3. 30 Jun, 2022 6 commits
  4. 28 Jun, 2022 3 commits
  5. 27 Jun, 2022 2 commits
  6. 03 Jun, 2022 2 commits
  7. 31 May, 2022 1 commit
  8. 23 May, 2022 16 commits
  9. 03 May, 2022 4 commits
  10. 15 Apr, 2022 3 commits