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: ipu3-cio2: Re-add .complete() to ipu3-cio2 #128

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

djrscally
Copy link
Collaborator

This should fix the always-broken VCMs and allow cameras to work again everywhere. The VCM itself may still not work - it will depend on probe ordering, I still need to fix the missing propagation for the -EPROBE_DEFER call in the cio2-bridge.

Sorry this took so long - I thought it was broken in some way as I couldn't get the focus to work but after extensive debugging it turned out I was just being an utter moron :D

Removing the .complete() callback had some unintended consequences.
Because the VCM driver is not directly linked to the ipu3-cio2
driver .bound() never gets called for it, which means its devnode
is never created if it probes late. Because .complete() waits for
any sub-notifiers to also be complete it is captured in that call.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Copy link
Member

@qzed qzed left a comment

Choose a reason for hiding this comment

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

No worries, thanks!

@qzed qzed merged commit 4a3dccb into linux-surface:v5.17-surface-devel Jun 13, 2022
qzed added a commit to linux-surface/linux-surface that referenced this pull request Jun 14, 2022
Changes:
 - Add support for tablet-mode switch on Surface Go
   (linux-surface/kernel#127, credits go to
   @krnhotwings)
 - Fix driver probe issues preventing cameras from working
   (linux-surface/kernel#128, credits go
   @djrscally)
 - Add support for more SAM events used by the Surface Laptop Studio.
 - Rebase onto v5.17.14

Links:
 - kernel: linux-surface/kernel@d973d23
qzed added a commit to linux-surface/linux-surface that referenced this pull request Jun 14, 2022
Changes:
 - Add support for tablet-mode switch on Surface Go
   (linux-surface/kernel#127, credits go to
   @krnhotwings)
 - Fix driver probe issues preventing cameras from working
   (linux-surface/kernel#128, credits go
   @djrscally)
 - Add support for more SAM events used by the Surface Laptop Studio.
 - Rebase onto v5.18.3

Links:
 - kernel: linux-surface/kernel@d973d23
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.

None yet

2 participants