Skip to content

Commit 7264aeb

Browse files
author
Manasi Navare
committed
drm/i915/icl: Fix the TRANS_DDI_FUNC_CTL2 bitfield macro
This patch fixes the PORT_SYNC_MODE_MASTER_SELECT macro to correctly do the left shifting to set the port sync master select correctly. I have tested this fix on ICL. Fixes: 49edbd4 ("drm/i915/icl: Define TRANS_DDI_FUNC_CTL DSI registers") Cc: Madhav Chauhan <[email protected]> Cc: Jani Nikula <[email protected]> Cc: <[email protected]> # v5.0+ Signed-off-by: Manasi Navare <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 6e514e3 commit 7264aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9352,7 +9352,7 @@ enum skl_power_gate {
93529352
#define TRANS_DDI_FUNC_CTL2(tran) _MMIO_TRANS2(tran, \
93539353
_TRANS_DDI_FUNC_CTL2_A)
93549354
#define PORT_SYNC_MODE_ENABLE (1 << 4)
9355-
#define PORT_SYNC_MODE_MASTER_SELECT(x) ((x) < 0)
9355+
#define PORT_SYNC_MODE_MASTER_SELECT(x) ((x) << 0)
93569356
#define PORT_SYNC_MODE_MASTER_SELECT_MASK (0x7 << 0)
93579357
#define PORT_SYNC_MODE_MASTER_SELECT_SHIFT 0
93589358

0 commit comments

Comments
 (0)