linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Input: tegra-kbc - remove pre Tegra20 definitions
@ 2012-01-17 23:26 Rakesh Iyer
  2012-01-18  0:30 ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Rakesh Iyer @ 2012-01-17 23:26 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: swarren, linux-input, linux-kernel, Rakesh Iyer

Add support for Tegra30 by correcting definitions. This is necessary to
make driver useful in Tegra30.

Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
---
 arch/arm/mach-tegra/include/mach/kbc.h |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-tegra/include/mach/kbc.h b/arch/arm/mach-tegra/include/mach/kbc.h
index 4f3572a..3610568 100644
--- a/arch/arm/mach-tegra/include/mach/kbc.h
+++ b/arch/arm/mach-tegra/include/mach/kbc.h
@@ -24,13 +24,8 @@
 #include <linux/types.h>
 #include <linux/input/matrix_keypad.h>
 
-#ifdef CONFIG_ARCH_TEGRA_2x_SOC
 #define KBC_MAX_GPIO	24
 #define KBC_MAX_KPENT	8
-#else
-#define KBC_MAX_GPIO	20
-#define KBC_MAX_KPENT	7
-#endif
 
 #define KBC_MAX_ROW	16
 #define KBC_MAX_COL	8
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] Input: tegra-kbc - remove pre Tegra20 definitions
  2012-01-17 23:26 [PATCH 1/1] Input: tegra-kbc - remove pre Tegra20 definitions Rakesh Iyer
@ 2012-01-18  0:30 ` Dmitry Torokhov
  2012-01-18 16:36   ` Stephen Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2012-01-18  0:30 UTC (permalink / raw)
  To: Rakesh Iyer; +Cc: swarren, linux-input, linux-kernel

On Tue, Jan 17, 2012 at 03:26:50PM -0800, Rakesh Iyer wrote:
> Add support for Tegra30 by correcting definitions. This is necessary to
> make driver useful in Tegra30.

So what about older versions? There still could be users...

> 
> Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
> ---
>  arch/arm/mach-tegra/include/mach/kbc.h |    5 -----
>  1 files changed, 0 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/mach-tegra/include/mach/kbc.h b/arch/arm/mach-tegra/include/mach/kbc.h
> index 4f3572a..3610568 100644
> --- a/arch/arm/mach-tegra/include/mach/kbc.h
> +++ b/arch/arm/mach-tegra/include/mach/kbc.h
> @@ -24,13 +24,8 @@
>  #include <linux/types.h>
>  #include <linux/input/matrix_keypad.h>
>  
> -#ifdef CONFIG_ARCH_TEGRA_2x_SOC
>  #define KBC_MAX_GPIO	24
>  #define KBC_MAX_KPENT	8
> -#else
> -#define KBC_MAX_GPIO	20
> -#define KBC_MAX_KPENT	7
> -#endif
>  
>  #define KBC_MAX_ROW	16
>  #define KBC_MAX_COL	8
> -- 
> 1.7.4.1
> 

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 1/1] Input: tegra-kbc - remove pre Tegra20 definitions
  2012-01-18  0:30 ` Dmitry Torokhov
@ 2012-01-18 16:36   ` Stephen Warren
  2012-01-18 21:12     ` Stephen Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2012-01-18 16:36 UTC (permalink / raw)
  To: Dmitry Torokhov, Rakesh Iyer; +Cc: linux-input, linux-kernel

Dmitry Torokhov wrote at Tuesday, January 17, 2012 5:30 PM:
> On Tue, Jan 17, 2012 at 03:26:50PM -0800, Rakesh Iyer wrote:
> > Add support for Tegra30 by correcting definitions. This is necessary to
> > make driver useful in Tegra30.
> 
> So what about older versions? There still could be users...

I wonder if there will be problems with this patch; the loop in
tegra_kbc_report_keys() is going to process 8 bits more of the last
register and the loop in tegra_kbc_config_pins() will now touch one
more row and one more column register. I think these loops should be
limited at run-time based on the SoC actually being executed upon?

-- 
nvpublic


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 1/1] Input: tegra-kbc - remove pre Tegra20 definitions
  2012-01-18 16:36   ` Stephen Warren
@ 2012-01-18 21:12     ` Stephen Warren
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2012-01-18 21:12 UTC (permalink / raw)
  To: Stephen Warren, Dmitry Torokhov, Rakesh Iyer; +Cc: linux-input, linux-kernel

Stephen Warren wrote at Wednesday, January 18, 2012 9:36 AM:
> Dmitry Torokhov wrote at Tuesday, January 17, 2012 5:30 PM:
> > On Tue, Jan 17, 2012 at 03:26:50PM -0800, Rakesh Iyer wrote:
> > > Add support for Tegra30 by correcting definitions. This is necessary to
> > > make driver useful in Tegra30.
> >
> > So what about older versions? There still could be users...
> 
> I wonder if there will be problems with this patch; the loop in
> tegra_kbc_report_keys() is going to process 8 bits more of the last
> register and the loop in tegra_kbc_config_pins() will now touch one
> more row and one more column register. I think these loops should be
> limited at run-time based on the SoC actually being executed upon?

Sorry, I read the ifdef the wrong way around. The new values are for
Tegra20 and should have been in use all along. There are no old
versions to consider here, since chips before Tegra20 aren't supported
by mainline (or any??) Linux.

So,

Acked-by: Stephen Warren: <swarren@nvidia.com>

Sorry for the confusion.

-- 
nvpublic


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-18 21:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-17 23:26 [PATCH 1/1] Input: tegra-kbc - remove pre Tegra20 definitions Rakesh Iyer
2012-01-18  0:30 ` Dmitry Torokhov
2012-01-18 16:36   ` Stephen Warren
2012-01-18 21:12     ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).