* RFC: User-space interface to read/write touchscreen controller registers (atmel_mxt_ts.c)
@ 2011-07-22 12:11 Iiro Valkonen
2011-07-27 12:49 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Iiro Valkonen @ 2011-07-22 12:11 UTC (permalink / raw)
To: linux-input, Dmitry Torokhov
Hello,
we have a need to access the configuration registers/register blocks of the touchscreen controller from the user space. There are several reasons for this, and while some of them are related to debugging, some can be valuable in normal use cases. For example, a configuration parameter might need to be semi-permanently changed to improve performance, or some parameter could even be updated for different usage modes of the device. This interface would make it very easy. Currently, a change in the board file and kernel recompile is needed to change the settings.
My question is, what kind of approach would be recommended, and what would be acceptable to include in the mainline version? Currently there exists a patch which adds a character device and few IOCTLs (very similar to maXTouch driver here: http://gitorious.org/maxtouch), but my understanding is that is not the best way to do this. Would a sysfs-based system be better suited? Are there any good examples in the mainline drivers how something like this should be implemented?
Best Regards,
--
Iiro Valkonen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RFC: User-space interface to read/write touchscreen controller registers (atmel_mxt_ts.c)
2011-07-22 12:11 RFC: User-space interface to read/write touchscreen controller registers (atmel_mxt_ts.c) Iiro Valkonen
@ 2011-07-27 12:49 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-07-27 12:49 UTC (permalink / raw)
To: Iiro Valkonen; +Cc: linux-input, Dmitry Torokhov
On Fri, Jul 22, 2011 at 03:11:25PM +0300, Iiro Valkonen wrote:
Please fix your mail client to word wrap within paragraphs. I've
reformatted your text for legibility.
> we have a need to access the configuration registers/register blocks
> of the touchscreen controller from the user space. There are several
> reasons for this, and while some of them are related to debugging,
> some can be valuable in normal use cases. For example, a configuration
> parameter might need to be semi-permanently changed to improve
> performance, or some parameter could even be updated for different
> usage modes of the device. This interface would make it very easy.
> Currently, a change in the board file and kernel recompile is needed
> to change the settings.
For diagnostic access the regmap API was merged during this merge
window, it provides debugfs access to the register map. That doesn't
help with the coefficient data but it should be enough for debugging.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-27 12:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22 12:11 RFC: User-space interface to read/write touchscreen controller registers (atmel_mxt_ts.c) Iiro Valkonen
2011-07-27 12:49 ` Mark Brown
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).