* [PATCH 13/22] input: omap: void using mach/*.h headers [not found] <20190808212234.2213262-1-arnd@arndb.de> @ 2019-08-08 21:22 ` Arnd Bergmann 2019-08-08 21:42 ` Dmitry Torokhov 0 siblings, 1 reply; 6+ messages in thread From: Arnd Bergmann @ 2019-08-08 21:22 UTC (permalink / raw) To: Tony Lindgren, Aaro Koskinen, Dmitry Torokhov Cc: linux-omap, linux-arm-kernel, Greg Kroah-Hartman, Linus Walleij, Bartlomiej Zolnierkiewicz, Tomi Valkeinen, Arnd Bergmann, linux-input, linux-kernel By using the new linux/soc/ti/omap1-io.h header instead, compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM conversion of omap1 may eventually be possible. The warning in the header file gets removed in order to allow CONFIG_COMPILE_TEST. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/input/keyboard/Kconfig | 2 +- drivers/input/keyboard/omap-keypad.c | 1 + include/linux/platform_data/keypad-omap.h | 5 ----- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index 5f1a3b3ee0fb..b454d262906b 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -658,7 +658,7 @@ config KEYBOARD_IPAQ_MICRO config KEYBOARD_OMAP tristate "TI OMAP keypad support" - depends on ARCH_OMAP1 + depends on ARCH_OMAP1 || COMPILE_TEST select INPUT_MATRIXKMAP help Say Y here if you want to use the OMAP keypad. diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index 5fe7a5633e33..31da8e878535 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -24,6 +24,7 @@ #include <linux/gpio.h> #include <linux/platform_data/gpio-omap.h> #include <linux/platform_data/keypad-omap.h> +#include <linux/soc/ti/omap1-io.h> #undef NEW_BOARD_LEARNING_MODE diff --git a/include/linux/platform_data/keypad-omap.h b/include/linux/platform_data/keypad-omap.h index 3e7c64c854f4..6f058eb188c4 100644 --- a/include/linux/platform_data/keypad-omap.h +++ b/include/linux/platform_data/keypad-omap.h @@ -5,11 +5,6 @@ #ifndef __KEYPAD_OMAP_H #define __KEYPAD_OMAP_H -#ifndef CONFIG_ARCH_OMAP1 -#warning Please update the board to use matrix-keypad driver -#define omap_readw(reg) 0 -#define omap_writew(val, reg) do {} while (0) -#endif #include <linux/input/matrix_keypad.h> struct omap_kp_platform_data { -- 2.20.0 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 13/22] input: omap: void using mach/*.h headers 2019-08-08 21:22 ` [PATCH 13/22] input: omap: void using mach/*.h headers Arnd Bergmann @ 2019-08-08 21:42 ` Dmitry Torokhov 2019-08-08 21:46 ` Arnd Bergmann 0 siblings, 1 reply; 6+ messages in thread From: Dmitry Torokhov @ 2019-08-08 21:42 UTC (permalink / raw) To: Arnd Bergmann Cc: Tony Lindgren, Aaro Koskinen, linux-omap, linux-arm-kernel, Greg Kroah-Hartman, Linus Walleij, Bartlomiej Zolnierkiewicz, Tomi Valkeinen, linux-input, linux-kernel Hi Arnd, On Thu, Aug 08, 2019 at 11:22:22PM +0200, Arnd Bergmann wrote: > By using the new linux/soc/ti/omap1-io.h header instead, > compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM > conversion of omap1 may eventually be possible. > > The warning in the header file gets removed in order to > allow CONFIG_COMPILE_TEST. Given that we want to migrate people off this driver everywhere but OMAP1 I wonder why we would want to improve compile coverage of it. Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 13/22] input: omap: void using mach/*.h headers 2019-08-08 21:42 ` Dmitry Torokhov @ 2019-08-08 21:46 ` Arnd Bergmann 2019-08-08 22:19 ` Dmitry Torokhov 0 siblings, 1 reply; 6+ messages in thread From: Arnd Bergmann @ 2019-08-08 21:46 UTC (permalink / raw) To: Dmitry Torokhov Cc: Aaro Koskinen, Tony Lindgren, Greg Kroah-Hartman, Linus Walleij, Bartlomiej Zolnierkiewicz, Linux Kernel Mailing List, Tomi Valkeinen, open list:HID CORE LAYER, linux-omap, Linux ARM On Thu, Aug 8, 2019 at 11:43 PM Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > > Hi Arnd, > > On Thu, Aug 08, 2019 at 11:22:22PM +0200, Arnd Bergmann wrote: > > By using the new linux/soc/ti/omap1-io.h header instead, > > compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM > > conversion of omap1 may eventually be possible. > > > > The warning in the header file gets removed in order to > > allow CONFIG_COMPILE_TEST. > > Given that we want to migrate people off this driver everywhere but > OMAP1 I wonder why we would want to improve compile coverage of it. Mainly for consistency: I'm converting all omap1 drivers in this series to not rely on mach/* headers and to let them be compiled standalone. The other drivers don't have a replacement, so I could treat this different from the rest and skip the Kconfig and platform_data changes if you prefer. Arnd ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 13/22] input: omap: void using mach/*.h headers 2019-08-08 21:46 ` Arnd Bergmann @ 2019-08-08 22:19 ` Dmitry Torokhov 2019-08-08 23:39 ` Sebastian Reichel 0 siblings, 1 reply; 6+ messages in thread From: Dmitry Torokhov @ 2019-08-08 22:19 UTC (permalink / raw) To: Arnd Bergmann Cc: Tony Lindgren, Aaro Koskinen, linux-omap, Linux ARM, Greg Kroah-Hartman, Linus Walleij, Bartlomiej Zolnierkiewicz, Tomi Valkeinen, open list:HID CORE LAYER, Linux Kernel Mailing List On Thu, Aug 08, 2019 at 11:46:45PM +0200, Arnd Bergmann wrote: > On Thu, Aug 8, 2019 at 11:43 PM Dmitry Torokhov > <dmitry.torokhov@gmail.com> wrote: > > > > Hi Arnd, > > > > On Thu, Aug 08, 2019 at 11:22:22PM +0200, Arnd Bergmann wrote: > > > By using the new linux/soc/ti/omap1-io.h header instead, > > > compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM > > > conversion of omap1 may eventually be possible. > > > > > > The warning in the header file gets removed in order to > > > allow CONFIG_COMPILE_TEST. > > > > Given that we want to migrate people off this driver everywhere but > > OMAP1 I wonder why we would want to improve compile coverage of it. > > Mainly for consistency: I'm converting all omap1 drivers in this series to > not rely on mach/* headers and to let them be compiled standalone. > The other drivers don't have a replacement, so I could treat this different > from the rest and skip the Kconfig and platform_data changes if you > prefer. Yes, because at least with the version you posted we are losing the #warning telling people to move to matrix_keypad. We could do: #ifndef CONFIG_COMPILE_TEST #warning ... #endif if you really want to allow compiling standalone for testing. Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 13/22] input: omap: void using mach/*.h headers 2019-08-08 22:19 ` Dmitry Torokhov @ 2019-08-08 23:39 ` Sebastian Reichel 2019-08-09 11:23 ` Arnd Bergmann 0 siblings, 1 reply; 6+ messages in thread From: Sebastian Reichel @ 2019-08-08 23:39 UTC (permalink / raw) To: Dmitry Torokhov Cc: Arnd Bergmann, Aaro Koskinen, Tony Lindgren, Greg Kroah-Hartman, Linus Walleij, Bartlomiej Zolnierkiewicz, Linux Kernel Mailing List, Tomi Valkeinen, open list:HID CORE LAYER, linux-omap, Linux ARM [-- Attachment #1: Type: text/plain, Size: 1631 bytes --] Hi, On Thu, Aug 08, 2019 at 03:19:50PM -0700, Dmitry Torokhov wrote: > On Thu, Aug 08, 2019 at 11:46:45PM +0200, Arnd Bergmann wrote: > > On Thu, Aug 8, 2019 at 11:43 PM Dmitry Torokhov wrote: > > > On Thu, Aug 08, 2019 at 11:22:22PM +0200, Arnd Bergmann wrote: > > > > By using the new linux/soc/ti/omap1-io.h header instead, > > > > compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM > > > > conversion of omap1 may eventually be possible. > > > > > > > > The warning in the header file gets removed in order to > > > > allow CONFIG_COMPILE_TEST. > > > > > > Given that we want to migrate people off this driver everywhere but > > > OMAP1 I wonder why we would want to improve compile coverage of it. > > > > Mainly for consistency: I'm converting all omap1 drivers in this series to > > not rely on mach/* headers and to let them be compiled standalone. > > The other drivers don't have a replacement, so I could treat this different > > from the rest and skip the Kconfig and platform_data changes if you > > prefer. > > Yes, because at least with the version you posted we are losing the > #warning telling people to move to matrix_keypad. We could do: > > #ifndef CONFIG_COMPILE_TEST > #warning ... > #endif > > if you really want to allow compiling standalone for testing. FWIW the driver depends on ARCH_OMAP1 and the warning is only printed for !ARCH_OMAP1. In other words: The warning is never printed at the moment. All OMAP2+ boards moved to matrix-keypad long time ago and the driver does not support OMAP2+ anymore since f799a3d8fe170 from 2012. -- Sebastian [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 13/22] input: omap: void using mach/*.h headers 2019-08-08 23:39 ` Sebastian Reichel @ 2019-08-09 11:23 ` Arnd Bergmann 0 siblings, 0 replies; 6+ messages in thread From: Arnd Bergmann @ 2019-08-09 11:23 UTC (permalink / raw) To: Sebastian Reichel Cc: Dmitry Torokhov, Aaro Koskinen, Tony Lindgren, Greg Kroah-Hartman, Linus Walleij, Bartlomiej Zolnierkiewicz, Linux Kernel Mailing List, Tomi Valkeinen, open list:HID CORE LAYER, linux-omap, Linux ARM On Fri, Aug 9, 2019 at 1:39 AM Sebastian Reichel <sre@kernel.org> wrote: > On Thu, Aug 08, 2019 at 03:19:50PM -0700, Dmitry Torokhov wrote: > > On Thu, Aug 08, 2019 at 11:46:45PM +0200, Arnd Bergmann wrote: > > > On Thu, Aug 8, 2019 at 11:43 PM Dmitry Torokhov wrote: > > > > On Thu, Aug 08, 2019 at 11:22:22PM +0200, Arnd Bergmann wrote: > > > > > By using the new linux/soc/ti/omap1-io.h header instead, > > > > > compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM > > > > > conversion of omap1 may eventually be possible. > > > > > > > > > > The warning in the header file gets removed in order to > > > > > allow CONFIG_COMPILE_TEST. > > > > > > > > Given that we want to migrate people off this driver everywhere but > > > > OMAP1 I wonder why we would want to improve compile coverage of it. > > > > > > Mainly for consistency: I'm converting all omap1 drivers in this series to > > > not rely on mach/* headers and to let them be compiled standalone. > > > The other drivers don't have a replacement, so I could treat this different > > > from the rest and skip the Kconfig and platform_data changes if you > > > prefer. > > > > Yes, because at least with the version you posted we are losing the > > #warning telling people to move to matrix_keypad. We could do: > > > > #ifndef CONFIG_COMPILE_TEST > > #warning ... > > #endif > > > > if you really want to allow compiling standalone for testing. No, I'll just drop the compile-test portion and leave the warning untouched, leaving only the header file include as a preparation for multiplatform support then. > FWIW the driver depends on ARCH_OMAP1 and the warning is > only printed for !ARCH_OMAP1. In other words: The warning > is never printed at the moment. All OMAP2+ boards moved to > matrix-keypad long time ago and the driver does not support > OMAP2+ anymore since f799a3d8fe170 from 2012. Right, it also seems extremely unlikely that any new platform would start using the header, and it also doesn't look like anyone is interested in moving omap1 over to matrix-keypad. Arnd ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-08-09 11:23 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20190808212234.2213262-1-arnd@arndb.de> 2019-08-08 21:22 ` [PATCH 13/22] input: omap: void using mach/*.h headers Arnd Bergmann 2019-08-08 21:42 ` Dmitry Torokhov 2019-08-08 21:46 ` Arnd Bergmann 2019-08-08 22:19 ` Dmitry Torokhov 2019-08-08 23:39 ` Sebastian Reichel 2019-08-09 11:23 ` Arnd Bergmann
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).