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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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]>
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");

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