An error occurred fetching the project authors.
- 18 Sep, 2013 1 commit
-
-
Mike Dunn authored
A NULL pointer dereference exception occurs in the driver probe function when device tree is used. The pdata pointer will be NULL in this case, but the code dereferences it in all cases. When device tree is used, a platform data structure is allocated and initialized, and in all cases this pointer is copied to the driver's private data, so the variable being tested should be accessed through the driver's private data structure. Signed-off-by:
Mike Dunn <mikedunn@newsguy.com> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
- 19 Jun, 2013 4 commits
-
-
Dmitry Torokhov authored
It should not be changed by the driver, so let's make it const pointer. Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
Dmitry Torokhov authored
Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
Chao Xie authored
Signed-off-by:
Chao Xie <chao.xie@marvell.com> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
Chao Xie authored
pxa27x-keypad includes matrix keys. Make use of matrix_keymap for the matrix keys. Signed-off-by:
Chao Xie <chao.xie@marvell.com> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
- 23 May, 2013 1 commit
-
-
Lars-Peter Clausen authored
free_irq() expects the same pointer that was passed to request_irq(), otherwise the IRQ is not freed. The issue was found using the following coccinelle script: <smpl> @r1@ type T; T devid; @@ request_irq(..., devid) @r2@ type r1.T; T devid; position p; @@ free_irq@p(..., devid) @@ position p != r2.p; @@ *free_irq@p(...) </smpl> Signed-off-by:
Lars-Peter Clausen <lars@metafoo.de> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
- 08 May, 2013 1 commit
-
-
Sachin Kamat authored
Commit 0998d063 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by:
Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
- 24 Nov, 2012 3 commits
-
-
Bill Pemberton authored
CONFIG_HOTPLUG is going away as an option so __devexit is no longer needed. Signed-off-by:
Bill Pemberton <wfp5p@virginia.edu> Acked-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
Bill Pemberton authored
CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by:
Bill Pemberton <wfp5p@virginia.edu> Acked-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by:
Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
Bill Pemberton authored
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. Signed-off-by:
Bill Pemberton <wfp5p@virginia.edu> Acked-by:
Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
- 30 Oct, 2012 1 commit
-
-
Vasily Khoruzhick authored
Bootloader can leave interrupt bit pending, and it confuses driver. Signed-off-by:
Vasily Khoruzhick <anarsoul@gmail.com> Acked-by:
Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
- 14 Sep, 2012 1 commit
-
-
Arnd Bergmann authored
Platform data for device drivers should be defined in include/linux/platform_data/*.h, not in the architecture and platform specific directories. This moves such data out of the pxa include directories Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Acked-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by:
Nicolas Pitre <nico@linaro.org> Acked-by:
Mauro Carvalho Chehab <mchehab@redhat.com> Acked-by:
Igor Grinberg <grinberg@compulab.co.il> Acked-by:
Jeff Garzik <jgarzik@redhat.com> Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Robert Jarzmik <robert.jarzmik@free.fr> Acked-by:
Paul Parsons <lost.distance@yahoo.com> Acked-by:
Vinod Koul <vinod.koul@linux.intel.com> Acked-By:
Stefan Schmidt <stefan@openezx.org> Cc: Eric Miao <eric.y.miao@gmail.com> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: Daniel Ribeiro <drwyrm@gmail.com> Cc: Harald Welte <laforge@openezx.org> Cc: Philipp Zabel <philipp.zabel@gmail.com> Cc: Tomas Cech <sleep_walker@suse.cz> Cc: Sergey Lapin <slapin@ossfans.org> Cc: Jonathan Cameron <jic23@cam.ac.uk> Cc: Dan Williams <djbw@fb.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Chris Ball <cjb@laptop.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Liam Girdwood <lrg@ti.com> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Cc: openezx-devel@lists.openezx.org
-
- 27 Apr, 2012 4 commits
-
-
Chao Xie authored
Direct keys usage may not start from KP_DKIN0, add a msk option to configure the specifics for platforms that can skip some keys. Signed-off-by:
Chao Xie <chao.xie@marvell.com> Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com>
-
Chao Xie authored
KPDK_DK only indicates the pin level of direct key. So it is related to board, and low level may be active which indicates that a key is pressed. Signed-off-by:
Chao Xie <chao.xie@marvell.com> Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com>
-
Chao Xie authored
When direcct_key_num is 0, the mask should be 0. When direcct_key_num is 1, the mask should be 0b1. Signed-off-by:
Chao Xie <chao.xie@marvell.com> Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com>
-
Chao Xie authored
When the keypad is used as wake up source, the clock can not be disabled. Or it can not detect key pressing. If the keypad is used as wake up source, when resume back, do not enable the clock and configure it again because the register content is retained. Signed-off-by:
Chao Xie <chao.xie@marvell.com> Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com>
-
- 01 Dec, 2011 1 commit
-
-
JJ Ding authored
Commit 940ab889 introduced a new macro to save some platform_driver boilerplate code. Use it. Signed-off-by:
JJ Ding <dgdunix@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 07 Sep, 2011 1 commit
-
-
Yong Zhang authored
This flag is a NOOP and can be removed now. Signed-off-by:
Yong Zhang <yong.zhang0@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 09 Oct, 2010 2 commits
-
-
Mark F. Brown authored
mach-mmp needs to clear wake event in order to clear the keypad interrupt Signed-off-by:
Mark F. Brown <mark.brown314@gmail.com> Signed-off-by:
Eric Miao <eric.y.miao@gmail.com>
-
Mark F. Brown authored
mach-mmp utilizes pxa27x_keypad code so we need to move header to platform pxa directory. Signed-off-by:
Mark F. Brown <mark.brown314@gmail.com> Signed-off-by:
Eric Miao <eric.y.miao@gmail.com>
-
- 25 Aug, 2010 1 commit
-
-
Axel Lin authored
No need to call input_free_device() after input_unregister_device(). Signed-off-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 30 Mar, 2010 1 commit
-
-
Tejun Heo authored
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h percpu.h is included by sched.h and module.h and thus ends up being included when building most .c files. percpu.h includes slab.h which in turn includes gfp.h making everything defined by the two files universally available and complicating inclusion dependencies. percpu.h -> slab.h dependency is about to be removed. Prepare for this change by updating users of gfp and slab facilities include those headers directly instead of assuming availability. As this conversion needs to touch large number of source files, the following script is used as the basis of conversion. http://userweb.kernel.org/~tj/misc/slabh-sweep.py The script does the followings. * Scan files for gfp and slab usages and update includes such that only the necessary includes are there. ie. if only gfp is used, gfp.h, if slab is used, slab.h. * When the script inserts a new include, it looks at the include blocks and try to put the new include such that its order conforms to its surrounding. It's put in the include block which contains core kernel includes, in the same order that the rest are ordered - alphabetical, Christmas tree, rev-Xmas-tree or at the end if there doesn't seem to be any matching order. * If the script can't find a place to put a new include (mostly because the file doesn't have fitting include block), it prints out an error message indicating which .h file needs to be added to the file. The conversion was done in the following steps. 1. The initial automatic conversion of all .c files updated slightly over 4000 files, deleting around 700 includes and adding ~480 gfp.h and ~3000 slab.h inclusions. The script emitted errors for ~400 files. 2. Each error was manually checked. Some didn't need the inclusion, some needed manual addition while adding it to implementation .h or embedding .c file was more appropriate for others. This step added inclusions to around 150 files. 3. The script was run again and the output was compared to the edits from #2 to make sure no file was left behind. 4. Several build tests were done and a couple of problems were fixed. e.g. lib/decompress_*.c used malloc/free() wrappers around slab APIs requiring slab.h to be added manually. 5. The script was run on all .h files but without automatically editing them as sprinkling gfp.h and slab.h inclusions around .h files could easily lead to inclusion dependency hell. Most gfp.h inclusion directives were ignored as stuff from gfp.h was usually wildly available and often used in preprocessor macros. Each slab.h inclusion directive was examined and added manually as necessary. 6. percpu.h was updated not to include slab.h. 7. Build test were done on the following configurations and failures were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my distributed build env didn't work with gcov compiles) and a few more options had to be turned off depending on archs to make things build (like ipr on powerpc/64 which failed due to missing writeq). * x86 and x86_64 UP and SMP allmodconfig and a custom test config. * powerpc and powerpc64 SMP allmodconfig * sparc and sparc64 SMP allmodconfig * ia64 SMP allmodconfig * s390 SMP allmodconfig * alpha SMP allmodconfig * um on x86_64 SMP allmodconfig 8. percpu.h modifications were reverted so that it could be applied as a separate patch and serve as bisection point. Given the fact that I had only a couple of failures from tests on step 6, I'm fairly confident about the coverage of this conversion patch. If there is a breakage, it's likely to be something in one of the arch headers which should be easily discoverable easily on most builds of the specific arch. Signed-off-by:
Tejun Heo <tj@kernel.org> Guess-its-ok-by:
Christoph Lameter <cl@linux-foundation.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
-
- 15 Sep, 2009 1 commit
-
-
Nicolas Pitre authored
Due to problems at cam.org, my nico@cam.org email address is no longer valid. FRom now on, nico@fluxnic.net should be used instead. Signed-off-by:
Nicolas Pitre <nico@fluxnic.net> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 11 Sep, 2009 1 commit
-
-
Dmitry Torokhov authored
Tested-by:
Mike Rapoport <mike@compulab.co.il> Acked-by:
Eric Miao <eric.y.miao@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 26 Jul, 2009 1 commit
-
-
Dmitry Torokhov authored
Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 23 Jul, 2009 1 commit
-
-
Dmitry Torokhov authored
clk_disable() in remove method is not needed since we already have clk_disable in pxa27x_keypad_close(). Also make sure the driver uses resource_size() and helpers from include/input/matrix_keypad.h Tested-by:
Mike Rapoport <mike@compulab.co.il> Acked-by:
Eric Miao <eric.y.miao@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 27 Nov, 2008 1 commit
-
-
Russell King authored
Where devices only have one consumer, passing a consumer clock ID has no real benefit. Remove it. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- 07 Aug, 2008 2 commits
-
-
Russell King authored
This just leaves include/asm-arm/plat-* to deal with. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
There are 43 includes of asm/mach-types.h by files that don't reference anything from that file. Remove these unnecessary includes. Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- 02 Jun, 2008 1 commit
-
-
Eric Miao authored
Signed-off-by:
Eric Miao <eric.miao@marvell.com> Acked-by:
Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 28 May, 2008 1 commit
-
-
Antonio Ospite authored
1. Set input bits for direct keys codes 2. Set input bits for rotary encoder codes only if rotary encoder is enabled 3. Enable EV_REL only if rotary encoder is enabled and rel_codes are set up Signed-off-by:
Antonio Ospite <ao2@openezx.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 24 Apr, 2008 1 commit
-
-
Kay Sievers authored
Since 43cc71ee, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable "input" platform drivers, to re-enable auto loading. [dbrownell@users.sourceforge.net: more drivers, registration fixes] Signed-off-by:
Kay Sievers <kay.sievers@vrfy.org> Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 20 Mar, 2008 1 commit
-
-
Samuel Ortiz authored
We want to mask (key_number - 1), not key_number. The current implementation works fine for all values but the maximum one, i.e. 8. Signed-off-by:
Samuel Ortiz <sameo@openedhand.com> Acked-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- 31 Jan, 2008 7 commits
-
-
Eric Miao authored
Currently, only one debounce_interval is introduced for both direct and matrix keys. This is true in most cases, although the keypad controller supports different debounce for direct/matrix keys. Some platforms do require this to be tuned, instead of the default reset value of 100ms. Rotary encoder will always use zero debounce time for now to achieve certain sensitivity. Signed-off-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Eric Miao authored
1. use ioremap() for registers access, this improves the portability of the driver (e.g. same IP on different processor with different I/O memory range), and make it possible to remove those registers definition in pxa-regs.h as PXA is undergoing a clean-up of that header file 2. use device specific IRQ instead of hardcoded IRQ_KEYPAD, same reason as above 3. clean up the error handling path in _probe() 4. remove DRIVER_NAME and use pdev->name when necessary, we don't actually need a constant string literals Signed-off-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Eric Miao authored
1. Rotary encoder events can be configured either as relative events as the legacy code does or as any specified key code, this is useful on some platform which uses the rotary keys as KEY_{UP/DOWN/LEFT/RIGHT} 2. Add support for direct keys, the corresponding keycodes for each direct key can now be specified within the platform data 3. Remove the direct/rotary key detection code from the IRQ handler to dedicated functions to improve readability Signed-off-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Eric Miao authored
Introduce pxa27x_keypad_config() for keypad registers configuration and remove the reg_kpc, reg_kprec from platform data structure so that configurations of keypad registers can be centralized to a single function. It can also be re-used when resuming. Signed-off-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Eric Miao authored
1. Introduce the "struct pxa27x_keypad" structure for driver specific information, such as "struct clk", generated matrix key codes and so on 2. Use KEY() macro to define matrix keys, instead of original 8x8 map this makes definition easier with keypad where keys are sparse 3. Keep a generated array in "struct pxa27x_keypad" for fast lookup 4. Separate the matrix scan into a dedicated function for readability and report only those keys whose state has been changed, instead of report all states 5. Make use of KPAS to decide the faster path if only one key has been detected Signed-off-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Eric Miao authored
The pin configurations will slowly be moved to the board specific code at initialization thus to make the driver more generic. Signed-off-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Eric Miao authored
The controller should really be called keypad, and also align the naming of functions and structures to use "pxa27x_keypad" as prefix, instead of "pxakbd". Signed-off-by:
Eric Miao <eric.miao@marvell.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-