* [PATCH net] ptp: Relocate lookup cookie to correct block.
@ 2021-07-08 18:04 Jonathan Lemon
2021-07-08 19:40 ` patchwork-bot+netdevbpf
2021-07-10 13:13 ` dariobin
0 siblings, 2 replies; 6+ messages in thread
From: Jonathan Lemon @ 2021-07-08 18:04 UTC (permalink / raw)
To: davem, dariobin, richardcochran; +Cc: kernel-team, netdev
An earlier commit set the pps_lookup cookie, but the line
was somehow added to the wrong code block. Correct this.
Fixes: 8602e40fc813 ("ptp: Set lookup cookie when creating a PTP PPS source.")
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Acked-by: Richard Cochran <richardcochran@gmail.com>
---
drivers/ptp/ptp_clock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
index ce6d9fc85607..4dfc52e06704 100644
--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -232,7 +232,6 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
pr_err("failed to create ptp aux_worker %d\n", err);
goto kworker_err;
}
- ptp->pps_source->lookup_cookie = ptp;
}
/* PTP virtual clock is being registered under physical clock */
@@ -268,6 +267,7 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
pr_err("failed to register pps source\n");
goto no_pps;
}
+ ptp->pps_source->lookup_cookie = ptp;
}
/* Initialize a new device of our class in our clock structure. */
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH net] ptp: Relocate lookup cookie to correct block.
2021-07-08 18:04 [PATCH net] ptp: Relocate lookup cookie to correct block Jonathan Lemon
@ 2021-07-08 19:40 ` patchwork-bot+netdevbpf
2021-07-10 13:13 ` dariobin
1 sibling, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-07-08 19:40 UTC (permalink / raw)
To: Jonathan Lemon; +Cc: davem, dariobin, richardcochran, kernel-team, netdev
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Thu, 8 Jul 2021 11:04:08 -0700 you wrote:
> An earlier commit set the pps_lookup cookie, but the line
> was somehow added to the wrong code block. Correct this.
>
> Fixes: 8602e40fc813 ("ptp: Set lookup cookie when creating a PTP PPS source.")
> Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
> Signed-off-by: Dario Binacchi <dariobin@libero.it>
> Acked-by: Richard Cochran <richardcochran@gmail.com>
>
> [...]
Here is the summary with links:
- [net] ptp: Relocate lookup cookie to correct block.
https://git.kernel.org/netdev/net/c/debdd8e31895
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH net] ptp: Relocate lookup cookie to correct block.
2021-07-08 18:04 [PATCH net] ptp: Relocate lookup cookie to correct block Jonathan Lemon
2021-07-08 19:40 ` patchwork-bot+netdevbpf
@ 2021-07-10 13:13 ` dariobin
2021-07-10 16:56 ` Jonathan Lemon
1 sibling, 1 reply; 6+ messages in thread
From: dariobin @ 2021-07-10 13:13 UTC (permalink / raw)
To: Jonathan Lemon, davem, richardcochran; +Cc: kernel-team, netdev
Hi Jonathan,
IMHO it is unfair that I am not the commit author of this patch.
Thanks and regards,
Dario
> Il 08/07/2021 20:04 Jonathan Lemon <jonathan.lemon@gmail.com> ha scritto:
>
>
> An earlier commit set the pps_lookup cookie, but the line
> was somehow added to the wrong code block. Correct this.
>
> Fixes: 8602e40fc813 ("ptp: Set lookup cookie when creating a PTP PPS source.")
> Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
> Signed-off-by: Dario Binacchi <dariobin@libero.it>
> Acked-by: Richard Cochran <richardcochran@gmail.com>
> ---
> drivers/ptp/ptp_clock.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
> index ce6d9fc85607..4dfc52e06704 100644
> --- a/drivers/ptp/ptp_clock.c
> +++ b/drivers/ptp/ptp_clock.c
> @@ -232,7 +232,6 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
> pr_err("failed to create ptp aux_worker %d\n", err);
> goto kworker_err;
> }
> - ptp->pps_source->lookup_cookie = ptp;
> }
>
> /* PTP virtual clock is being registered under physical clock */
> @@ -268,6 +267,7 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
> pr_err("failed to register pps source\n");
> goto no_pps;
> }
> + ptp->pps_source->lookup_cookie = ptp;
> }
>
> /* Initialize a new device of our class in our clock structure. */
> --
> 2.30.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH net] ptp: Relocate lookup cookie to correct block.
2021-07-10 13:13 ` dariobin
@ 2021-07-10 16:56 ` Jonathan Lemon
2021-07-10 17:09 ` dariobin
2021-07-12 3:16 ` Richard Cochran
0 siblings, 2 replies; 6+ messages in thread
From: Jonathan Lemon @ 2021-07-10 16:56 UTC (permalink / raw)
To: dariobin; +Cc: davem, richardcochran, kernel-team, netdev
On Sat, Jul 10, 2021 at 03:13:17PM +0200, dariobin@libero.it wrote:
> Hi Jonathan,
> IMHO it is unfair that I am not the commit author of this patch.
Richard alerted me to the error, and I sent a fix on July 6th when
I came back from vacation. I saw your fix go by 2 days later - which
was also for net-next, and tossed as well.
So when I respun my initial patch against -net, I added your
signoff, since the two patches were identical.
No slight intended...
--
Jonathan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH net] ptp: Relocate lookup cookie to correct block.
2021-07-10 16:56 ` Jonathan Lemon
@ 2021-07-10 17:09 ` dariobin
2021-07-12 3:16 ` Richard Cochran
1 sibling, 0 replies; 6+ messages in thread
From: dariobin @ 2021-07-10 17:09 UTC (permalink / raw)
To: Jonathan Lemon; +Cc: davem, richardcochran, kernel-team, netdev
> Il 10/07/2021 18:56 Jonathan Lemon <jonathan.lemon@gmail.com> ha scritto:
>
>
> On Sat, Jul 10, 2021 at 03:13:17PM +0200, dariobin@libero.it wrote:
> > Hi Jonathan,
> > IMHO it is unfair that I am not the commit author of this patch.
>
> Richard alerted me to the error, and I sent a fix on July 6th when
> I came back from vacation. I saw your fix go by 2 days later - which
> was also for net-next, and tossed as well.
>
> So when I respun my initial patch against -net, I added your
> signoff, since the two patches were identical.
>
> No slight intended...
Okay, thanks for the clarification,
Regards,
Dario
> --
> Jonathan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH net] ptp: Relocate lookup cookie to correct block.
2021-07-10 16:56 ` Jonathan Lemon
2021-07-10 17:09 ` dariobin
@ 2021-07-12 3:16 ` Richard Cochran
1 sibling, 0 replies; 6+ messages in thread
From: Richard Cochran @ 2021-07-12 3:16 UTC (permalink / raw)
To: Jonathan Lemon; +Cc: dariobin, davem, kernel-team, netdev
On Sat, Jul 10, 2021 at 09:56:30AM -0700, Jonathan Lemon wrote:
> On Sat, Jul 10, 2021 at 03:13:17PM +0200, dariobin@libero.it wrote:
> > Hi Jonathan,
> > IMHO it is unfair that I am not the commit author of this patch.
>
> Richard alerted me to the error, and I sent a fix on July 6th when
> I came back from vacation. I saw your fix go by 2 days later - which
> was also for net-next, and tossed as well.
Vladimir Oltean found the bug (too). He deserves credit for that!
Thanks,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-12 3:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08 18:04 [PATCH net] ptp: Relocate lookup cookie to correct block Jonathan Lemon
2021-07-08 19:40 ` patchwork-bot+netdevbpf
2021-07-10 13:13 ` dariobin
2021-07-10 16:56 ` Jonathan Lemon
2021-07-10 17:09 ` dariobin
2021-07-12 3:16 ` Richard Cochran
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.