pinctrl: madera: Set is_generic
Subsystems (3)
Richard Fitzgerald
maintainerPATCH 1/3 pinctrl: madera: Set is_generic
We are using the generic pin configuration interface so we can set is_generic.
--- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/cirrus/pinctrl-madera-core.c +1 -1
@@ -971,10 +971,10 @@ static int madera_pin_conf_group_set(struct pinctrl_dev *pctldev, }static const struct pinconf_ops madera_pin_conf_ops = { + .is_generic = true, .pin_config_get = madera_pin_conf_get, .pin_config_set = madera_pin_conf_set, .pin_config_group_set = madera_pin_conf_group_set, - };static struct pinctrl_desc madera_pin_desc = {
Signature · 1 line
2.11.0
Richard Fitzgerald
maintainerPATCH 2/3 pinctrl: madera: Return ENOTSUPP for unsupported pin attributes
The pin_config_[get|set] functions should return ENOTSUPP if the requested attribute isn't supported.
--- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/cirrus/pinctrl-madera-core.c +2 -2
@@ -801,7 +801,7 @@ static int madera_pin_conf_get(struct pinctrl_dev *pctldev, unsigned int pin, result =1 ;break ;default : -break ; +return -ENOTSUPP ; } *config =pinconf_to_config_packed (param, result);
@@ -905,7 +905,7 @@ static int madera_pin_conf_set(struct pinctrl_dev *pctldev, unsigned int pin, conf[1 ] &= ~MADERA_GP1_DIR ;break ;default : -break ; +return -ENOTSUPP ; } ++configs;
Signature · 1 line
2.11.0
Richard Fitzgerald
maintainerPATCH 3/3 pinctrl: madera: Fix missing space in debugfs output
In reply to Richard FitzgeraldThe SCHMITT tag was being dumped without a separating space.
--- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/cirrus/pinctrl-madera-core.c +1 -1
@@ -550,7 +550,7 @@ static void __maybe_unused madera_pin_dbg_show(struct pinctrl_dev *pctldev,seq_printf (s," DRV=%umA" ,madera_pin_unmake_drv_str (priv, conf[1 ]));if (conf[0 ] &MADERA_GP1_IP_CFG_MASK ) -seq_puts (s,"SCHMITT" ); +seq_puts (s," SCHMITT" ); }
Signature · 1 line
2.11.0
Quoted 4 lines · Richard Fitzgerald
We are using the generic pin configuration interface so we can set
is_generic.Signed-off-by Richard Fitzgerald <[email protected]>
For these patches.
This is not yet in my tree, but I can apply this and the others after -rc1 (probably the easiest).
Yours,
Linus Walleij
Quoted 4 lines · Richard Fitzgerald
We are using the generic pin configuration interface so we can set
is_generic.Signed-off-by Richard Fitzgerald <[email protected]>
Patch applied for v4.20.
Yours,
Linus Walleij
Re: [PATCH 2/3] pinctrl: madera: Return ENOTSUPP for unsupported pin attributes
In reply to Richard FitzgeraldQuoted 4 lines · Richard Fitzgerald
The pin_config_[get|set] functions should return ENOTSUPP if the requested attribute isn't supported.
Signed-off-by Richard Fitzgerald <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH 3/3] pinctrl: madera: Fix missing space in debugfs output
In reply to Richard FitzgeraldQuoted 3 lines · Richard Fitzgerald
The SCHMITT tag was being dumped without a separating space.
Signed-off-by Richard Fitzgerald <[email protected]>
Patch applied.
Yours,
Linus Walleij