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

media: ov2740: Fix "clk already disabled" / "already unprepared" oops / backtraces #179

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

jwrdegoede
Copy link
Contributor

On probe() the ov2740 code was manually setting the reset GPIO instead of using the power_on() helper function.

This path however left out enabling the clk, which power_on() does do, so when power_off() runs after the probe() is done (on runtime suspend) then there are 2 ugly backtraces triggered by WARN()s in the clk-core. One for "clk already disabled" followed by one for "clk already unprepared".

Fix this by using the power_on() helper in probe().

@jwrdegoede jwrdegoede changed the title media: ov7240: Fix "clk already disabled" / "already unprepared" oops / backtraces media: ov2740: Fix "clk already disabled" / "already unprepared" oops / backtraces Oct 10, 2023
…traces

On probe() the ov2740 code was manually setting the reset GPIO
instead of using the power_on() helper function.

This path however left out enabling the clk, which power_on() does do,
so when power_off() runs after the probe() is done (on runtime suspend)
then there are 2 ugly backtraces triggered by WARN()s in the clk-core. One
for "clk already disabled" followed by one for "clk already unprepared".

Fix this by using the power_on() helper in probe().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
@jwrdegoede
Copy link
Contributor Author

New push:

  1. Rebased on latest master
  2. Typo fix in commitmsg: 's/ov7240/ov2740/'

@hao-yao
Copy link
Contributor

hao-yao commented Oct 17, 2023

Thank you @jwrdegoede . I also changed this part recently to prepare sending changes together with upstreamed IPU6 driver. The settings for CJFLE23 is actually 180MHz link frequency and seems Thinkpad X1 can't run the 360MHz setting.

@hao-yao hao-yao merged commit 075ce59 into intel:master Oct 17, 2023
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

Successfully merging this pull request may close these issues.

2 participants