[PATCH] clk: imx: imx6sx: remove the SET_RATE_PARENT flag for QSPI clocks

Fabio Estevam festevam at gmail.com
Wed Sep 14 13:51:16 PDT 2022


Hi Han Xu,

On Wed, Sep 14, 2022 at 5:11 PM Han Xu <han.xu at nxp.com> wrote:
>
> There is no dedicate parent clock for QSPI so SET_RATE_PARENT flag
> should not be used. For instance, the default parent clock for QSPI is
> pll2_bus, which is also the parent clock for quite a few modules, such
> as MMDC, once GPMI NAND set clock rate for EDO5 mode can cause system
> hang due to pll2_bus rate changed.

Thanks a lot for your patch.

This fixes the kernel hang issue on a custom imx6sx board with NAND without the
need of using the workaround found in the NXP kernel:

https://source.codeaurora.org/external/imx/linux-imx/commit/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c?h=lf-5.15.y&id=d03eb99c393f8732f70a1d7d29a3b9c42cccbe48

Tested-by: Fabio Estevam <festevam at denx.de>



More information about the linux-arm-kernel mailing list