All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] pinctrl: sunxi: Support generic pinconf functions
@ 2016-10-04  1:51 ` Chen-Yu Tsai
  0 siblings, 0 replies; 26+ messages in thread
From: Chen-Yu Tsai @ 2016-10-04  1:51 UTC (permalink / raw)
  To: Linus Walleij, Maxime Ripard
  Cc: Chen-Yu Tsai, linux-gpio-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

Hi everyone,

This series fixes up generic pinconf support for the sunxi pinctrl driver
library. The driver was doing some bits wrong, like a) storing the pinconf
config value in its struct, and not actually reading the hardware to get
the current config, and b) not using the right arguments for the bias
parameters.

Patch 1 makes the driver read out pinconf settings from the hardware, and
returns the correct value for unsupported features and disable features.
With this in place it also declares itself as generic pinconf compatible,
which enables us to read the config through the debugfs pinconf interface.

Patch 2 fixes the pin bias parameter arguments.

Patch 3 makes the sunxi_pconf_group_set callback use the helper function
introduced in patch 1. 

The patches will likely conflict with Maxime's generic pinctrl bindings
series. Lets figure something out.


Regards
ChenYu


Chen-Yu Tsai (3):
  pinctrl: sunxi: Add support for fetching pinconf settings from
    hardware
  pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument
  pinctrl: sunxi: Make sunxi_pconf_group_set use sunxi_pconf_reg helper

 drivers/pinctrl/sunxi/pinctrl-sunxi.c | 152 ++++++++++++++++++++++++++--------
 drivers/pinctrl/sunxi/pinctrl-sunxi.h |   1 -
 2 files changed, 118 insertions(+), 35 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2016-10-20 13:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04  1:51 [PATCH 0/3] pinctrl: sunxi: Support generic pinconf functions Chen-Yu Tsai
2016-10-04  1:51 ` Chen-Yu Tsai
2016-10-04  1:51 ` Chen-Yu Tsai
     [not found] ` <20161004015112.20833-1-wens-jdAy2FN1RRM@public.gmane.org>
2016-10-04  1:51   ` [PATCH 1/3] pinctrl: sunxi: Add support for fetching pinconf settings from hardware Chen-Yu Tsai
2016-10-04  1:51     ` Chen-Yu Tsai
2016-10-04  1:51     ` Chen-Yu Tsai
     [not found]     ` <20161004015112.20833-2-wens-jdAy2FN1RRM@public.gmane.org>
2016-10-04  8:02       ` Maxime Ripard
2016-10-04  8:02         ` Maxime Ripard
2016-10-04  8:02         ` Maxime Ripard
2016-10-04 15:49         ` Chen-Yu Tsai
2016-10-04 15:49           ` Chen-Yu Tsai
2016-10-04 15:49           ` Chen-Yu Tsai
2016-10-04  1:51   ` [PATCH 2/3] pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument Chen-Yu Tsai
2016-10-04  1:51     ` [PATCH 2/3] pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN, UP} argument Chen-Yu Tsai
2016-10-04  1:51     ` [PATCH 2/3] pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument Chen-Yu Tsai
2016-10-04  1:51   ` [PATCH 3/3] pinctrl: sunxi: Make sunxi_pconf_group_set use sunxi_pconf_reg helper Chen-Yu Tsai
2016-10-04  1:51     ` Chen-Yu Tsai
2016-10-04  1:51     ` Chen-Yu Tsai
2016-10-04  8:07     ` Maxime Ripard
2016-10-04  8:07       ` Maxime Ripard
2016-10-20 13:13   ` [PATCH 0/3] pinctrl: sunxi: Support generic pinconf functions Linus Walleij
2016-10-20 13:13     ` Linus Walleij
2016-10-20 13:13     ` Linus Walleij
     [not found]     ` <CACRpkdZHTQqnsuHcm3+iYQJc2picLu95W2OKeMiXFq+XNzDV3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-20 13:24       ` Chen-Yu Tsai
2016-10-20 13:24         ` [linux-sunxi] " Chen-Yu Tsai
2016-10-20 13:24         ` Chen-Yu Tsai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.