All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Nori, Sekhar" <nsekhar@ti.com>
Cc: Ben Gardiner <bengardiner@nanometrics.ca>,
	"davinci-linux-open-source@linux.davincidsp.com"
	<davinci-linux-open-source@linux.davincidsp.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	"Govindarajan, Sriramakrishnan" <srk@ti.com>,
	Paul Mundt <lethal@linux-sh.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Alexander Clouter <alex@digriz.org.uk>,
	Chris Cordahi <christophercordahi@nanometrics.ca>
Subject: Re: [PATCH v2 2/4] da850-evm: add UI Expander pushbuttons
Date: Tue, 23 Nov 2010 07:48:21 -0800	[thread overview]
Message-ID: <8739qshwhm.fsf@deeprootsystems.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB5930247931247@dbde02.ent.ti.com> (Sekhar Nori's message of "Tue, 23 Nov 2010 18:08:22 +0530")

"Nori, Sekhar" <nsekhar@ti.com> writes:

> Hi Ben,
>
> On Mon, Nov 22, 2010 at 19:20:48, Ben Gardiner wrote:
>> On Mon, Nov 22, 2010 at 6:49 AM, Nori, Sekhar <nsekhar@ti.com> wrote:
>> > On Fri, Nov 19, 2010 at 21:08:10, Ben Gardiner wrote:
>> >> [...]
>> >> By setting INPUT_POLLDEV default for the da850-evm users will get
>> >> functioning pushbuttons and switches with the default config but they
>> >> will be able to disable INPUT_POLLDEV or gpio-keys drivers in their
>> >> defconfig at their convenience.
>> >
>> > I guess we could also just modify the defconfig to switch on
>> > INPUT_POLLDEV? Since only gpio-keys functionality is affected
>> > by not enabling the correct options in kernel, it should be OK.
>>
>> Yes -- only gpio-keys is affected but enabling the option does
>> introduce an additional .o file:
>>
>> drivers/input/Makefile:obj-$(CONFIG_INPUT_POLLDEV)      += input-polldev.o
>>
>> I agree that in its current state a user couls inadvertently disable
>> the gpio-keys support on da850-evm simply by disabling INPUT_POLLDEV
>> -- which is less than Ideal. How about I replace the current changes
>> to arch/arm/mach-davinci/Kconfig with:
>>
>> config KEYBOARD_GPIO
>>         default MACH_DAVINCI_DA850_EVM
>>         select INPUT_POLLDEV
>>
>> So 1) gpio-keys functionality is default for the da850evm and 2)
>> whenever gpio-keys is enabled so is INPUT_POLLDEV.
>
> This looks better than what was posted earlier, but I am not
> sure if platforms should influence driver configuration this
> way.

Agreed.  In general, we should not have machine/platform specific
conditionals in generic Kconfigs.   Generally, this should be handled in
machine/platform specific Kconfigs.

Kevin


> I guess I am just afraid that this makes a precedent for
> many driver config symbols to get replicated in the platform
> Kconfig files.
>
> Lets see if others have an opinion on this.
>
> Thanks,
> Sekhar

WARNING: multiple messages have this Message-ID (diff)
From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Nori\, Sekhar" <nsekhar@ti.com>
Cc: Ben Gardiner <bengardiner@nanometrics.ca>,
	"davinci-linux-open-source\@linux.davincidsp.com" 
	<davinci-linux-open-source@linux.davincidsp.com>,
	"linux-input\@vger.kernel.org" <linux-input@vger.kernel.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>, "Govindarajan\,
	Sriramakrishnan" <srk@ti.com>, Paul Mundt <lethal@linux-sh.org>,
	"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Alexander Clouter <alex@digriz.org.uk>,
	Chris Cordahi <christophercordahi@nanometrics.ca>
Subject: Re: [PATCH v2 2/4] da850-evm: add UI Expander pushbuttons
Date: Tue, 23 Nov 2010 07:48:21 -0800	[thread overview]
Message-ID: <8739qshwhm.fsf@deeprootsystems.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB5930247931247@dbde02.ent.ti.com> (Sekhar Nori's message of "Tue, 23 Nov 2010 18:08:22 +0530")

"Nori, Sekhar" <nsekhar@ti.com> writes:

> Hi Ben,
>
> On Mon, Nov 22, 2010 at 19:20:48, Ben Gardiner wrote:
>> On Mon, Nov 22, 2010 at 6:49 AM, Nori, Sekhar <nsekhar@ti.com> wrote:
>> > On Fri, Nov 19, 2010 at 21:08:10, Ben Gardiner wrote:
>> >> [...]
>> >> By setting INPUT_POLLDEV default for the da850-evm users will get
>> >> functioning pushbuttons and switches with the default config but they
>> >> will be able to disable INPUT_POLLDEV or gpio-keys drivers in their
>> >> defconfig at their convenience.
>> >
>> > I guess we could also just modify the defconfig to switch on
>> > INPUT_POLLDEV? Since only gpio-keys functionality is affected
>> > by not enabling the correct options in kernel, it should be OK.
>>
>> Yes -- only gpio-keys is affected but enabling the option does
>> introduce an additional .o file:
>>
>> drivers/input/Makefile:obj-$(CONFIG_INPUT_POLLDEV)      += input-polldev.o
>>
>> I agree that in its current state a user couls inadvertently disable
>> the gpio-keys support on da850-evm simply by disabling INPUT_POLLDEV
>> -- which is less than Ideal. How about I replace the current changes
>> to arch/arm/mach-davinci/Kconfig with:
>>
>> config KEYBOARD_GPIO
>>         default MACH_DAVINCI_DA850_EVM
>>         select INPUT_POLLDEV
>>
>> So 1) gpio-keys functionality is default for the da850evm and 2)
>> whenever gpio-keys is enabled so is INPUT_POLLDEV.
>
> This looks better than what was posted earlier, but I am not
> sure if platforms should influence driver configuration this
> way.

Agreed.  In general, we should not have machine/platform specific
conditionals in generic Kconfigs.   Generally, this should be handled in
machine/platform specific Kconfigs.

Kevin


> I guess I am just afraid that this makes a precedent for
> many driver config symbols to get replicated in the platform
> Kconfig files.
>
> Lets see if others have an opinion on this.
>
> Thanks,
> Sekhar

  parent reply	other threads:[~2010-11-23 15:48 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1289835508.git.bengardiner@nanometrics.ca>
     [not found] ` <8891d088e9a16122c780f737b1b1ec35f9517c36.1289835508.git.bengardiner@nanometrics.ca>
2010-11-16  9:36   ` [PATCH 1/4] input: gpio_keys: polling mode support Paul Mundt
2010-11-16 18:28     ` Ben Gardiner
     [not found] ` <cover.1289835508.git.bengardiner-ScDXFp4xN3PN+rMO2ozGnw@public.gmane.org>
2010-11-16 19:39   ` [PATCH v2 0/4] da850-evm: add gpio-{keys, leds} for UI and BB expanders Ben Gardiner
2010-11-16 19:39     ` [PATCH v2 0/4] da850-evm: add gpio-{keys,leds} " Ben Gardiner
2010-11-16 19:39     ` [PATCH v2 1/4] input: gpio_keys: polling mode support Ben Gardiner
2010-11-16 19:39     ` [PATCH v2 2/4] da850-evm: add UI Expander pushbuttons Ben Gardiner
2010-11-19  9:58       ` Nori, Sekhar
2010-11-19  9:58         ` Nori, Sekhar
2010-11-19 15:38         ` Ben Gardiner
2010-11-19 15:38           ` Ben Gardiner
2010-11-22 11:49           ` Nori, Sekhar
2010-11-22 13:50             ` Ben Gardiner
2010-11-23 12:38               ` Nori, Sekhar
2010-11-23 13:29                 ` Ben Gardiner
2010-11-23 13:29                   ` Ben Gardiner
2010-11-23 15:48                 ` Kevin Hilman [this message]
2010-11-23 15:48                   ` Kevin Hilman
2010-11-23 17:58                   ` Ben Gardiner
2010-11-23 17:58                     ` Ben Gardiner
2010-11-24  6:09                   ` Paul Mundt
2010-11-24 17:17                     ` Ben Gardiner
2010-11-24 17:17                       ` Ben Gardiner
     [not found]     ` <cover.1289935504.git.bengardiner-ScDXFp4xN3PN+rMO2ozGnw@public.gmane.org>
2010-11-16 19:39       ` [PATCH v2 3/4] da850-evm: extract defines for SEL{A, B, C} pins in UI expander Ben Gardiner
2010-11-16 19:39         ` [PATCH v2 3/4] da850-evm: extract defines for SEL{A,B,C} " Ben Gardiner
2010-11-19 11:19         ` [PATCH v2 3/4] da850-evm: extract defines for SEL{A, B, C} " Nori, Sekhar
2010-11-19 11:19           ` Nori, Sekhar
2010-11-19 15:38           ` Ben Gardiner
2010-11-16 19:39     ` [PATCH v2 4/4] da850-evm: add baseboard UI expander buttons, switches and LEDs Ben Gardiner
2010-11-19 12:14       ` Nori, Sekhar
2010-11-19 12:14         ` Nori, Sekhar
2010-11-19 15:40         ` Ben Gardiner
2010-11-19 15:40           ` Ben Gardiner
2010-11-19 17:02           ` Dmitry Torokhov
2010-11-19 17:02             ` Dmitry Torokhov
2010-11-19 17:15             ` Ben Gardiner
2010-11-22 12:00           ` Nori, Sekhar
2010-11-22 14:15             ` Ben Gardiner
     [not found]               ` <AANLkTin8+y0xkjv+RmnSZNKXgfwr2iV3c9P7cBMfVw3k-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-23 12:42                 ` Nori, Sekhar
2010-11-23 12:42                   ` Nori, Sekhar
2010-11-23 13:32                   ` Ben Gardiner
2010-11-19 21:37     ` [PATCH v3 0/4] da850-evm: add gpio-{keys,leds} for UI and BB expanders Ben Gardiner
2010-11-19 21:37       ` [PATCH v3 1/4] input: gpio_keys: polling mode support Ben Gardiner
2010-11-19 21:37       ` [PATCH v3 2/4] da850-evm: add UI Expander pushbuttons Ben Gardiner
2010-11-19 21:37       ` [PATCH v3 3/4] da850-evm: extract defines for SEL{A,B,C} pins in UI expander Ben Gardiner
2010-11-19 21:41         ` [PATCH v3 3/4] da850-evm: extract defines for SEL{A, B, C} " Victor Rodriguez
2010-11-19 21:41           ` Victor Rodriguez
     [not found]           ` <AANLkTimOByqsZjCYoz=pjwT7jcgN76Sgi4W6SFJ9+N-d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-19 22:25             ` Ben Gardiner
2010-11-19 22:25               ` Ben Gardiner
2010-11-19 21:37       ` [PATCH v3 4/4] da850-evm: add baseboard GPIO expander buttons, switches and LEDs Ben Gardiner
2010-11-23 19:40       ` [PATCH v4 0/5] da850-evm: add gpio-{keys,leds} for UI and BB expanders Ben Gardiner
     [not found]         ` <cover.1290540916.git.bengardiner-ScDXFp4xN3PN+rMO2ozGnw@public.gmane.org>
2010-11-23 19:40           ` [PATCH v4 1/5] input: gpio_keys: polling mode support Ben Gardiner
2010-11-23 19:40             ` Ben Gardiner
2010-11-23 19:40         ` [PATCH v4 2/5] da850-evm: add UI Expander pushbuttons Ben Gardiner
2010-11-23 19:40           ` Ben Gardiner
2010-11-24 13:16           ` Nori, Sekhar
2010-11-24 13:16             ` Nori, Sekhar
2010-11-24 17:16             ` Ben Gardiner
2010-11-24 17:16               ` Ben Gardiner
2010-11-23 19:40         ` [PATCH v4 3/5] da850-evm: extract defines for SEL{A,B,C} pins in UI expander Ben Gardiner
2010-11-23 19:40         ` [PATCH v4 4/5] da850-evm: add baseboard GPIO expander buttons, switches and LEDs Ben Gardiner
2010-11-23 19:41         ` [PATCH v4 5/5] da850-evm: KEYBOARD_GPIO and INPUT_POLLDEV Kconfig conditionals Ben Gardiner
2010-11-23 19:41           ` Ben Gardiner
2010-11-24 21:59         ` [PATCH v5 0/5] da850-evm: add gpio-{keys,leds} for UI and BB expanders Ben Gardiner
2010-11-24 21:59           ` [PATCH v5 1/5] [WIP] input: add input driver for polled GPIO buttons Ben Gardiner
2010-11-24 21:59             ` Ben Gardiner
2010-11-24 21:59           ` [PATCH v5 2/5] da850-evm: add UI Expander pushbuttons Ben Gardiner
2010-11-24 21:59             ` Ben Gardiner
2010-11-24 21:59           ` [PATCH v5 3/5] da850-evm: extract defines for SEL{A,B,C} pins in UI expander Ben Gardiner
2010-11-24 21:59           ` [PATCH v5 4/5] da850-evm: add baseboard GPIO expander buttons, switches and LEDs Ben Gardiner
2010-11-24 21:59           ` [PATCH v5 5/5] da850-evm: KEYBOARD_GPIO_POLLED Kconfig conditional Ben Gardiner
2010-11-24 21:59             ` Ben Gardiner
2010-12-09 21:51           ` [PATCH v6 0/5] da850-evm: add gpio-{keys,leds} for UI and BB expanders Ben Gardiner
     [not found]             ` <cover.1291931041.git.bengardiner-ScDXFp4xN3PN+rMO2ozGnw@public.gmane.org>
2010-12-09 21:51               ` [PATCH v6 1/5] Input: add input driver for polled GPIO buttons Ben Gardiner
2010-12-09 21:51                 ` Ben Gardiner
2010-12-10 15:50                 ` Kevin Hilman
2010-12-09 21:51             ` [PATCH v6 2/5] da850-evm: add UI Expander pushbuttons Ben Gardiner
2010-12-09 21:51               ` Ben Gardiner
2010-12-09 21:51             ` [PATCH v6 3/5] da850-evm: extract defines for SEL{A,B,C} pins in UI expander Ben Gardiner
2010-12-09 21:51             ` [PATCH v6 4/5] da850-evm: add baseboard GPIO expander buttons, switches and LEDs Ben Gardiner
2010-12-09 21:51             ` [PATCH v6 5/5] da850-evm: KEYBOARD_GPIO_POLLED Kconfig conditional Ben Gardiner
2010-12-09 21:51               ` Ben Gardiner
2010-12-10 16:16             ` [PATCH v6 0/5] da850-evm: add gpio-{keys,leds} for UI and BB expanders Kevin Hilman
2010-12-10 16:33               ` Ben Gardiner
2010-12-10 16:33                 ` Ben Gardiner
2010-12-11  0:04                 ` Kevin Hilman
2010-12-11  0:04                   ` Kevin Hilman
2010-12-13 17:02                 ` Ben Gardiner
2010-12-13 17:02                   ` Ben Gardiner
     [not found]                   ` <AANLkTi=HiJGwtznGRzFDz-4ywsB3rYPW0yF5U_RUruzV-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-13 21:53                     ` [PATCH v6 0/5] da850-evm: add gpio-{keys, leds} " Kevin Hilman
2010-12-13 21:53                       ` [PATCH v6 0/5] da850-evm: add gpio-{keys,leds} " Kevin Hilman
2010-12-14  4:31                       ` Ben Gardiner
2010-12-14  4:31                         ` Ben Gardiner
2010-12-14 16:17                       ` Ben Gardiner
2010-12-14 17:10                         ` Kevin Hilman
2010-12-17 15:15                           ` Ben Gardiner

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=8739qshwhm.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=alex@digriz.org.uk \
    --cc=bengardiner@nanometrics.ca \
    --cc=christophercordahi@nanometrics.ca \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=srk@ti.com \
    /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.