sensors: ImageDesign IDs from vendor drivers, not guesses - #228
Merged
Merged
Conversation
Drop the 0x5001 "wild guess": every MIS5001 driver (Ingenic, Sophgo cvi_sensor, Rockchip RV1106) checks for 0x1311, the MIS4001 ID. Add the IDs those drivers do check: 0x2003 MIS2003, 0x2009 MIS2031 (MIS2032 shares it), 0x20e1 MIS20S1, 0x5003 MIS5011, and MIS40C1 by 0x03fc at 0x541d/0x541e once 0x3000 has said nothing. Ingenic's MIS40C1 check (0x0004 at 0x3004/0x3005) is not used: on MIS2008 that is BROADCAST_ID, read-write with reset default 0x0004, so it would match any MIS part. 0x2008 (MIS2008/MIS2009) and 0x1311 (MIS4001/MIS5001) are shared IDs with no known read-only discriminator; they keep one name and a comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships |
PR Summary by QodoIdentify ImageDesign sensors using vendor-driver chip IDs
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrites
detect_imagedesign_sensorfrom vendor-driver evidence (and the MIS2008 datasheet register list).mis2031.c; MIS2032 (Sophgo, Ingenic) shares itIngenic's MIS40C1 check (0x0004 @ 0x3004/0x3005) is deliberately not used: the MIS2008 datasheet lists 0x3004/0x3005 as BROADCAST_ID, RW, reset default 0x0004 — it would match any MIS part.
The shared IDs follow the SC223A precedent: one name, a comment, no invented discriminator.
sensors_golden.txtdiff is exactly the six ImageDesign lines; newimagedesign-altscenario covers the MIS40C1 fallback.sensors_testpasses. Not tested on hardware.🤖 Generated with Claude Code