Commit a767957e authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Jakub Kicinski
Browse files

ptp: ocp: Fix typo using index 1 instead of i in SMA initialization loop



In ptp_ocp_sma_fb_init(), the code mistakenly used bp->sma[1]
instead of bp->sma[i] inside a for-loop, which caused only SMA[1]
to have its DIRECTION_CAN_CHANGE capability cleared. This led to
inconsistent capability flags across SMA pins.

Fixes: 09eeb3ae ("ptp_ocp: implement DPLL ops")
Signed-off-by: default avatarJiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: default avatarVadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20251021182456.9729-1-jiashengjiangcool@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4c3aa496
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment