linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] pinctrl: ocelot: Add fixes for ocelot driver
@ 2022-07-13 19:37 Horatiu Vultur
  2022-07-13 19:37 ` [PATCH v5 1/2] pinctrl: ocelot: Fix pincfg for lan966x Horatiu Vultur
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Horatiu Vultur @ 2022-07-13 19:37 UTC (permalink / raw)
  To: linux-gpio, linux-kernel
  Cc: linus.walleij, alexandre.belloni, kavyasree.kotagiri,
	colin.foster, UNGLinuxDriver, maxime.chevallier, michael,
	andy.shevchenko, Horatiu Vultur

The patch series fixes 2 issues with pincfg.
- first issue is that on lan966x uses different offsets than sparx5
  so it can't use directly the ocelot_confops
- second issue is pincfg stop working when regmap support was added.

v4->v5:
- add Reviewed-by, Acked-by tags for patch 2
- clean the indentation mess inside ocelot_pinconf_set

v3->v4:
- add missing check for NULL pointer when doing devm_kmemdup
- remove devm_kmemdup for pincfg_data as it can be const
- remove has_schmitt field, because we can use schmitt_bit for checking
  if it has support for PIN_CONFIG_INPUT_SCHMITT_ENABLE
- change the declaration of ocelot_pinctrl_create_pincfg

v2->v3:
- reorder ocelot_pincfg_data fields, mandatory fields go first
- move the field pincfg_data inside ocelot_pinctrl
- add back max_register for regmap_config for pincfg.
- make struct ocelot_match_data const and drop the cast.

v1->v2:
- use regmap_get_reg_stride instead of making regmap_config global
- update how ocelot_match_data structs are initialized

Horatiu Vultur (2):
  pinctrl: ocelot: Fix pincfg for lan966x
  pinctrl: ocelot: Fix pincfg

 drivers/pinctrl/pinctrl-ocelot.c | 214 ++++++++++++++++++++-----------
 1 file changed, 137 insertions(+), 77 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2022-07-18  9:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-13 19:37 [PATCH v5 0/2] pinctrl: ocelot: Add fixes for ocelot driver Horatiu Vultur
2022-07-13 19:37 ` [PATCH v5 1/2] pinctrl: ocelot: Fix pincfg for lan966x Horatiu Vultur
2022-07-13 19:54   ` Andy Shevchenko
2022-07-13 19:37 ` [PATCH v5 2/2] pinctrl: ocelot: Fix pincfg Horatiu Vultur
2022-07-18  9:23 ` [PATCH v5 0/2] pinctrl: ocelot: Add fixes for ocelot driver Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).