kernel icon indicating copy to clipboard operation
kernel copied to clipboard

RK628: soc_24M clk will be disabled, when probe success

Open CmST0us opened this issue 1 year ago • 0 comments

https://github.com/rockchip-linux/kernel/blob/604cec4004abe5a96c734f2fab7b74809d2d742f/drivers/media/i2c/rk628/rk628_csi_v4l2.c#L2163

In rk628_csi_probe_of function, when we got success in probe, the ret value is 0, but the clk_disable_unprepare(csi->soc_24M) still will be invoked. This will cause the enable_count of soc_24M minus 1. So if there is no other driver use soc_24M, the clock will be disable, and the the i2c comunication will be failed.

CmST0us avatar Mar 10 '24 11:03 CmST0us