Closed jwrdegoede closed 9 months ago
New push:
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.
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().