From: Henrik Rydberg <rydberg@euromail.se>
To: Naveen Kumar GADDIPATI <naveen.gaddipati@stericsson.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
STEricsson_nomadik_linux <STEricsson_nomadik_linux@list.st.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"tsoni@codeaurora.org" <tsoni@codeaurora.org>
Subject: Re: [PATCHv5] input: ROHM BU21013 touch panel controller support
Date: Mon, 04 Oct 2010 08:33:41 +0200 [thread overview]
Message-ID: <4CA97545.70103@euromail.se> (raw)
In-Reply-To: <81C3A93C17462B4BBD7E272753C1057919238FA5CA@EXDCVYMBSTM005.EQ1STM.local>
On 10/04/2010 07:15 AM, Naveen Kumar GADDIPATI wrote:
[...]
>>> + has_x_sensors = hweight32(buf[0] & BU21013_SENSORS_EN_0_7);
>>> + has_y_sensors = hweight32(((buf[1] & BU21013_SENSORS_EN_8_15) |
>>> + ((buf[2] & BU21013_SENSORS_EN_16_23) << SHIFT_8)) >>
>> SHIFT_2);
>>
>>
>> The bitcounting hweight32 can actually be removed here.
>>
> This register values of touch controller used to know the valid touch.
> Otherwise we need do the calculate the co-ordinates and then decide to ignore.
>
>>> + if (!has_x_sensors || !has_y_sensors)
>>> + return 0;
Testing whether x == 0 or number_of_set_bits(x) == 0 seems pretty equivalent to me.
>
>>> +
>>> + input_set_abs_params(in_dev, ABS_MT_POSITION_X, 0,
>>> + pdata->x_max_res, 0, 0);
>>> + input_set_abs_params(in_dev, ABS_MT_POSITION_Y, 0,
>>> + pdata->y_max_res, 0, 0);
>>> + input_set_abs_params(in_dev, ABS_MT_TOUCH_MAJOR, 0,
>>> + max(pdata->x_max_res , pdata->y_max_res), 0, 0);
>>
>>
>> Same here - no ABS_MT_TOUCH_MAJOR, please.
>>
> According to MT documentation, we need to report this value.
> We observe without this value reporting in Pen down case, Android framework is not recognizing the touch.
The touch_major requirement was relaxed during 2009, after discussions. This
makes me wonder if the driver has been tested against 2.6.36. What is the base
version of that Android kernel, 2.6.29?
Henrik
next prev parent reply other threads:[~2010-10-04 6:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 10:59 [PATCHv5] input: ROHM BU21013 touch panel controller support Naveen Kumar G
2010-10-01 11:19 ` Datta, Shubhrajyoti
2010-10-02 6:24 ` Henrik Rydberg
2010-10-04 5:15 ` Naveen Kumar GADDIPATI
2010-10-04 6:33 ` Henrik Rydberg [this message]
2010-10-02 7:25 ` Henrik Rydberg
2010-10-04 4:52 ` Naveen Kumar GADDIPATI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA97545.70103@euromail.se \
--to=rydberg@euromail.se \
--cc=STEricsson_nomadik_linux@list.st.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=naveen.gaddipati@stericsson.com \
--cc=tsoni@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.