Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f55dbf72 authored by Stefan Riedmueller's avatar Stefan Riedmueller Committed by Greg Kroah-Hartman
Browse files

mtd: rawnand: gpmi: Remove explicit default gpmi clock setting for i.MX6



commit aa1baa0e6c1aa4872e481dce4fc7fd6f3dd8496b upstream.

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: default avatarStefan Riedmueller <s.riedmueller@phytec.de>
Cc: stable@vger.kernel.org
Acked-by: default avatarHan Xu <han.xu@nxp.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211102202022.15551-1-ceggers@arri.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29218853
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1204,15 +1204,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);

	return 0;

err_clock: