Skip to content

Commit 323a359

Browse files
kolacinskikarolkuba-moo
authored andcommitted
ptp: Fix error message on failed pin verification
On failed verification of PTP clock pin, error message prints channel number instead of pin index after "pin", which is incorrect. Fix error message by adding channel number to the message and printing pin number instead of channel number. Fixes: 6092315 ("ptp: introduce programmable pins.") Signed-off-by: Karol Kolacinski <[email protected]> Acked-by: Richard Cochran <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f921a58 commit 323a359

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/ptp/ptp_chardev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin,
8585
}
8686

8787
if (info->verify(info, pin, func, chan)) {
88-
pr_err("driver cannot use function %u on pin %u\n", func, chan);
88+
pr_err("driver cannot use function %u and channel %u on pin %u\n",
89+
func, chan, pin);
8990
return -EOPNOTSUPP;
9091
}
9192

0 commit comments

Comments
 (0)