pinctrl: freescale: remove generic pin config core support
Subsystems (4)
PATCH 1/1 pinctrl: freescale: remove generic pin config core support
No instance of "struct imx_pinctrl_soc_info" sets '.generic_pinconf = true', so all of this is effectively dead code.
To make it easier to understand the actual code, remove all the unused cruft. This effectively reverts a5cadbbb081c ("pinctrl: imx: add generic pin config core support").
It was only in use by a single SOC (imx7ulp) for a few releases, and the commit message of dbffda08f0e9 ("pinctrl: fsl: imx7ulp: change to use imx legacy binding") suggests that it won't be used in the future. Certainly no new user has appeared in 20+ releases, and should the need arise, this can be dug out of git history again.
--- drivers/pinctrl/freescale/Kconfig | 2 +- drivers/pinctrl/freescale/pinctrl-imx.c | 80 ++----------------------- drivers/pinctrl/freescale/pinctrl-imx.h | 24 -------- 3 files changed, 6 insertions(+), 100 deletions(-)
drivers/pinctrl/freescale/Kconfig +1 -1
@@ -4,7 +4,7 @@ config PINCTRL_IMX depends on OF select GENERIC_PINCTRL_GROUPS select GENERIC_PINMUX_FUNCTIONS - select GENERIC_PINCONF + select PINCONF select REGMAP config PINCTRL_IMX_SCU
drivers/pinctrl/freescale/pinctrl-imx.c +5 -75
111 lines not on this page · raw message
drivers/pinctrl/freescale/pinctrl-imx.h +0 -24
@@ -11,7 +11,6 @@#ifndef __DRIVERS_PINCTRL_IMX_H#define __DRIVERS_PINCTRL_IMX_H -#include <linux/pinctrl/pinconf-generic.h> #include <linux/pinctrl/pinmux.h> struct platform_device ;
@@ -67,14 +66,6 @@ struct imx_pin_reg {s16 conf_reg; }; -/* decode a generic config into raw register value */ -struct imx_cfg_params_decode { -enum pin_config_param param; -u32 mask; -u8 shift; -bool invert; -}; -/** * @dev: a pointer back to containing device * @base: the offset to the controller in virtual memory
@@ -100,15 +91,6 @@ struct imx_pinctrl_soc_info {unsigned int mux_mask;u8 mux_shift; -/* generic pinconf */ -bool generic_pinconf; -const struct pinconf_generic_params *custom_params; -unsigned int num_custom_params; -const struct imx_cfg_params_decode *decodes; -unsigned int num_decodes; -void (*fixup)(unsigned long *configs,unsigned int num_configs, -u32 *raw_config); - int (*gpio_set_direction)(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned offset,
@@ -122,12 +104,6 @@ struct imx_pinctrl_soc_info { const __be32 **list_p); }; -#define IMX_CFG_PARAMS_DECODE (p, m, o) \ - { .param = p, .mask = m, .shift = o, .invert = false, } - -#define IMX_CFG_PARAMS_DECODE_INVERT (p, m, o) \ - { .param = p, .mask = m, .shift = o, .invert = true, } -#define SHARE_MUX_CONF_REG BIT(0)#define ZERO_OFFSET_VALID BIT(1)#define IMX_USE_SCU BIT(2)
Signature · 1 line
2.37.2
Quoted 8 lines · Rasmus Villemoes
No instance of "struct
imx_pinctrl_soc_info" sets '.generic_pinconf = true', so all of this is effectively dead code.To make it easier to understand the actual code, remove all the unused cruft. This effectively reverts
a5cadbbb081c("pinctrl: imx: add generic pin config core support").
Quoted 7 lines
It was only in use by a single SOC (imx7ulp) for a few releases, and the commit message of
dbffda08f0e9("pinctrl: fsl: imx7ulp: change to use imx legacy binding") suggests that it won't be used in the future. Certainly no new user has appeared in 20+ releases, and should the need arise, this can be dug out of git history again.Signed-off-by Rasmus Villemoes <[email protected]>
Yes, this makes sense:
Quoted 7 lines · Rasmus Villemoes
No instance of "struct
imx_pinctrl_soc_info" sets '.generic_pinconf = true', so all of this is effectively dead code.To make it easier to understand the actual code, remove all the unused cruft. This effectively reverts
a5cadbbb081c("pinctrl: imx: add generic pin config core support").
Quoted 7 lines
It was only in use by a single SOC (imx7ulp) for a few releases, and the commit message of
dbffda08f0e9("pinctrl: fsl: imx7ulp: change to use imx legacy binding") suggests that it won't be used in the future. Certainly no new user has appeared in 20+ releases, and should the need arise, this can be dug out of git history again.Signed-off-by Rasmus Villemoes <[email protected]>
Patch applied.
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel