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

Create gesture events for mce and enable CIFS module #3

Open
wants to merge 6 commits into
base: hybris-12.1
Choose a base branch
from

Conversation

wdehoog
Copy link

@wdehoog wdehoog commented Jan 18, 2017

No description provided.

@@ -3809,11 +3857,14 @@ static void synaptics_rmi4_set_params(struct synaptics_rmi4_data *rmi4_data)
set_bit(KEY_HOMEPAGE, rmi4_data->input_dev->keybit);
set_bit(KEY_F3, rmi4_data->input_dev->keybit);
set_bit(KEY_DOUBLE_TAP, rmi4_data->input_dev->keybit);

Choose a reason for hiding this comment

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

Should KEY_DOUBLE_TAP be disabled too?

Copy link
Author

Choose a reason for hiding this comment

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

I thought that mce could also handle a power key event generated by the touch screen. That and the fact that it was not disabled in the onyx kernel let me decide to leave it enabled.

Choose a reason for hiding this comment

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

MCE can/does handle power key as double tap, but I was thinking more in the line of: "After the changes elsewhere, is the kernel driver ever going to emit power key events anymore?" If not (i.e. KEY_DOUBLE_TAP aka KEY_POWER is always converted to MSC_GESTURE event), then it would be incorrect to claim that the input device can emit power key events.

set_bit(KEY_GESTURE_LTR, rmi4_data->input_dev->keybit);
set_bit(KEY_GESTURE_GTR, rmi4_data->input_dev->keybit);
set_bit(EV_MSC, rmi4_data->input_dev->evbit);
rmi4_data->input_dev->mscbit[0] = BIT_MASK(MSC_GESTURE);

Choose a reason for hiding this comment

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

This looks a bit odd to me. Was expecting to see series of calls like

set_bit(MSC_GESTURE_xxx, rmi4_data->input_dev->mscbit);

Copy link
Author

Choose a reason for hiding this comment

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

Indeed that would probably work. It compiles but it will take me some time to verify it's working.

Choose a reason for hiding this comment

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

Sorry, I think I was confused for a while.

With here is only one gesture "event" (that can have multiple values). So unless there are other MSC_xxx events, then your original code was correct.

If there are other than MSC_GESTURE events, then using:

set_bit(MSC_GESTURE, rmi4_data->input_dev->mscbit);

would not clear other already set bits.

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.

2 participants