Skip to content

Commit a767957

Browse files
Jiasheng Jiangkuba-moo
authored andcommitted
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: 09eeb3a ("ptp_ocp: implement DPLL ops") Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/20251021182456.9729-1-jiashengjiangcool@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 4c3aa49 commit a767957

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ptp/ptp_ocp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@ ptp_ocp_sma_fb_init(struct ptp_ocp *bp)
25482548
for (i = 0; i < OCP_SMA_NUM; i++) {
25492549
bp->sma[i].fixed_fcn = true;
25502550
bp->sma[i].fixed_dir = true;
2551-
bp->sma[1].dpll_prop.capabilities &=
2551+
bp->sma[i].dpll_prop.capabilities &=
25522552
~DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE;
25532553
}
25542554
return;

0 commit comments

Comments
 (0)