Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: 8250_mtk: track busclk state to avoid bus error
Commit e32a83c ("serial: 8250-mtk: modify mtk uart power and clock management") introduced polling a debug register to make sure the UART is idle before disabling the bus clock. However, at least on some MediaTek SoCs access to that very debug register requires the bus clock being enabled. Hence calling the suspend function while already in suspended state results in that register access triggering a bus error. In order to avoid that, track the state of the bus clock and only poll the debug register if not already in suspended state. Fixes: e32a83c ("serial: 8250-mtk: modify mtk uart power and clock management") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Loading branch information