Skip to content

FIXUP: "fbdev: Allow client to request a particular /dev/fbdevN node" #6893

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

Open
wants to merge 1 commit into
base: rpi-6.16.y
Choose a base branch
from

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Jun 11, 2025

Fixes up forward port to 6.16
Squash in (currently) ee76d85.

@@ -460,7 +460,6 @@ static int do_register_framebuffer(struct fb_info *fb_info)
if (err < 0)
return err;

fb_info->node = i;
refcount_set(&fb_info->count, 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't this deletion mean no one is ever setting fb_info->node?

Copy link
Contributor Author

@6by9 6by9 Jun 11, 2025

Choose a reason for hiding this comment

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

If the caller has set custom_fb_num then it is also expected to have set fb_info->node to the desired node number.

We search if:

if (!fb_info->custom_fb_num || fb_info->node >= FB_MAX || registered_fb[fb_info->node]) {

ie caller hasn't requested to use the desired number, it's too high, or already registered.

dfc8f67 is the one user of this, and sets both info->node and info->custom_fb_num.

Fixes up forward port to 6.16
Squash in (currently) ee76d85.

Signed-off-by: Dave Stevenson <[email protected]>
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