From: Han Xu <han.xu@nxp.com>
To: Christian Eggers <ceggers@arri.de>
Cc: Michael Trimarchi <michael@amarulasolutions.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Stefan Riedmueller <S.Riedmueller@phytec.de>,
Greg Ungerer <gerg@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Christian Hemp <C.Hemp@phytec.de>,
Boris Brezillon <bbrezillon@kernel.org>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH 1/2] mtd: rawnand: gpmi: Remove explicit default gpmi clock setting for i.MX6
Date: Wed, 3 Nov 2021 11:13:08 -0500 [thread overview]
Message-ID: <20211103161308.n5vxrllgil3ntpxs@umbrella> (raw)
In-Reply-To: <20211102202022.15551-1-ceggers@arri.de>
On 21/11/02 09:20PM, Christian Eggers wrote:
> From: Stefan Riedmueller <s.riedmueller@phytec.de>
>
> There is no need to explicitly set the default gpmi clock rate during
> boot for the i.MX 6 since this is done during nand_detect anyway.
>
> Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
> Cc: stable@vger.kernel.org
> ---
> @stable: This patch fixes a bug because this (superfluous) call to
> clk_set_rate() misses the required clock gating. The resulting
> clock glitches can prevent the system from booting.
>
> Changelog:
> -----------
> RFC --> v1
> - Cc: stable@vger.kernel.org
>
> drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> index 4d08e4ab5c1b..a1f7000f033e 100644
> --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> @@ -1034,15 +1034,6 @@ static int gpmi_get_clks(struct gpmi_nand_data *this)
> r->clock[i] = clk;
> }
>
> - if (GPMI_IS_MX6(this))
> - /*
> - * Set the default value for the gpmi clock.
> - *
> - * If you want to use the ONFI nand which is in the
> - * Synchronous Mode, you should change the clock as you need.
> - */
> - clk_set_rate(r->clock[0], 22000000);
> -
Acked-by: Han Xu <han.xu@nxp.com>
> return 0;
>
> err_clock:
> --
> Christian Eggers
> Embedded software developer
>
> Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
> Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918
> Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
> Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477
> Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler
>
next prev parent reply other threads:[~2021-11-03 16:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-02 20:20 Christian Eggers
2021-11-02 20:20 ` [PATCH 2/2] gpmi-nand: Add ERR007117 protection for nfc_apply_timings Christian Eggers
2021-11-03 16:14 ` Han Xu
2021-11-19 18:43 ` Miquel Raynal
2021-11-03 16:13 ` Han Xu [this message]
2021-11-19 18:43 ` [PATCH 1/2] mtd: rawnand: gpmi: Remove explicit default gpmi clock setting for i.MX6 Miquel Raynal
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=20211103161308.n5vxrllgil3ntpxs@umbrella \
--to=han.xu@nxp.com \
--cc=C.Hemp@phytec.de \
--cc=S.Riedmueller@phytec.de \
--cc=bbrezillon@kernel.org \
--cc=ceggers@arri.de \
--cc=gerg@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=michael@amarulasolutions.com \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=s.hauer@pengutronix.de \
--cc=stable@vger.kernel.org \
--cc=vigneshr@ti.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
all inboxes | Powered by JetHome®