All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shridhar Rasal <srasal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Dmitry Torokhov
	<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"rydberg-Hk7bIW8heu4wFerOooGFRg@public.gmane.org"
	<rydberg-Hk7bIW8heu4wFerOooGFRg@public.gmane.org>,
	Rakesh Iyer <riyer-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 1/1] input: keyboard: Set configuration registers
Date: Tue, 27 Mar 2012 10:47:16 +0530	[thread overview]
Message-ID: <4F714D5C.1050400@nvidia.com> (raw)
In-Reply-To: <20120131194735.GA22872-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>

On 02/01/2012 01:17 AM, Dmitry Torokhov wrote:
> On Tue, Jan 31, 2012 at 11:29:35AM -0800, Stephen Warren wrote:
>> Dmitry Torokhov wrote at Tuesday, January 31, 2012 12:09 PM:
>>> On Thu, Dec 29, 2011 at 07:25:59PM -0800, Dmitry Torokhov wrote:
>>>> On Fri, Dec 09, 2011 at 03:17:54PM -0800, Stephen Warren wrote:
>>>>> Dmitry Torokhov wrote at Friday, December 09, 2011 2:25 PM:
>>>>>> On Friday, December 09, 2011 12:10:43 PM Stephen Warren wrote:
>>>>>>> Shridhar Rasal wrote at Friday, December 09, 2011 12:29 AM:
>>>>>>>> To: dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>>>>>>>> Cc: rydberg-Hk7bIW8heu4wFerOooGFRg@public.gmane.org; Stephen Warren; Rakesh Iyer;
>>>>>>>> linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux- input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org;
>>>>>>>> linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Shridhar Rasal Subject: [PATCH 1/1] input:
>>>>>>>> keyboard: Set configuration registers
>>>>>>>>
>>>>>>>> -Set only REQUIRED row and column configuration register to
>>>>>>>> PROPER values to avoid continuously generating KBC input events.
>>>>>>>> -Use *en* field in pin_cfg, to check GPIO_x_ROW_EN register
>>>>>>>> should be set or clear.
>>>>>>>>
>>>>>>>> Signed-off-by: Shridhar Rasal<srasal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>>>>>> I wondered if num==0 could be used instead of a new en field, but 0 is a
>>>>>>> valid row/column number, so no. As such,
>>>>>>>
>>>>>>> Acked-by: Stephen Warren<swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>>>>> Can we pass in number of pin_cfg instances in pdata and simply do not
>>>>>> mention unneeded pins instead?
>>>>> IIUC, the array is currently a fixed size (based on the set of pins
>>>>> Supported by the KBC), hence that won't work; there's an entry for each
>>>>> pin saying which row/column it is.
>>>>>
>>>>> However, I suppose if we were to change the structure of the pdata to be:
>>>>>
>>>>> struct tegra_kbc_pin_cfg {
>>>>>      bool is_row;
>>>>>      u8 row_col_id;
>>>>>      u8 pin_id;
>>>>> };
>>>>>
>>>>> Then struct tegra_kbc_platform_data could indeed have a pointer to a
>>>>> variable-sized array of these, which would avoid the "en" member.
>>>>>
>>>> How about we change bool to enum instead, like in the patch below?
>>> *ping*
>> That's conceptually fine by me. I was assuming you were asking Rakesh...
> Everyone... Anyone ;)
>
>> I'd rather PIN_CFG_IGNORE was the first enum, so it gets value 0, or this
>> probably won't solve the original issue?
> The benefit of current definition is that it is compatible with old
> ones using bool...
>
> Thanks.
Sorry for delay in response.
I am OK with new definition. Agree, makes compatible with old definitions.
Thanks!

WARNING: multiple messages have this Message-ID (diff)
From: Shridhar Rasal <srasal@nvidia.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Stephen Warren <swarren@nvidia.com>,
	"rydberg@euromail.se" <rydberg@euromail.se>,
	Rakesh Iyer <riyer@nvidia.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH 1/1] input: keyboard: Set configuration registers
Date: Tue, 27 Mar 2012 10:47:16 +0530	[thread overview]
Message-ID: <4F714D5C.1050400@nvidia.com> (raw)
In-Reply-To: <20120131194735.GA22872@core.coreip.homeip.net>

On 02/01/2012 01:17 AM, Dmitry Torokhov wrote:
> On Tue, Jan 31, 2012 at 11:29:35AM -0800, Stephen Warren wrote:
>> Dmitry Torokhov wrote at Tuesday, January 31, 2012 12:09 PM:
>>> On Thu, Dec 29, 2011 at 07:25:59PM -0800, Dmitry Torokhov wrote:
>>>> On Fri, Dec 09, 2011 at 03:17:54PM -0800, Stephen Warren wrote:
>>>>> Dmitry Torokhov wrote at Friday, December 09, 2011 2:25 PM:
>>>>>> On Friday, December 09, 2011 12:10:43 PM Stephen Warren wrote:
>>>>>>> Shridhar Rasal wrote at Friday, December 09, 2011 12:29 AM:
>>>>>>>> To: dmitry.torokhov@gmail.com
>>>>>>>> Cc: rydberg@euromail.se; Stephen Warren; Rakesh Iyer;
>>>>>>>> linux-kernel@vger.kernel.org; linux- input@vger.kernel.org;
>>>>>>>> linux-tegra@vger.kernel.org; Shridhar Rasal Subject: [PATCH 1/1] input:
>>>>>>>> keyboard: Set configuration registers
>>>>>>>>
>>>>>>>> -Set only REQUIRED row and column configuration register to
>>>>>>>> PROPER values to avoid continuously generating KBC input events.
>>>>>>>> -Use *en* field in pin_cfg, to check GPIO_x_ROW_EN register
>>>>>>>> should be set or clear.
>>>>>>>>
>>>>>>>> Signed-off-by: Shridhar Rasal<srasal@nvidia.com>
>>>>>>> I wondered if num==0 could be used instead of a new en field, but 0 is a
>>>>>>> valid row/column number, so no. As such,
>>>>>>>
>>>>>>> Acked-by: Stephen Warren<swarren@nvidia.com>
>>>>>> Can we pass in number of pin_cfg instances in pdata and simply do not
>>>>>> mention unneeded pins instead?
>>>>> IIUC, the array is currently a fixed size (based on the set of pins
>>>>> Supported by the KBC), hence that won't work; there's an entry for each
>>>>> pin saying which row/column it is.
>>>>>
>>>>> However, I suppose if we were to change the structure of the pdata to be:
>>>>>
>>>>> struct tegra_kbc_pin_cfg {
>>>>>      bool is_row;
>>>>>      u8 row_col_id;
>>>>>      u8 pin_id;
>>>>> };
>>>>>
>>>>> Then struct tegra_kbc_platform_data could indeed have a pointer to a
>>>>> variable-sized array of these, which would avoid the "en" member.
>>>>>
>>>> How about we change bool to enum instead, like in the patch below?
>>> *ping*
>> That's conceptually fine by me. I was assuming you were asking Rakesh...
> Everyone... Anyone ;)
>
>> I'd rather PIN_CFG_IGNORE was the first enum, so it gets value 0, or this
>> probably won't solve the original issue?
> The benefit of current definition is that it is compatible with old
> ones using bool...
>
> Thanks.
Sorry for delay in response.
I am OK with new definition. Agree, makes compatible with old definitions.
Thanks!


  parent reply	other threads:[~2012-03-27  5:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09  7:29 [PATCH 1/1] input: keyboard: Set configuration registers Shridhar Rasal
2011-12-09 20:10 ` Stephen Warren
2011-12-09 21:25   ` Dmitry Torokhov
2011-12-09 23:17     ` Stephen Warren
     [not found]       ` <74CDBE0F657A3D45AFBB94109FB122FF17518605E5-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-30  3:25         ` Dmitry Torokhov
2011-12-30  3:25           ` Dmitry Torokhov
2012-01-31 19:09           ` Dmitry Torokhov
2012-01-31 19:29             ` Stephen Warren
2012-01-31 19:47               ` Dmitry Torokhov
2012-01-31 19:51                 ` Stephen Warren
     [not found]                 ` <20120131194735.GA22872-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2012-03-27  5:17                   ` Shridhar Rasal [this message]
2012-03-27  5:17                     ` Shridhar Rasal
     [not found]                     ` <4F714D5C.1050400-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-03-27 15:22                       ` Stephen Warren
2012-03-27 15:22                         ` Stephen Warren
2012-03-29 15:49                         ` Stephen Warren

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=4F714D5C.1050400@nvidia.com \
    --to=srasal-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
    --cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=riyer-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=rydberg-Hk7bIW8heu4wFerOooGFRg@public.gmane.org \
    --cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.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.