Commit 758120f
Input: atmel_mxt_ts - release touch state during suspend
If fingers are down as the MXT chip goes into suspend it does not send a lift
message. In addition, it may not complete its final measurement cycle
immediately, which means touch messages may be received by the interrupt
handler after mxt_stop() has completed.
So:
- disable irq during suspend
- flush any messages created after suspend
- tell app layer that slots were released at suspend
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
[cyrille.pitchen@atmel.com: adapt original patch to mainline]
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>1 parent 56b25a0 commit 758120f
1 file changed
Lines changed: 48 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
| |||
947 | 950 | | |
948 | 951 | | |
949 | 952 | | |
950 | | - | |
| 953 | + | |
951 | 954 | | |
952 | | - | |
953 | | - | |
| 955 | + | |
| 956 | + | |
954 | 957 | | |
955 | 958 | | |
956 | 959 | | |
| |||
2761 | 2764 | | |
2762 | 2765 | | |
2763 | 2766 | | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
2764 | 2772 | | |
2765 | 2773 | | |
2766 | 2774 | | |
| |||
2875 | 2883 | | |
2876 | 2884 | | |
2877 | 2885 | | |
| 2886 | + | |
| 2887 | + | |
2878 | 2888 | | |
2879 | 2889 | | |
2880 | 2890 | | |
| |||
2900 | 2910 | | |
2901 | 2911 | | |
2902 | 2912 | | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
2903 | 2929 | | |
2904 | 2930 | | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
2905 | 2940 | | |
2906 | 2941 | | |
2907 | 2942 | | |
| |||
2921 | 2956 | | |
2922 | 2957 | | |
2923 | 2958 | | |
| 2959 | + | |
| 2960 | + | |
2924 | 2961 | | |
2925 | 2962 | | |
2926 | 2963 | | |
2927 | 2964 | | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
2928 | 2970 | | |
2929 | 2971 | | |
2930 | 2972 | | |
| |||
2937 | 2979 | | |
2938 | 2980 | | |
2939 | 2981 | | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
2940 | 2985 | | |
2941 | 2986 | | |
2942 | 2987 | | |
| |||
0 commit comments