mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
phy: zynqmp: fix L0_TM_DISABLE_SCRAMBLE_ENCODER mask
The L0_TX_DIG_61 register bit 2 is a reserved read-only field.
The previous mask value 0x0f incorrectly included bit 2, causing
unintended writes to a reserved bit on every scrambler bypass
operation.
Correct the mask to (BIT(3) | GENMASK(1, 0)) to cover only the
valid scramble bypass control bits.
Fixes: 4a33bea003 ("phy: zynqmp: Add PHY driver for the Xilinx ZynqMP Gigabit Transceiver")
Cc: stable@vger.kernel.org
Signed-off-by: Nava kishore Manne <nava.kishore.manne@amd.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20260627155229.2791113-2-radhey.shyam.pandey@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
f3506e15cf
commit
6cb2247792
@@ -53,7 +53,7 @@
|
||||
#define L0_TM_DIG_6 0x106c
|
||||
#define L0_TM_DIS_DESCRAMBLE_DECODER 0x0f
|
||||
#define L0_TX_DIG_61 0x00f4
|
||||
#define L0_TM_DISABLE_SCRAMBLE_ENCODER 0x0f
|
||||
#define L0_TM_DISABLE_SCRAMBLE_ENCODER (BIT(3) | GENMASK(1, 0))
|
||||
|
||||
/* PLL Test Mode register parameters */
|
||||
#define L0_TM_PLL_DIG_37 0x2094
|
||||
|
||||
Reference in New Issue
Block a user