netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Csókás Bence" <Csokas.Bence@prolan.hu>
To: "Marc Kleine-Budde" <mkl@pengutronix.de>,
	"Bence Csókás" <bence98@sch.bme.hu>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	Richard Cochran <richardcochran@gmail.com>,
	"David S . Miller" <davem@davemloft.net>,
	"Jakub Kicinski" <kuba@kernel.org>,
	Francesco Dolcini <francesco.dolcini@toradex.com>,
	Andrew Lunn <andrew@lunn.ch>, Guenter Roeck <linux@roeck-us.net>,
	"kernel@pengutronix.de" <kernel@pengutronix.de>
Subject: Re: [PATCH 1/2] Revert "net: fec: Use a spinlock to guard `fep->ptp_clk_on`"
Date: Tue, 13 Sep 2022 19:04:56 +0000	[thread overview]
Message-ID: <3f2824bc776f4383b84e4137f6c740de@prolan.hu> (raw)
In-Reply-To: <20220912103818.j2u6afz66tcxvnr6@pengutronix.de>

> This is not a 100% revert.
> 
> In b353b241f1eb ("net: fec: Use a spinlock to guard `fep->ptp_clk_on`")
> the "struct fec_enet_private *fep" was renamed to "struct
> fec_enet_private *adapter" for no apparent reason. The driver uses "fep"
> everywhere else. This revert doesn't restore the original state.

You got that backwards. b353b241f1eb renamed `adapter` to `fep` to align
it with the rest of the driver. I decided to amend the revert to keep this renaming.
`adapter` was introduced in 6605b73 when `fec_ptp.c` was created.

> This leads to the following diff against a 100% revert.
> 
> diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c
> index c99dff3c3422..c74d04f4b2fd 100644
> --- a/drivers/net/ethernet/freescale/fec_ptp.c
> +++ b/drivers/net/ethernet/freescale/fec_ptp.c
> @@ -365,21 +365,21 @@ static int fec_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta)
>   */
>  static int fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts)
>  {
> -       struct fec_enet_private *fep =
> +       struct fec_enet_private *adapter =

Here you can clearly see the nature of my amend. I thought I added this to the commit message,
but it seems I have forgot.

Bence

  parent reply	other threads:[~2022-09-13 19:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12  7:31 [PATCH 1/2] Revert "net: fec: Use a spinlock to guard `fep->ptp_clk_on`" Bence Csókás
2022-09-12  7:31 ` [PATCH 2/2] net: fec: Use unlocked timecounter reads for saving state Bence Csókás
2022-09-12  7:31 ` [PATCH v3 " Bence Csókás
2022-09-12  7:09   ` Csókás Bence
2022-09-12 10:38 ` [PATCH 1/2] Revert "net: fec: Use a spinlock to guard `fep->ptp_clk_on`" Marc Kleine-Budde
2022-09-12 12:38   ` Marc Kleine-Budde
2022-09-13 19:04   ` Csókás Bence [this message]
2022-09-14  8:38     ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f2824bc776f4383b84e4137f6c740de@prolan.hu \
    --to=csokas.bence@prolan.hu \
    --cc=andrew@lunn.ch \
    --cc=bence98@sch.bme.hu \
    --cc=davem@davemloft.net \
    --cc=francesco.dolcini@toradex.com \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mkl@pengutronix.de \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).