summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorKarol Kolacinski <karol.kolacinski@intel.com>2024-06-04 14:05:27 +0200
committerJakub Kicinski <kuba@kernel.org>2024-06-06 01:01:16 +0200
commit323a359f9b077f382f4483023d096a4d316fd135 (patch)
tree53687b9ed6667cfa9feed72e8e412b9cd0807168 /drivers/ptp
parentnet/sched: taprio: always validate TCA_TAPRIO_ATTR_PRIOMAP (diff)
downloadlinux-323a359f9b077f382f4483023d096a4d316fd135.tar.xz
linux-323a359f9b077f382f4483023d096a4d316fd135.zip
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: 6092315dfdec ("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>
Diffstat (limited to 'drivers/ptp')
-rw-r--r--drivers/ptp/ptp_chardev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c
index 7513018c9f9a..2067b0120d08 100644
--- a/drivers/ptp/ptp_chardev.c
+++ b/drivers/ptp/ptp_chardev.c
@@ -85,7 +85,8 @@ int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin,
}
if (info->verify(info, pin, func, chan)) {
- pr_err("driver cannot use function %u on pin %u\n", func, chan);
+ pr_err("driver cannot use function %u and channel %u on pin %u\n",
+ func, chan, pin);
return -EOPNOTSUPP;
}