lkml.org 
[lkml]   [2013]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] pintrcl: restore old state when pinctrl_select_state fails
Date
If there's an error when applying a new state (for example, if a pin is already muxed), old state is not restored.
This patch set corrects this behaviour.
The first patch is just a small typo fix.
The second doesn't introduce any functionnal change, but prepares for the third patch.
The third patch undoes what have been done to enable the new state.
The last patch re-applies the old state.

Richard Genoud (4):
pinctrl: fix typo in header
pinctrl: create pinctrl_free_setting function
pinctrl: disable and free setting in select_state in case of error
pinctrl: re-enable old state in case of error in pinctrl_select_state

drivers/pinctrl/core.c | 78 ++++++++++++++++++++++++++++++++++++++----------
drivers/pinctrl/core.h | 2 +-
2 files changed, 63 insertions(+), 17 deletions(-)

--
1.7.2.5



\
 
 \ /
  Last update: 2013-03-25 16:01    [W:0.108 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site