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

lk2nd: device: panel: remove failure on status is missing #487

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

barni2000
Copy link
Contributor

@barni2000 barni2000 commented Jan 27, 2025

Remove failure when ts-compatible is in use and status property is missing from touchscreen node. Make a warning instead of fail.

Issues:

  • Message is not appearing in the logs yet.
  • Maybe it would be great show this warning on splash.

Fixes: #482

Comment on lines 100 to 106
dprintf(CRITICAL,
"WARNING!!!!\n\
Failed to enable %s touchscreen: %d\n\
Please check your device tree.\n\
Maybe a status property is missing from touchscreen nodes.\n",
panel->ts_compatible,
ret);
Copy link
Member

Choose a reason for hiding this comment

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

FWIW I'd use multiple dprintf so lk2nd prepends it's [000] timestamp to each, otherwise I'd use multiple string literals instead of escaping newline and adding 4 tabs to the string

dprintf(CRITICAL,
         "foo\n"
         "bar\n");

Remove failure when ts-compatible is in use and status property
is missing from touchscreen node. Make a warning instead of fail.

Signed-off-by: Barnabás Czémán <[email protected]>
@barni2000 barni2000 marked this pull request as ready for review March 2, 2025 12:07
@barni2000
Copy link
Contributor Author

@TravMurav I have released the draft state, idk if it is possible to notify the users on splash if there is any warning message, maybe it would be a good approach in the future to make them check the logs.

@TravMurav TravMurav merged commit 4656b31 into msm8916-mainline:main Mar 3, 2025
42 checks passed
@TravMurav
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

touchscreen-compatible cause crashing when status property is missng
2 participants