mbox series

[RESEND,0/6] clk: imx6*: avoid GPMI clock glitches on reparenting/divider change

Message ID 20220125144441.17750-1-ceggers@arri.de (mailing list archive)
Headers show
Series clk: imx6*: avoid GPMI clock glitches on reparenting/divider change | expand

Message

Christian Eggers Jan. 25, 2022, 2:44 p.m. UTC
RESEND because the series got corrupted on first tranmission

On the i.MX6 series (but not on i.MX7/8), most clock multiplexers and
switchable dividers are not "glitch safe", so switching them while a
consumer is connected can cause glitches with a higher frequency than
supported by the consuming peripheral.

Without fixes, peripherals can fail occasionally. One example is
that system boot fails due to lockup of the GPMI NAND controller:

f53d4c109a66 ("mtd: rawnand: gpmi: Add ERR007117 protection for nfc_apply_timings")

The conditions where this can appear also depend on the device
from which the system is booted and whether the bootloader has already
performed all reparenting of the clocks.

To avoid these problems, the clock subsystem must:
 - Gate consumer clocks during reparenting
 - Enforce that all consumer clocks are gated before client drivers can change the divider

Comments

Stephen Boyd Jan. 25, 2022, 10:19 p.m. UTC | #1
Quoting Christian Eggers (2022-01-25 06:44:35)
> RESEND because the series got corrupted on first tranmission

Still looks corrupted :(