aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorLuben Tuikov <[email protected]>2021-03-09 22:29:22 +0000
committerAlex Deucher <[email protected]>2021-07-01 04:24:41 +0000
commitebe57d0c8ecc7279c81d75746385595bc9eb5fca (patch)
tree343b8482e4853a13c479c5b0057bd00b8aa44f0e /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amd/pm: Extend the I2C quirk table (diff)
downloadkernel-ebe57d0c8ecc7279c81d75746385595bc9eb5fca.tar.gz
kernel-ebe57d0c8ecc7279c81d75746385595bc9eb5fca.zip
drm/amd/pm: Simplify managed I2C transfer functions
Now that we have an I2C quirk table for SMU-managed I2C controllers, the I2C core does the checks for us, so we don't need to do them, and so simplify the managed I2C transfer functions. Also, for Arcturus and Navi10, fix setting the command type from "cmd->CmdConfig" to "cmd->Cmd". The latter is what appears to be taking in the enumeration I2C_CMD_... as an integer, not a bit-flag. For Sienna, the "Cmd" field seems to have been eliminated, and command type and flags all live in the "CmdConfig" field--this is left untouched. Fix: Detect and add changing of direction bit-flag, as this is necessary for the SMU to detect the direction change in the 1-d array of data it gets. Cc: Jean Delvare <[email protected]> Cc: Alexander Deucher <[email protected]> Cc: Andrey Grodzovsky <[email protected]> Cc: Lijo Lazar <[email protected]> Cc: Stanley Yang <[email protected]> Cc: Hawking Zhang <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Acked-by: Alexander Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions