clk: imx6*: avoid GPMI clock glitches on reparenting/divider change
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v1 Latest posting 2/26 patches 1 replyIn review
- v1 posting 1/26 patches 1 replySuperseded
Patches in v1 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | clk: imx6ul: disable gpmi_io clock before changing parent clockdrivers/ | +9 | 0 replies | |
| 2/6 | clk: imx6ul: enforce gating of gpmi_io clockdrivers/ | +2 | 0 replies | |
| 3/6 | clk: imx6q: disable gpmi_io and ipt_io clocks before changing parentdrivers/ | +20 | 0 replies | |
| 4/6 | clk: imx6q: enforce gating of gpmi_io clockdrivers/ | +2 | 0 replies | |
| 5/6 | clk: imx6sx: disable gpmi_io clock before changing parent clockdrivers/ | +12 | 0 replies | |
| 6/6 | clk: imx6sx: enforce gating of gpmi_io clockdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH RESEND 0/6] clk: imx6*: avoid GPMI clock glitches on reparenting/divider change
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
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel