]> Pileus Git - ~andy/linux/commit
pinctrl/pinconfig: add debug interface
authorLaurent Meunier <laurent.meunier@st.com>
Thu, 18 Apr 2013 08:48:07 +0000 (10:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Apr 2013 13:45:05 +0000 (15:45 +0200)
commitf07512e615dd8ebd0866efc38b39ccd41f1495d8
tree3c50418dad838e31f5f870a6d4d57ab4d7f8f20b
parent06b62d82146fed98fcb846c4d93d85f1dea5d36a
pinctrl/pinconfig: add debug interface

This update adds a debugfs interface to modify a pin configuration
for a given state in the pinctrl map. This allows to modify the
configuration for a non-active state, typically sleep state.
This configuration is not applied right away, but only when the state
will be entered.

This solution is mandated for us by HW validation: in order
to test and verify several pin configurations during sleep without
recompiling the software.

Change log in this patch set;
Take into account latest feedback from Stephen Warren:
- stale comments update
- improved code efficiency and readibility
- limit size of global variable pinconf_dbg_conf
- remove req_type as it can easily be added later when
add/delete requests support is implemented

Signed-off-by: Laurent Meunier <laurent.meunier@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf.c
include/linux/pinctrl/pinconf.h