drm/amd/display: Right shift AUX reply value sooner than later
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 26 Jun 2018 14:44:05 +0000 (10:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:50:46 +0000 (14:50 -0500)
commit3092108904461dd50b1502f3a2977a4259d91044
treebabb9763bedd0274856ada7dca33e2c46dc3067c
parentc2437b1f16d9b136c88b2c7c0254919a0e1311f6
drm/amd/display: Right shift AUX reply value sooner than later

[Why]
There is no point in keeping the AUX reply value in the raw format as
returned from reading the AUX_SW_DATA register.

[How]
Shift it within read_channel_reply(), where the register is read, before
returning it.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c