mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
case 1: plug in hdmi and power on, after kernel complete and before android start(maybe can update simplification boot.img) we plug out hdmi will appear error log. case 2: plug in hdmi and power on, at the beginning of drm driver bind, plug out hdmi, the hdmi irq maybe at disable state, so the vop is in running state which is set at uboot. in this case vop will not to enable clk refrerence, after driver probe complete, the unused clk maybe close by clk driver framework. this will lead to vop appear error log: [ 4.898107] rockchip-vop ff370000.vop: [drm:vop_crtc_enable] Update mode to 720*288 [ 4.900174] rockchip-vop ff370000.vop: [drm:vop_isr] *ERROR*BUS_ERROR irq err solution: 1. disable vop all planes before disable crtc and enable crtc; 2. disable vop all planes when can't detect connect at power on. 3. enable dma stop before detach iommu and disable dma stop after attach iommu. Change-Id: Ia981d52c96a274fa177493d10362fd4e395a6707 Signed-off-by: Sandy Huang <hjc@rock-chips.com>