-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Kernel patches will need UVC_INFO_QUIRK #5147
Comments
As beneficiary of this, I won't pile on or +1, as we need others to validate, but can confirm we're using this. |
@dankamongmen , a similar adjustment has already been incorporated into LTS kernel v5.0 patches supported by SDK -
Invoke the patches script The implementation that you provide seem to be more generic, so can you confirm that you read all the metadata attributes and not only the header correctly ? |
I may well be missing some -- I definitely get some dmesg output about uninitialized entity types (Processing 2 and 7, Camera 1 and 6, and Extension 8). I furthermore see some "failed to query UVC control 1 on unit 3", so it's quite possible. realsense-viewer seems to be functioning. How can I verify correct metadata attribute processing? Thank you for your time. |
@dankamongmen , you can check the metadata attributes in The warning |
Thanks, I should be able to look into this tomorrow (Monday 2019-11-11). |
Hi @dankamongmen, Any update? Is the issue clarified and resolved? |
Issue Description
I've been keeping a copy of the Realsense kernel patches up-to-date against mainline. Recently, I started getting an OOPs on device attach. I traced this down to the USB device definitions, where
UVC_QUIRK_APPEND_UVC_HEADER
is being directly stashed into.driver_info
. The 5.x series uvc model requires that this field be a pointer to a uvc device definition. TheUVC_INFO_QUIRK
macro is provided to facilitate this. By changing all.driver_info = UVC_QUIRK_APPEND_UVC_HEADER
to.driver_info = UVC_INFO_QUIRK(UVC_QUIRK_APPEND_UVC_HEADER)
, the problem is resolved.My current diff can be found at
https://www.dsscaw.com/resources/realsense-5.3.7.diff.
If you'd like to take this into the project, I can set up a proper PR.
The text was updated successfully, but these errors were encountered: