Skip to content

Commit 8b114dc

Browse files
kolacinskikarolSasha Levin
authored andcommitted
ptp: Fix error message on failed pin verification
[ Upstream commit 323a359 ] 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 <karol.kolacinski@intel.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Link: https://lore.kernel.org/r/20240604120555.16643-1-karol.kolacinski@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 31ba6cf commit 8b114dc

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
@@ -84,7 +84,8 @@ int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin,
8484
}
8585

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

0 commit comments

Comments
 (0)