Skip to content

WIP: VC4 DSI fixes - #4423

Closed
6by9 wants to merge 3 commits into
raspberrypi:rpi-5.10.yfrom
6by9:rpi-5.10.y-dsi0
Closed

6by9 wants to merge 3 commits into
raspberrypi:rpi-5.10.yfrom
6by9:rpi-5.10.y-dsi0

Conversation

@6by9

@6by9 6by9 commented Jun 30, 2021

Copy link
Copy Markdown
Contributor

Creating PR for reference.
A couple of fixups, and moving PHY initialisation to pm_runtime.

WIP as apparently drm_encoder.crtc is deprecated and only for non-atomic drivers, so the current implementation of the pm_runtime resume functions are "incorrect".

6by9 added 3 commits June 30, 2021 17:28
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Also removes all the messing with the bridge chain as we
now want the framework to perform all the operations.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
The divider calculations tried to find the divider
just faster than the clock requested. However if
it required a divider of 7 then the for loop
aborted without handling the "error" case, and could
end up with a clock lower than requested.

Correct the loop so that we always have a clock greater
than requested.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

@pelwell pelwell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niggle aside, it looks reasonable. However, GitHub could do with a smarter way to indicate code that is copied or moved in a diff.


pm_runtime_mark_last_busy(dev);
pm_runtime_put_autosuspend(dev);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidental blank line?

@6by9

6by9 commented Sep 11, 2021

Copy link
Copy Markdown
Contributor Author

Closing as this isn't the solution that upstream are happy with.

@6by9 6by9 closed this Sep 11, 2021
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