Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RK628: soc_24M clk will be disabled, when probe success #322

Open
CmST0us opened this issue Mar 10, 2024 · 0 comments
Open

RK628: soc_24M clk will be disabled, when probe success #322

CmST0us opened this issue Mar 10, 2024 · 0 comments

Comments

@CmST0us
Copy link

CmST0us commented Mar 10, 2024

clk_disable_unprepare(csi->soc_24M);

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 added a commit to CmST0us/rockchip-bsp-kernel that referenced this issue Mar 10, 2024
rockchip-linux#322
    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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant