alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers
@ 2022-10-10 20:14 Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s) Andy Shevchenko
                   ` (37 more replies)
  0 siblings, 38 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Currently the header inclusion inside the pinctrl headers seems more arbitrary
than logical. This series is basically out of two parts:
- add missed headers to the pin control drivers / users
- clean up the headers of pin control subsystem

The idea is to have this series to be pulled after -rc1 by the GPIO and
pin control subsystems, so all new drivers will utilize cleaned up headers
of the pin control.

Please, review and comment.

Changelog v2:
- added preparatory patches: all, but last (LKP)
- added missed forward declaration to the last patch (LKP)

Andy Shevchenko (36):
  gpiolib: tegra186: Add missed header(s)
  gpiolib: cdev: Add missed header(s)
  media: c8sectpfe: Add missed header(s)
  pinctrl: actions: Add missed header(s)
  pinctrl: aspeed: Add missed header(s)
  pinctrl: at91: Add missed header(s)
  pinctrl: axp209: Add missed header(s)
  pinctrl: bcm: Add missed header(s)
  pinctrl: cygnus-mux: Add missed header(s)
  pinctrl: imx: Add missed header(s)
  pinctrl: ingenic: Add missed header(s)
  pinctrl: k210: Add missed header(s)
  pinctrl: lochnagar: Add missed header(s)
  pinctrl: mediatek: Add missed header(s)
  pinctrl: mvebu: Add missed header(s)
  pinctrl: npcm7xx: Add missed header(s)
  pinctrl: ocelot: Add missed header(s)
  pinctrl: qcom: Add missed header(s)
  pinctrl: renesas: Add missed header(s)
  pinctrl: samsung: Add missed header(s)
  pinctrl: single: Add missed header(s)
  pinctrl: spear: Add missed header(s)
  pinctrl: sprd: Add missed header(s)
  pinctrl: st: Add missed header(s)
  pinctrl: starfive: Add missed header(s)
  pinctrl: stm32: Add missed header(s)
  pinctrl: stmfx: Add missed header(s)
  pinctrl: tegra: Add missed header(s)
  pinctrl: ti-iodelay: Add missed header(s)
  pinctrl: uniphier: Add missed header(s)
  pinctrl: zynqmp: Add missed header(s)
  pinctrl: cherryview: Add missed header(s)
  pinctrl: lynxpoint: Add missed header(s)
  pinctrl: merrifield: Add missed header(s)
  pinctrl: intel: Add missed header(s)
  pinctrl: Clean up headers

 drivers/gpio/gpio-tegra186.c                  |  3 +-
 drivers/gpio/gpiolib-cdev.c                   |  6 ++--
 .../st/sti/c8sectpfe/c8sectpfe-core.c         |  8 +++--
 drivers/pinctrl/actions/pinctrl-owl.c         | 10 +++---
 drivers/pinctrl/aspeed/pinctrl-aspeed.c       |  1 +
 drivers/pinctrl/bcm/pinctrl-bcm281xx.c        | 13 +++++---
 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c      |  9 ++++--
 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c      | 12 ++++---
 drivers/pinctrl/bcm/pinctrl-ns2-mux.c         |  8 +++--
 drivers/pinctrl/bcm/pinctrl-nsp-mux.c         |  8 +++--
 drivers/pinctrl/cirrus/pinctrl-lochnagar.c    |  6 ++--
 drivers/pinctrl/core.c                        | 19 ++++++------
 drivers/pinctrl/core.h                        | 12 ++++++-
 drivers/pinctrl/devicetree.h                  |  6 ++++
 drivers/pinctrl/freescale/pinctrl-imx.c       |  8 +++--
 drivers/pinctrl/intel/pinctrl-cherryview.c    |  6 ++--
 drivers/pinctrl/intel/pinctrl-intel.c         |  6 ++--
 drivers/pinctrl/intel/pinctrl-lynxpoint.c     |  6 ++--
 drivers/pinctrl/intel/pinctrl-merrifield.c    |  4 ++-
 drivers/pinctrl/mediatek/pinctrl-moore.c      |  3 ++
 drivers/pinctrl/mediatek/pinctrl-paris.c      |  5 +++
 drivers/pinctrl/mvebu/pinctrl-mvebu.c         | 14 +++++----
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c     | 11 ++++---
 drivers/pinctrl/pinconf.h                     | 10 ++++++
 drivers/pinctrl/pinctrl-at91-pio4.c           | 10 ++++--
 drivers/pinctrl/pinctrl-at91.c                | 16 +++++-----
 drivers/pinctrl/pinctrl-axp209.c              |  8 +++--
 drivers/pinctrl/pinctrl-ingenic.c             | 10 +++---
 drivers/pinctrl/pinctrl-k210.c                | 12 ++++---
 drivers/pinctrl/pinctrl-ocelot.c              | 10 +++---
 drivers/pinctrl/pinctrl-single.c              |  5 ++-
 drivers/pinctrl/pinctrl-st.c                  | 21 ++++++++-----
 drivers/pinctrl/pinctrl-stmfx.c               |  2 ++
 drivers/pinctrl/pinctrl-utils.h               |  5 +++
 drivers/pinctrl/pinctrl-zynqmp.c              |  4 ++-
 drivers/pinctrl/pinmux.c                      | 17 +++++-----
 drivers/pinctrl/pinmux.h                      | 11 +++++++
 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c      |  8 +++--
 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c       |  8 +++--
 drivers/pinctrl/renesas/pinctrl-rzg2l.c       |  7 +++--
 drivers/pinctrl/renesas/pinctrl-rzv2m.c       |  4 ++-
 drivers/pinctrl/renesas/pinctrl.c             |  8 +++--
 drivers/pinctrl/samsung/pinctrl-samsung.c     | 11 ++++---
 drivers/pinctrl/spear/pinctrl-spear.c         |  6 ++--
 drivers/pinctrl/sprd/pinctrl-sprd.c           |  6 ++--
 .../starfive/pinctrl-starfive-jh7100.c        |  2 ++
 drivers/pinctrl/stm32/pinctrl-stm32.c         | 16 +++++-----
 drivers/pinctrl/tegra/pinctrl-tegra.c         |  6 ++--
 drivers/pinctrl/ti/pinctrl-ti-iodelay.c       |  8 +++--
 .../pinctrl/uniphier/pinctrl-uniphier-core.c  |  8 +++--
 include/linux/pinctrl/consumer.h              | 31 +++++++++----------
 include/linux/pinctrl/devinfo.h               |  6 ++--
 include/linux/pinctrl/machine.h               |  8 +++--
 include/linux/pinctrl/pinconf-generic.h       | 23 ++++++++------
 include/linux/pinctrl/pinctrl.h               | 18 +++++------
 include/linux/pinctrl/pinmux.h                |  5 ++-
 56 files changed, 328 insertions(+), 186 deletions(-)


base-commit: 9d157c89c5569f0ef560b7a5b2d7bf59ae98499c
-- 
2.35.1


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

* [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-17  8:52   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 02/36] gpiolib: cdev: " Andy Shevchenko
                   ` (36 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpio-tegra186.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c
index 54d9fa7da9c1..fdc5bdcd5638 100644
--- a/drivers/gpio/gpio-tegra186.c
+++ b/drivers/gpio/gpio-tegra186.c
@@ -7,12 +7,13 @@
  */
 
 #include <linux/gpio/driver.h>
+#include <linux/hte.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
-#include <linux/hte.h>
+#include <linux/seq_file.h>
 
 #include <dt-bindings/gpio/tegra186-gpio.h>
 #include <dt-bindings/gpio/tegra194-gpio.h>
-- 
2.35.1


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

* [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s) Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-11  0:01   ` Kent Gibson
  2022-10-10 20:14 ` [PATCH v2 03/36] media: c8sectpfe: " Andy Shevchenko
                   ` (35 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpiolib-cdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c
index f8041d4898d1..60a60e2d60c5 100644
--- a/drivers/gpio/gpiolib-cdev.c
+++ b/drivers/gpio/gpiolib-cdev.c
@@ -10,8 +10,9 @@
 #include <linux/device.h>
 #include <linux/err.h>
 #include <linux/file.h>
-#include <linux/gpio.h>
 #include <linux/gpio/driver.h>
+#include <linux/gpio.h>
+#include <linux/hte.h>
 #include <linux/interrupt.h>
 #include <linux/irqreturn.h>
 #include <linux/kernel.h>
@@ -20,11 +21,12 @@
 #include <linux/mutex.h>
 #include <linux/pinctrl/consumer.h>
 #include <linux/poll.h>
+#include <linux/seq_file.h>
 #include <linux/spinlock.h>
 #include <linux/timekeeping.h>
 #include <linux/uaccess.h>
 #include <linux/workqueue.h>
-#include <linux/hte.h>
+
 #include <uapi/linux/gpio.h>
 
 #include "gpiolib.h"
-- 
2.35.1


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

* [PATCH v2 03/36] media: c8sectpfe: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s) Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 02/36] gpiolib: cdev: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 04/36] pinctrl: actions: " Andy Shevchenko
                   ` (34 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
index cefe6b7bfdc4..4c5027a0480d 100644
--- a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
+++ b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
@@ -24,16 +24,18 @@
 #include <linux/module.h>
 #include <linux/of_gpio.h>
 #include <linux/of_platform.h>
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinctrl.h>
 #include <linux/platform_device.h>
-#include <linux/usb.h>
 #include <linux/slab.h>
 #include <linux/time.h>
+#include <linux/usb.h>
 #include <linux/wait.h>
-#include <linux/pinctrl/pinctrl.h>
 
-#include "c8sectpfe-core.h"
 #include "c8sectpfe-common.h"
+#include "c8sectpfe-core.h"
 #include "c8sectpfe-debugfs.h"
+
 #include <media/dmxdev.h>
 #include <media/dvb_demux.h>
 #include <media/dvb_frontend.h>
-- 
2.35.1


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

* [PATCH v2 04/36] pinctrl: actions: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (2 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 03/36] media: c8sectpfe: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-17  8:55   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 05/36] pinctrl: aspeed: " Andy Shevchenko
                   ` (33 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/actions/pinctrl-owl.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/pinctrl/actions/pinctrl-owl.c b/drivers/pinctrl/actions/pinctrl-owl.c
index ed46abc15d72..a84ace6e451e 100644
--- a/drivers/pinctrl/actions/pinctrl-owl.c
+++ b/drivers/pinctrl/actions/pinctrl-owl.c
@@ -17,13 +17,15 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+#include <linux/spinlock.h>
+
 #include <linux/pinctrl/machine.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
-#include <linux/slab.h>
-#include <linux/spinlock.h>
 
 #include "../core.h"
 #include "../pinctrl-utils.h"
-- 
2.35.1


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

* [PATCH v2 05/36] pinctrl: aspeed: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (3 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 04/36] pinctrl: actions: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-17  8:55   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 06/36] pinctrl: at91: " Andy Shevchenko
                   ` (32 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/aspeed/pinctrl-aspeed.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.c b/drivers/pinctrl/aspeed/pinctrl-aspeed.c
index a30912a92f05..3945612900e6 100644
--- a/drivers/pinctrl/aspeed/pinctrl-aspeed.c
+++ b/drivers/pinctrl/aspeed/pinctrl-aspeed.c
@@ -5,6 +5,7 @@
 
 #include <linux/mfd/syscon.h>
 #include <linux/platform_device.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 #include <linux/string.h>
 #include "../core.h"
-- 
2.35.1


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

* [PATCH v2 06/36] pinctrl: at91: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (4 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 05/36] pinctrl: aspeed: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-12  7:52   ` Claudiu.Beznea
  2022-10-17  8:56   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 07/36] pinctrl: axp209: " Andy Shevchenko
                   ` (31 subsequent siblings)
  37 siblings, 2 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-at91-pio4.c | 10 +++++++---
 drivers/pinctrl/pinctrl-at91.c      | 16 +++++++++-------
 2 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index 82b921fd630d..e38c683aba09 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -7,18 +7,22 @@
  */
 
 #include <dt-bindings/pinctrl/at91.h>
+
 #include <linux/clk.h>
 #include <linux/gpio/driver.h>
+#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
-#include <linux/init.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
-#include <linux/pinctrl/pinconf.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/slab.h>
+
 #include "core.h"
 #include "pinconf.h"
 #include "pinctrl-utils.h"
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
index 81dbffab621f..1e1813d7c550 100644
--- a/drivers/pinctrl/pinctrl-at91.c
+++ b/drivers/pinctrl/pinctrl-at91.c
@@ -7,22 +7,24 @@
 
 #include <linux/clk.h>
 #include <linux/err.h>
+#include <linux/gpio/driver.h>
 #include <linux/init.h>
+#include <linux/interrupt.h>
+#include <linux/io.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/of_address.h>
+#include <linux/of_device.h>
 #include <linux/of_irq.h>
+#include <linux/pm.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
-#include <linux/interrupt.h>
-#include <linux/io.h>
-#include <linux/gpio/driver.h>
+
+/* Since we request GPIOs from ourself */
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/machine.h>
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-/* Since we request GPIOs from ourself */
-#include <linux/pinctrl/consumer.h>
-#include <linux/pm.h>
 
 #include "pinctrl-at91.h"
 #include "core.h"
-- 
2.35.1


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

* [PATCH v2 07/36] pinctrl: axp209: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (5 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 06/36] pinctrl: at91: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-17  8:57   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 08/36] pinctrl: bcm: " Andy Shevchenko
                   ` (30 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-axp209.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c
index 7ab20ac15391..0bc1b381a2b8 100644
--- a/drivers/pinctrl/pinctrl-axp209.c
+++ b/drivers/pinctrl/pinctrl-axp209.c
@@ -16,13 +16,15 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
-#include <linux/pinctrl/pinconf-generic.h>
-#include <linux/pinctrl/pinctrl.h>
-#include <linux/pinctrl/pinmux.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
+
 #define AXP20X_GPIO_FUNCTIONS		0x7
 #define AXP20X_GPIO_FUNCTION_OUT_LOW	0
 #define AXP20X_GPIO_FUNCTION_OUT_HIGH	1
-- 
2.35.1


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

* [PATCH v2 08/36] pinctrl: bcm: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (6 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 07/36] pinctrl: axp209: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-17  8:58   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 09/36] pinctrl: cygnus-mux: " Andy Shevchenko
                   ` (29 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/bcm/pinctrl-bcm281xx.c   | 13 ++++++++-----
 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 12 +++++++-----
 drivers/pinctrl/bcm/pinctrl-ns2-mux.c    |  8 +++++---
 drivers/pinctrl/bcm/pinctrl-nsp-mux.c    |  8 +++++---
 4 files changed, 25 insertions(+), 16 deletions(-)

diff --git a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
index fd52a83387ef..73dbf29c002f 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
+++ b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
@@ -2,16 +2,19 @@
 // Copyright (C) 2013-2017 Broadcom
 
 #include <linux/err.h>
-#include <linux/io.h>
 #include <linux/init.h>
+#include <linux/io.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
-#include <linux/pinctrl/pinctrl.h>
-#include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
 #include <linux/regmap.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
+
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
+
 #include "../core.h"
 #include "../pinctrl-utils.h"
 
diff --git a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c
index 52fa2f4cd618..3df56a4ea510 100644
--- a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c
+++ b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c
@@ -16,17 +16,19 @@
  * SoCs IOMUX controller.
  */
 
-#include <linux/kernel.h>
-#include <linux/slab.h>
+#include <linux/gpio/driver.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
-#include <linux/gpio/driver.h>
 #include <linux/ioport.h>
+#include <linux/kernel.h>
 #include <linux/of_device.h>
 #include <linux/of_irq.h>
-#include <linux/pinctrl/pinctrl.h>
-#include <linux/pinctrl/pinconf.h>
+#include <linux/slab.h>
+
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinctrl.h>
 
 #include "../pinctrl-utils.h"
 
diff --git a/drivers/pinctrl/bcm/pinctrl-ns2-mux.c b/drivers/pinctrl/bcm/pinctrl-ns2-mux.c
index 960e253f0be4..04f4fca854cc 100644
--- a/drivers/pinctrl/bcm/pinctrl-ns2-mux.c
+++ b/drivers/pinctrl/bcm/pinctrl-ns2-mux.c
@@ -9,12 +9,14 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/pinctrl/pinconf.h>
+#include <linux/platform_device.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/platform_device.h>
-#include <linux/slab.h>
 
 #include "../core.h"
 #include "../pinctrl-utils.h"
diff --git a/drivers/pinctrl/bcm/pinctrl-nsp-mux.c b/drivers/pinctrl/bcm/pinctrl-nsp-mux.c
index db8f79920ff0..eb6298507c1d 100644
--- a/drivers/pinctrl/bcm/pinctrl-nsp-mux.c
+++ b/drivers/pinctrl/bcm/pinctrl-nsp-mux.c
@@ -20,12 +20,14 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/pinctrl/pinconf.h>
+#include <linux/platform_device.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/platform_device.h>
-#include <linux/slab.h>
 
 #include "../core.h"
 #include "../pinctrl-utils.h"
-- 
2.35.1


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

* [PATCH v2 09/36] pinctrl: cygnus-mux: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (7 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 08/36] pinctrl: bcm: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-17  8:59   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 10/36] pinctrl: imx: " Andy Shevchenko
                   ` (28 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c b/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c
index 5251460f6327..bf9597800954 100644
--- a/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c
+++ b/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c
@@ -13,12 +13,15 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/slab.h>
 #include <linux/platform_device.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
+
 #include "../core.h"
 #include "../pinctrl-utils.h"
 
-- 
2.35.1


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

* [PATCH v2 10/36] pinctrl: imx: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (8 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 09/36] pinctrl: cygnus-mux: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-17  8:59   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 11/36] pinctrl: ingenic: " Andy Shevchenko
                   ` (27 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/freescale/pinctrl-imx.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/freescale/pinctrl-imx.c b/drivers/pinctrl/freescale/pinctrl-imx.c
index 3a7d2de10b13..e9aef764138f 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx.c
@@ -13,14 +13,16 @@
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/of_address.h>
+#include <linux/of_device.h>
+#include <linux/regmap.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/machine.h>
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/slab.h>
-#include <linux/regmap.h>
 
 #include "../core.h"
 #include "../pinconf.h"
-- 
2.35.1


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

* [PATCH v2 11/36] pinctrl: ingenic: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (9 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 10/36] pinctrl: imx: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-12  9:15   ` Paul Cercueil
  2022-10-17  9:00   ` Linus Walleij
  2022-10-10 20:14 ` [PATCH v2 12/36] pinctrl: k210: " Andy Shevchenko
                   ` (26 subsequent siblings)
  37 siblings, 2 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-ingenic.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-ingenic.c
index 7e732076dedf..dbc25a60fbff 100644
--- a/drivers/pinctrl/pinctrl-ingenic.c
+++ b/drivers/pinctrl/pinctrl-ingenic.c
@@ -14,16 +14,18 @@
 #include <linux/kernel.h>
 #include <linux/mod_devicetable.h>
 #include <linux/of.h>
-#include <linux/pinctrl/pinctrl.h>
-#include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
 #include <linux/platform_device.h>
 #include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/seq_file.h>
 #include <linux/slab.h>
 
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
+
 #include "core.h"
 #include "pinconf.h"
 #include "pinmux.h"
-- 
2.35.1


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

* [PATCH v2 12/36] pinctrl: k210: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (10 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 11/36] pinctrl: ingenic: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 22:33   ` Damien Le Moal
  2022-10-10 20:14 ` [PATCH v2 13/36] pinctrl: lochnagar: " Andy Shevchenko
                   ` (25 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-k210.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c
index ecab6bf63dc6..288e44457fec 100644
--- a/drivers/pinctrl/pinctrl-k210.c
+++ b/drivers/pinctrl/pinctrl-k210.c
@@ -3,18 +3,20 @@
  * Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
  * Copyright (c) 2020 Western Digital Corporation or its affiliates.
  */
-#include <linux/io.h>
-#include <linux/of_device.h>
+#include <linux/bitfield.h>
 #include <linux/clk.h>
+#include <linux/io.h>
 #include <linux/mfd/syscon.h>
+#include <linux/of_device.h>
 #include <linux/platform_device.h>
-#include <linux/bitfield.h>
 #include <linux/regmap.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
+
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
 
 #include <dt-bindings/pinctrl/k210-fpioa.h>
 
-- 
2.35.1


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

* [PATCH v2 13/36] pinctrl: lochnagar: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (11 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 12/36] pinctrl: k210: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 14/36] pinctrl: mediatek: " Andy Shevchenko
                   ` (24 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/cirrus/pinctrl-lochnagar.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/cirrus/pinctrl-lochnagar.c b/drivers/pinctrl/cirrus/pinctrl-lochnagar.c
index 3fda4446d70b..0b78cf611afe 100644
--- a/drivers/pinctrl/cirrus/pinctrl-lochnagar.c
+++ b/drivers/pinctrl/cirrus/pinctrl-lochnagar.c
@@ -15,10 +15,12 @@
 #include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
+
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
 
 #include <linux/mfd/lochnagar.h>
 #include <linux/mfd/lochnagar1_regs.h>
-- 
2.35.1


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

* [PATCH v2 14/36] pinctrl: mediatek: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (12 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 13/36] pinctrl: lochnagar: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 15/36] pinctrl: mvebu: " Andy Shevchenko
                   ` (23 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/mediatek/pinctrl-moore.c | 3 +++
 drivers/pinctrl/mediatek/pinctrl-paris.c | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/drivers/pinctrl/mediatek/pinctrl-moore.c b/drivers/pinctrl/mediatek/pinctrl-moore.c
index 526faaebaf77..9474ada5addb 100644
--- a/drivers/pinctrl/mediatek/pinctrl-moore.c
+++ b/drivers/pinctrl/mediatek/pinctrl-moore.c
@@ -9,6 +9,9 @@
  */
 
 #include <linux/gpio/driver.h>
+
+#include <linux/pinctrl/consumer.h>
+
 #include "pinctrl-moore.h"
 
 #define PINCTRL_PINCTRL_DEV		KBUILD_MODNAME
diff --git a/drivers/pinctrl/mediatek/pinctrl-paris.c b/drivers/pinctrl/mediatek/pinctrl-paris.c
index 74517e810958..475f4172d508 100644
--- a/drivers/pinctrl/mediatek/pinctrl-paris.c
+++ b/drivers/pinctrl/mediatek/pinctrl-paris.c
@@ -11,7 +11,12 @@
 
 #include <linux/gpio/driver.h>
 #include <linux/module.h>
+#include <linux/seq_file.h>
+
+#include <linux/pinctrl/consumer.h>
+
 #include <dt-bindings/pinctrl/mt65xx.h>
+
 #include "pinctrl-paris.h"
 
 #define PINCTRL_PINCTRL_DEV	KBUILD_MODNAME
-- 
2.35.1


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

* [PATCH v2 15/36] pinctrl: mvebu: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (13 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 14/36] pinctrl: mediatek: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 16/36] pinctrl: npcm7xx: " Andy Shevchenko
                   ` (22 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/mvebu/pinctrl-mvebu.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c
index 8ef0a97d2bf5..8e6aac4164df 100644
--- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c
+++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c
@@ -6,20 +6,22 @@
  *          Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  */
 
-#include <linux/platform_device.h>
-#include <linux/slab.h>
+#include <linux/err.h>
+#include <linux/gpio/driver.h>
 #include <linux/io.h>
+#include <linux/mfd/syscon.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_platform.h>
-#include <linux/err.h>
-#include <linux/gpio/driver.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/machine.h>
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/mfd/syscon.h>
-#include <linux/regmap.h>
 
 #include "pinctrl-mvebu.h"
 
-- 
2.35.1


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

* [PATCH v2 16/36] pinctrl: npcm7xx: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (14 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 15/36] pinctrl: mvebu: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 17/36] pinctrl: ocelot: " Andy Shevchenko
                   ` (21 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
index 1c4e89b046de..ff5bcea172e8 100644
--- a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
+++ b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
@@ -11,14 +11,17 @@
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
+#include <linux/platform_device.h>
+#include <linux/property.h>
+#include <linux/regmap.h>
+#include <linux/seq_file.h>
+
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/machine.h>
-#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/platform_device.h>
-#include <linux/property.h>
-#include <linux/regmap.h>
 
 /* GCR registers */
 #define NPCM7XX_GCR_PDID	0x00
-- 
2.35.1


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

* [PATCH v2 17/36] pinctrl: ocelot: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (15 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 16/36] pinctrl: npcm7xx: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 18/36] pinctrl: qcom: " Andy Shevchenko
                   ` (20 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-ocelot.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c
index 647e91490bac..a9343c242cd5 100644
--- a/drivers/pinctrl/pinctrl-ocelot.c
+++ b/drivers/pinctrl/pinctrl-ocelot.c
@@ -13,15 +13,17 @@
 #include <linux/of_device.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
-#include <linux/pinctrl/pinctrl.h>
-#include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/reset.h>
 #include <linux/slab.h>
 
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
+
 #include "core.h"
 #include "pinconf.h"
 #include "pinmux.h"
-- 
2.35.1


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

* [PATCH v2 18/36] pinctrl: qcom: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (16 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 17/36] pinctrl: ocelot: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 19/36] pinctrl: renesas: " Andy Shevchenko
                   ` (19 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 8 +++++---
 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c  | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
index 8c31a8f6b7e4..89695b5a2ce7 100644
--- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
+++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c
@@ -9,15 +9,17 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/pinctrl/pinconf-generic.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinmux.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 #include <linux/spmi.h>
 #include <linux/types.h>
 
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinmux.h>
+
 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 
 #include "../core.h"
diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
index 6937157f50b3..063177b79927 100644
--- a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
+++ b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
@@ -7,14 +7,16 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/pinctrl/pinconf-generic.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinmux.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinmux.h>
+
 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
 
 #include "../core.h"
-- 
2.35.1


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

* [PATCH v2 19/36] pinctrl: renesas: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (17 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 18/36] pinctrl: qcom: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 20/36] pinctrl: samsung: " Andy Shevchenko
                   ` (18 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/renesas/pinctrl-rzg2l.c | 7 +++++--
 drivers/pinctrl/renesas/pinctrl-rzv2m.c | 4 +++-
 drivers/pinctrl/renesas/pinctrl.c       | 8 +++++---
 3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
index a43824fd9505..a08eee092430 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
@@ -8,16 +8,19 @@
 #include <linux/bitops.h>
 #include <linux/clk.h>
 #include <linux/gpio/driver.h>
-#include <linux/io.h>
 #include <linux/interrupt.h>
+#include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/of_irq.h>
+#include <linux/seq_file.h>
+#include <linux/spinlock.h>
+
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/pinconf-generic.h>
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/spinlock.h>
 
 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
 
diff --git a/drivers/pinctrl/renesas/pinctrl-rzv2m.c b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
index e8c18198bebd..061f16c77304 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzv2m.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
@@ -15,11 +15,13 @@
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
+#include <linux/spinlock.h>
+
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/pinconf-generic.h>
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/spinlock.h>
 
 #include <dt-bindings/pinctrl/rzv2m-pinctrl.h>
 
diff --git a/drivers/pinctrl/renesas/pinctrl.c b/drivers/pinctrl/renesas/pinctrl.c
index b438d24c13b5..b74147800319 100644
--- a/drivers/pinctrl/renesas/pinctrl.c
+++ b/drivers/pinctrl/renesas/pinctrl.c
@@ -12,14 +12,16 @@
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+#include <linux/spinlock.h>
+
 #include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/machine.h>
-#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/slab.h>
-#include <linux/spinlock.h>
 
 #include "core.h"
 #include "../core.h"
-- 
2.35.1


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

* [PATCH v2 20/36] pinctrl: samsung: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (18 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 19/36] pinctrl: renesas: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 21/36] pinctrl: single: " Andy Shevchenko
                   ` (17 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/samsung/pinctrl-samsung.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c
index bd13b5ef246d..5736761927cb 100644
--- a/drivers/pinctrl/samsung/pinctrl-samsung.c
+++ b/drivers/pinctrl/samsung/pinctrl-samsung.c
@@ -15,15 +15,16 @@
 // but provides extensions to which platform specific implementation of the gpio
 // and wakeup interrupts can be hooked to.
 
-#include <linux/init.h>
-#include <linux/platform_device.h>
-#include <linux/io.h>
-#include <linux/property.h>
-#include <linux/slab.h>
 #include <linux/err.h>
 #include <linux/gpio/driver.h>
+#include <linux/init.h>
+#include <linux/io.h>
 #include <linux/irqdomain.h>
 #include <linux/of_device.h>
+#include <linux/platform_device.h>
+#include <linux/property.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
 #include <linux/spinlock.h>
 
 #include "../core.h"
-- 
2.35.1


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

* [PATCH v2 21/36] pinctrl: single: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (19 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 20/36] pinctrl: samsung: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 22/36] pinctrl: spear: " Andy Shevchenko
                   ` (16 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-single.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index 67bec7ea0f8b..bed97ac5b848 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -16,17 +16,16 @@
 #include <linux/err.h>
 #include <linux/list.h>
 #include <linux/interrupt.h>
-
 #include <linux/irqchip/chained_irq.h>
-
 #include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
+#include <linux/seq_file.h>
 
+#include <linux/pinctrl/pinconf-generic.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf-generic.h>
 
 #include <linux/platform_data/pinctrl-single.h>
 
-- 
2.35.1


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

* [PATCH v2 22/36] pinctrl: spear: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (20 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 21/36] pinctrl: single: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-11  2:56   ` Viresh Kumar
  2022-10-10 20:14 ` [PATCH v2 23/36] pinctrl: sprd: " Andy Shevchenko
                   ` (15 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/spear/pinctrl-spear.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c
index e0543c1ad641..18de2e70ea50 100644
--- a/drivers/pinctrl/spear/pinctrl-spear.c
+++ b/drivers/pinctrl/spear/pinctrl-spear.c
@@ -19,11 +19,13 @@
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_gpio.h>
+#include <linux/platform_device.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/machine.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/platform_device.h>
-#include <linux/slab.h>
 
 #include "pinctrl-spear.h"
 
-- 
2.35.1


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

* [PATCH v2 23/36] pinctrl: sprd: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (21 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 22/36] pinctrl: spear: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-13  1:23   ` Baolin Wang
  2022-10-10 20:14 ` [PATCH v2 24/36] pinctrl: st: " Andy Shevchenko
                   ` (14 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/sprd/pinctrl-sprd.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c
index dca7a505d413..c1806b7dcf78 100644
--- a/drivers/pinctrl/sprd/pinctrl-sprd.c
+++ b/drivers/pinctrl/sprd/pinctrl-sprd.c
@@ -13,12 +13,14 @@
 #include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
+#include <linux/slab.h>
+
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/machine.h>
-#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/slab.h>
 
 #include "../core.h"
 #include "../pinmux.h"
-- 
2.35.1


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

* [PATCH v2 24/36] pinctrl: st: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (22 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 23/36] pinctrl: sprd: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 25/36] pinctrl: starfive: " Andy Shevchenko
                   ` (13 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-st.c | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c
index cf7f9cbe6044..985dfceb127d 100644
--- a/drivers/pinctrl/pinctrl-st.c
+++ b/drivers/pinctrl/pinctrl-st.c
@@ -5,21 +5,26 @@
  *	Srinivas Kandagatla <srinivas.kandagatla@st.com>
  */
 
-#include <linux/init.h>
-#include <linux/module.h>
-#include <linux/slab.h>
 #include <linux/err.h>
+#include <linux/gpio/driver.h>
+#include <linux/init.h>
 #include <linux/io.h>
+#include <linux/mfd/syscon.h>
+#include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_irq.h>
 #include <linux/of_address.h>
-#include <linux/gpio/driver.h>
+#include <linux/of_irq.h>
+#include <linux/platform_device.h>
 #include <linux/regmap.h>
-#include <linux/mfd/syscon.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+#include <linux/string_helpers.h>
+
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/platform_device.h>
+
 #include "core.h"
 
 /* PIO Block registers */
-- 
2.35.1


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

* [PATCH v2 25/36] pinctrl: starfive: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (23 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 24/36] pinctrl: st: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 26/36] pinctrl: stm32: " Andy Shevchenko
                   ` (12 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c b/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c
index 5b544fb7f3d8..6a8a9cfe8965 100644
--- a/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c
+++ b/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c
@@ -15,8 +15,10 @@
 #include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reset.h>
+#include <linux/seq_file.h>
 #include <linux/spinlock.h>
 
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
 
-- 
2.35.1


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

* [PATCH v2 26/36] pinctrl: stm32: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (24 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 25/36] pinctrl: starfive: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 27/36] pinctrl: stmfx: " Andy Shevchenko
                   ` (11 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/stm32/pinctrl-stm32.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index e485506ea599..cc9472b28404 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -13,22 +13,24 @@
 #include <linux/irq.h>
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
-#include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/pinctrl/consumer.h>
-#include <linux/pinctrl/machine.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
-#include <linux/pinctrl/pinctrl.h>
-#include <linux/pinctrl/pinmux.h>
 #include <linux/platform_device.h>
 #include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/reset.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/machine.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
+
 #include "../core.h"
 #include "../pinconf.h"
 #include "../pinctrl-utils.h"
-- 
2.35.1


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

* [PATCH v2 27/36] pinctrl: stmfx: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (25 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 26/36] pinctrl: stm32: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 28/36] pinctrl: tegra: " Andy Shevchenko
                   ` (10 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-stmfx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c
index ab4dde40d3ed..1181c4b506b1 100644
--- a/drivers/pinctrl/pinctrl-stmfx.c
+++ b/drivers/pinctrl/pinctrl-stmfx.c
@@ -10,6 +10,8 @@
 #include <linux/mfd/stmfx.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
+#include <linux/seq_file.h>
+
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinmux.h>
 
-- 
2.35.1


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

* [PATCH v2 28/36] pinctrl: tegra: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (26 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 27/36] pinctrl: stmfx: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 29/36] pinctrl: ti-iodelay: " Andy Shevchenko
                   ` (9 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/tegra/pinctrl-tegra.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.c b/drivers/pinctrl/tegra/pinctrl-tegra.c
index 50bd26a30ac0..834a2d50f89b 100644
--- a/drivers/pinctrl/tegra/pinctrl-tegra.c
+++ b/drivers/pinctrl/tegra/pinctrl-tegra.c
@@ -15,11 +15,13 @@
 #include <linux/io.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
+#include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/machine.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/slab.h>
 
 #include "../core.h"
 #include "../pinctrl-utils.h"
-- 
2.35.1


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

* [PATCH v2 29/36] pinctrl: ti-iodelay: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (27 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 28/36] pinctrl: tegra: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 30/36] pinctrl: uniphier: " Andy Shevchenko
                   ` (8 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/ti/pinctrl-ti-iodelay.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
index 4e2382778d38..53abddaebce1 100644
--- a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
+++ b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
@@ -15,12 +15,14 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
-#include <linux/pinctrl/pinctrl.h>
 #include <linux/regmap.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinctrl.h>
+
 #include "../core.h"
 #include "../devicetree.h"
 
-- 
2.35.1


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

* [PATCH v2 30/36] pinctrl: uniphier: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (28 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 29/36] pinctrl: ti-iodelay: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 31/36] pinctrl: zynqmp: " Andy Shevchenko
                   ` (7 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
index ade348b49b31..18d3a4f69e63 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
@@ -6,12 +6,14 @@
 #include <linux/list.h>
 #include <linux/mfd/syscon.h>
 #include <linux/of.h>
-#include <linux/pinctrl/pinconf.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
+#include <linux/seq_file.h>
+
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/platform_device.h>
-#include <linux/regmap.h>
 
 #include "../core.h"
 #include "../pinctrl-utils.h"
-- 
2.35.1


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

* [PATCH v2 31/36] pinctrl: zynqmp: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (29 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 30/36] pinctrl: uniphier: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 32/36] pinctrl: cherryview: " Andy Shevchenko
                   ` (6 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/pinctrl-zynqmp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c
index 7d2fbf8a02cd..1a94db1ffa4f 100644
--- a/drivers/pinctrl/pinctrl-zynqmp.c
+++ b/drivers/pinctrl/pinctrl-zynqmp.c
@@ -14,10 +14,12 @@
 #include <linux/module.h>
 #include <linux/of_address.h>
 #include <linux/platform_device.h>
+
 #include <linux/firmware/xlnx-zynqmp.h>
 
-#include <linux/pinctrl/pinmux.h>
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
 
 #include "core.h"
 #include "pinctrl-utils.h"
-- 
2.35.1


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

* [PATCH v2 32/36] pinctrl: cherryview: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (30 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 31/36] pinctrl: zynqmp: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 33/36] pinctrl: lynxpoint: " Andy Shevchenko
                   ` (5 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/intel/pinctrl-cherryview.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/intel/pinctrl-cherryview.c b/drivers/pinctrl/intel/pinctrl-cherryview.c
index 5c4fd16e5b01..11b81213922d 100644
--- a/drivers/pinctrl/intel/pinctrl-cherryview.c
+++ b/drivers/pinctrl/intel/pinctrl-cherryview.c
@@ -16,12 +16,14 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
+#include <linux/seq_file.h>
 #include <linux/types.h>
 
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
 
 #include "pinctrl-intel.h"
 
-- 
2.35.1


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

* [PATCH v2 33/36] pinctrl: lynxpoint: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (31 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 32/36] pinctrl: cherryview: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 34/36] pinctrl: merrifield: " Andy Shevchenko
                   ` (4 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/intel/pinctrl-lynxpoint.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/intel/pinctrl-lynxpoint.c b/drivers/pinctrl/intel/pinctrl-lynxpoint.c
index 5d1abee30f8f..8d05dad38556 100644
--- a/drivers/pinctrl/intel/pinctrl-lynxpoint.c
+++ b/drivers/pinctrl/intel/pinctrl-lynxpoint.c
@@ -16,13 +16,15 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 
+#include <linux/pinctrl/consumer.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
-#include <linux/pinctrl/pinconf.h>
-#include <linux/pinctrl/pinconf-generic.h>
 
 #include "pinctrl-intel.h"
 
-- 
2.35.1


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

* [PATCH v2 34/36] pinctrl: merrifield: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (32 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 33/36] pinctrl: lynxpoint: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-10 20:14 ` [PATCH v2 35/36] pinctrl: intel: " Andy Shevchenko
                   ` (3 subsequent siblings)
  37 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/intel/pinctrl-merrifield.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/intel/pinctrl-merrifield.c b/drivers/pinctrl/intel/pinctrl-merrifield.c
index 5e752818adb4..527957ea35b7 100644
--- a/drivers/pinctrl/intel/pinctrl-merrifield.c
+++ b/drivers/pinctrl/intel/pinctrl-merrifield.c
@@ -12,8 +12,10 @@
 #include <linux/module.h>
 #include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
-#include <linux/pinctrl/pinconf.h>
+#include <linux/seq_file.h>
+
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
 
-- 
2.35.1


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

* [PATCH v2 35/36] pinctrl: intel: Add missed header(s)
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (33 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 34/36] pinctrl: merrifield: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
  2022-10-13 14:53   ` Mika Westerberg
  2022-10-10 20:14 ` [PATCH v2 36/36] pinctrl: Clean up headers Andy Shevchenko
                   ` (2 subsequent siblings)
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/intel/pinctrl-intel.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c
index 52ecd66ce357..b85140eaa9c4 100644
--- a/drivers/pinctrl/intel/pinctrl-intel.c
+++ b/drivers/pinctrl/intel/pinctrl-intel.c
@@ -14,12 +14,14 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/property.h>
+#include <linux/seq_file.h>
 #include <linux/time.h>
 
-#include <linux/pinctrl/pinctrl.h>
-#include <linux/pinctrl/pinmux.h>
+#include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
 
 #include "../core.h"
 #include "pinctrl-intel.h"
-- 
2.35.1


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

* [PATCH v2 36/36] pinctrl: Clean up headers
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (34 preceding siblings ...)
  2022-10-10 20:14 ` [PATCH v2 35/36] pinctrl: intel: " Andy Shevchenko
@ 2022-10-10 20:14 ` Andy Shevchenko
       [not found]   ` <d63088d7-202b-a550-01e5-345a22de5f7d@amd.com>
       [not found] ` <0684f480-2092-d520-2c8e-bd9a2dca47e3@gmail.com>
  2022-10-17  9:02 ` Linus Walleij
  37 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-10 20:14 UTC (permalink / raw)
  To: Marc Zyngier, Andy Shevchenko, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Damien Le Moal, Scott Branden,
	Andrew Jeffery, Patrick Venture, Sean Wang, Nicolas Ferre,
	Avi Fishman, Masami Hiramatsu, Pengutronix Kernel Team,
	Chunyan Zhang, Emil Renner Berthing, Sebastian Hesselbarth,
	Shawn Guo, Andreas Färber

There is a few things done:
- include only the headers we are direct user of
- when pointer is in use, provide a forward declaration
- add missed headers
- group generic headers and subsystem headers
- sort each group alphabetically

While at it, fix some awkward indentations.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/core.c                  | 19 ++++++++-------
 drivers/pinctrl/core.h                  | 12 +++++++++-
 drivers/pinctrl/devicetree.h            |  6 +++++
 drivers/pinctrl/pinconf.h               | 10 ++++++++
 drivers/pinctrl/pinctrl-utils.h         |  5 ++++
 drivers/pinctrl/pinmux.c                | 17 ++++++++------
 drivers/pinctrl/pinmux.h                | 11 +++++++++
 include/linux/pinctrl/consumer.h        | 31 +++++++++++--------------
 include/linux/pinctrl/devinfo.h         |  6 +++--
 include/linux/pinctrl/machine.h         |  8 ++++---
 include/linux/pinctrl/pinconf-generic.h | 23 ++++++++++--------
 include/linux/pinctrl/pinctrl.h         | 18 +++++++-------
 include/linux/pinctrl/pinmux.h          |  5 ++--
 13 files changed, 110 insertions(+), 61 deletions(-)

diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 9e57f4c62e60..655f9502e73f 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -12,19 +12,21 @@
  */
 #define pr_fmt(fmt) "pinctrl core: " fmt
 
-#include <linux/kernel.h>
-#include <linux/kref.h>
-#include <linux/export.h>
-#include <linux/init.h>
+#include <linux/debugfs.h>
 #include <linux/device.h>
-#include <linux/slab.h>
 #include <linux/err.h>
+#include <linux/export.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
+#include <linux/kref.h>
 #include <linux/list.h>
-#include <linux/debugfs.h>
 #include <linux/seq_file.h>
+#include <linux/slab.h>
+
 #include <linux/pinctrl/consumer.h>
-#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/devinfo.h>
 #include <linux/pinctrl/machine.h>
+#include <linux/pinctrl/pinctrl.h>
 
 #ifdef CONFIG_GPIOLIB
 #include "../gpio/gpiolib.h"
@@ -33,9 +35,8 @@
 
 #include "core.h"
 #include "devicetree.h"
-#include "pinmux.h"
 #include "pinconf.h"
-
+#include "pinmux.h"
 
 static bool pinctrl_dummy_state;
 
diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h
index 840103c40c14..4d0bdb9fb99b 100644
--- a/drivers/pinctrl/core.h
+++ b/drivers/pinctrl/core.h
@@ -9,12 +9,22 @@
  */
 
 #include <linux/kref.h>
+#include <linux/list.h>
 #include <linux/mutex.h>
 #include <linux/radix-tree.h>
-#include <linux/pinctrl/pinconf.h>
+#include <linux/types.h>
+
 #include <linux/pinctrl/machine.h>
 
+struct dentry;
+struct device;
+struct device_node;
+struct module;
+
+struct pinctrl;
+struct pinctrl_desc;
 struct pinctrl_gpio_range;
+struct pinctrl_state;
 
 /**
  * struct pinctrl_dev - pin control class device
diff --git a/drivers/pinctrl/devicetree.h b/drivers/pinctrl/devicetree.h
index efa80779de4f..def76aba99d1 100644
--- a/drivers/pinctrl/devicetree.h
+++ b/drivers/pinctrl/devicetree.h
@@ -5,8 +5,14 @@
  * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
  */
 
+#include <linux/errno.h>
+
+struct device_node;
 struct of_phandle_args;
 
+struct pinctrl;
+struct pinctrl_dev;
+
 #ifdef CONFIG_OF
 
 void pinctrl_dt_free_maps(struct pinctrl *p);
diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h
index be7311373299..694bfc9961fa 100644
--- a/drivers/pinctrl/pinconf.h
+++ b/drivers/pinctrl/pinconf.h
@@ -10,6 +10,16 @@
  * Author: Linus Walleij <linus.walleij@linaro.org>
  */
 
+#include <linux/errno.h>
+
+struct dentry;
+struct device_node;
+struct seq_file;
+
+struct pinctrl_dev;
+struct pinctrl_map;
+struct pinctrl_setting;
+
 #ifdef CONFIG_PINCONF
 
 int pinconf_check_ops(struct pinctrl_dev *pctldev);
diff --git a/drivers/pinctrl/pinctrl-utils.h b/drivers/pinctrl/pinctrl-utils.h
index cec407a8cc4e..4108ee2dd6d0 100644
--- a/drivers/pinctrl/pinctrl-utils.h
+++ b/drivers/pinctrl/pinctrl-utils.h
@@ -9,6 +9,11 @@
 #ifndef __PINCTRL_UTILS_H__
 #define __PINCTRL_UTILS_H__
 
+#include <linux/pinctrl/machine.h>
+
+struct pinctrl_dev;
+struct pinctrl_map;
+
 int pinctrl_utils_reserve_map(struct pinctrl_dev *pctldev,
 		struct pinctrl_map **map, unsigned *reserved_maps,
 		unsigned *num_maps, unsigned reserve);
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c
index f94d43b082d9..6bd7ac37a0e0 100644
--- a/drivers/pinctrl/pinmux.c
+++ b/drivers/pinctrl/pinmux.c
@@ -13,19 +13,22 @@
 #define pr_fmt(fmt) "pinmux core: " fmt
 
 #include <linux/ctype.h>
-#include <linux/kernel.h>
-#include <linux/module.h>
-#include <linux/init.h>
+#include <linux/debugfs.h>
 #include <linux/device.h>
-#include <linux/slab.h>
-#include <linux/radix-tree.h>
 #include <linux/err.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
 #include <linux/list.h>
-#include <linux/string.h>
-#include <linux/debugfs.h>
+#include <linux/module.h>
+#include <linux/radix-tree.h>
 #include <linux/seq_file.h>
+#include <linux/slab.h>
+#include <linux/string.h>
+
 #include <linux/pinctrl/machine.h>
+#include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
+
 #include "core.h"
 #include "pinmux.h"
 
diff --git a/drivers/pinctrl/pinmux.h b/drivers/pinctrl/pinmux.h
index 72fcf03eaa43..ea6f99c24aa5 100644
--- a/drivers/pinctrl/pinmux.h
+++ b/drivers/pinctrl/pinmux.h
@@ -9,6 +9,17 @@
  *
  * Author: Linus Walleij <linus.walleij@linaro.org>
  */
+
+#include <linux/types.h>
+
+struct dentry;
+struct seq_file;
+
+struct pinctrl_dev;
+struct pinctrl_gpio_range;
+struct pinctrl_map;
+struct pinctrl_setting;
+
 #ifdef CONFIG_PINMUX
 
 int pinmux_check_ops(struct pinctrl_dev *pctldev);
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index 019fecd75d0c..4729d54e8995 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -12,14 +12,15 @@
 #define __LINUX_PINCTRL_CONSUMER_H
 
 #include <linux/err.h>
-#include <linux/list.h>
-#include <linux/seq_file.h>
+#include <linux/types.h>
+
 #include <linux/pinctrl/pinctrl-state.h>
 
+struct device;
+
 /* This struct is private to the core and should be regarded as a cookie */
 struct pinctrl;
 struct pinctrl_state;
-struct device;
 
 #ifdef CONFIG_PINCTRL
 
@@ -33,9 +34,8 @@ extern int pinctrl_gpio_set_config(unsigned gpio, unsigned long config);
 
 extern struct pinctrl * __must_check pinctrl_get(struct device *dev);
 extern void pinctrl_put(struct pinctrl *p);
-extern struct pinctrl_state * __must_check pinctrl_lookup_state(
-							struct pinctrl *p,
-							const char *name);
+extern struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p,
+								const char *name);
 extern int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s);
 
 extern struct pinctrl * __must_check devm_pinctrl_get(struct device *dev);
@@ -101,9 +101,8 @@ static inline void pinctrl_put(struct pinctrl *p)
 {
 }
 
-static inline struct pinctrl_state * __must_check pinctrl_lookup_state(
-							struct pinctrl *p,
-							const char *name)
+static inline struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p,
+								       const char *name)
 {
 	return NULL;
 }
@@ -145,8 +144,8 @@ static inline int pinctrl_pm_select_idle_state(struct device *dev)
 
 #endif /* CONFIG_PINCTRL */
 
-static inline struct pinctrl * __must_check pinctrl_get_select(
-					struct device *dev, const char *name)
+static inline struct pinctrl * __must_check pinctrl_get_select(struct device *dev,
+							       const char *name)
 {
 	struct pinctrl *p;
 	struct pinctrl_state *s;
@@ -171,14 +170,13 @@ static inline struct pinctrl * __must_check pinctrl_get_select(
 	return p;
 }
 
-static inline struct pinctrl * __must_check pinctrl_get_select_default(
-					struct device *dev)
+static inline struct pinctrl * __must_check pinctrl_get_select_default(struct device *dev)
 {
 	return pinctrl_get_select(dev, PINCTRL_STATE_DEFAULT);
 }
 
-static inline struct pinctrl * __must_check devm_pinctrl_get_select(
-					struct device *dev, const char *name)
+static inline struct pinctrl * __must_check devm_pinctrl_get_select(struct device *dev,
+								    const char *name)
 {
 	struct pinctrl *p;
 	struct pinctrl_state *s;
@@ -203,8 +201,7 @@ static inline struct pinctrl * __must_check devm_pinctrl_get_select(
 	return p;
 }
 
-static inline struct pinctrl * __must_check devm_pinctrl_get_select_default(
-					struct device *dev)
+static inline struct pinctrl * __must_check devm_pinctrl_get_select_default(struct device *dev)
 {
 	return devm_pinctrl_get_select(dev, PINCTRL_STATE_DEFAULT);
 }
diff --git a/include/linux/pinctrl/devinfo.h b/include/linux/pinctrl/devinfo.h
index a48ff69acddd..9e8b559e1253 100644
--- a/include/linux/pinctrl/devinfo.h
+++ b/include/linux/pinctrl/devinfo.h
@@ -14,11 +14,15 @@
 #ifndef PINCTRL_DEVINFO_H
 #define PINCTRL_DEVINFO_H
 
+struct device;
+
 #ifdef CONFIG_PINCTRL
 
 /* The device core acts as a consumer toward pinctrl */
 #include <linux/pinctrl/consumer.h>
 
+struct pinctrl;
+
 /**
  * struct dev_pin_info - pin state container for devices
  * @p: pinctrl handle for the containing device
@@ -42,8 +46,6 @@ extern int pinctrl_init_done(struct device *dev);
 
 #else
 
-struct device;
-
 /* Stubs if we're not using pinctrl */
 
 static inline int pinctrl_bind_pins(struct device *dev)
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h
index e987dc9fd2af..0639b36f43c5 100644
--- a/include/linux/pinctrl/machine.h
+++ b/include/linux/pinctrl/machine.h
@@ -11,7 +11,7 @@
 #ifndef __LINUX_PINCTRL_MACHINE_H
 #define __LINUX_PINCTRL_MACHINE_H
 
-#include <linux/bug.h>
+#include <linux/kernel.h>	/* ARRAY_SIZE() */
 
 #include <linux/pinctrl/pinctrl-state.h>
 
@@ -149,16 +149,18 @@ struct pinctrl_map {
 #define PIN_MAP_CONFIGS_GROUP_HOG_DEFAULT(dev, grp, cfgs)		\
 	PIN_MAP_CONFIGS_GROUP(dev, PINCTRL_STATE_DEFAULT, dev, grp, cfgs)
 
+struct pinctrl_map;
+
 #ifdef CONFIG_PINCTRL
 
 extern int pinctrl_register_mappings(const struct pinctrl_map *map,
-				unsigned num_maps);
+				     unsigned num_maps);
 extern void pinctrl_unregister_mappings(const struct pinctrl_map *map);
 extern void pinctrl_provide_dummies(void);
 #else
 
 static inline int pinctrl_register_mappings(const struct pinctrl_map *map,
-					   unsigned num_maps)
+					    unsigned num_maps)
 {
 	return 0;
 }
diff --git a/include/linux/pinctrl/pinconf-generic.h b/include/linux/pinctrl/pinconf-generic.h
index 2422211d6a5a..940fc4e9e17c 100644
--- a/include/linux/pinctrl/pinconf-generic.h
+++ b/include/linux/pinctrl/pinconf-generic.h
@@ -11,9 +11,12 @@
 #ifndef __LINUX_PINCTRL_PINCONF_GENERIC_H
 #define __LINUX_PINCTRL_PINCONF_GENERIC_H
 
-#include <linux/device.h>
+#include <linux/types.h>
+
 #include <linux/pinctrl/machine.h>
 
+struct device_node;
+
 struct pinctrl_dev;
 struct pinctrl_map;
 
@@ -196,25 +199,25 @@ int pinconf_generic_dt_node_to_map(struct pinctrl_dev *pctldev,
 void pinconf_generic_dt_free_map(struct pinctrl_dev *pctldev,
 		struct pinctrl_map *map, unsigned num_maps);
 
-static inline int pinconf_generic_dt_node_to_map_group(
-		struct pinctrl_dev *pctldev, struct device_node *np_config,
-		struct pinctrl_map **map, unsigned *num_maps)
+static inline int pinconf_generic_dt_node_to_map_group(struct pinctrl_dev *pctldev,
+		struct device_node *np_config, struct pinctrl_map **map,
+		unsigned *num_maps)
 {
 	return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps,
 			PIN_MAP_TYPE_CONFIGS_GROUP);
 }
 
-static inline int pinconf_generic_dt_node_to_map_pin(
-		struct pinctrl_dev *pctldev, struct device_node *np_config,
-		struct pinctrl_map **map, unsigned *num_maps)
+static inline int pinconf_generic_dt_node_to_map_pin(struct pinctrl_dev *pctldev,
+		struct device_node *np_config, struct pinctrl_map **map,
+		unsigned *num_maps)
 {
 	return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps,
 			PIN_MAP_TYPE_CONFIGS_PIN);
 }
 
-static inline int pinconf_generic_dt_node_to_map_all(
-		struct pinctrl_dev *pctldev, struct device_node *np_config,
-		struct pinctrl_map **map, unsigned *num_maps)
+static inline int pinconf_generic_dt_node_to_map_all(struct pinctrl_dev *pctldev,
+		struct device_node *np_config, struct pinctrl_map **map,
+		unsigned *num_maps)
 {
 	/*
 	 * passing the type as PIN_MAP_TYPE_INVALID causes the underlying parser
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
index 487117ccb1bc..31fe992412f0 100644
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
@@ -11,20 +11,20 @@
 #ifndef __LINUX_PINCTRL_PINCTRL_H
 #define __LINUX_PINCTRL_PINCTRL_H
 
-#include <linux/radix-tree.h>
-#include <linux/list.h>
-#include <linux/seq_file.h>
-#include <linux/pinctrl/pinctrl-state.h>
-#include <linux/pinctrl/devinfo.h>
+#include <linux/types.h>
 
 struct device;
+struct device_node;
+struct gpio_chip;
+struct module;
+struct seq_file;
+
+struct pin_config_item;
+struct pinconf_generic_params;
+struct pinconf_ops;
 struct pinctrl_dev;
 struct pinctrl_map;
 struct pinmux_ops;
-struct pinconf_ops;
-struct pin_config_item;
-struct gpio_chip;
-struct device_node;
 
 /**
  * struct pingroup - provides information on pingroup
diff --git a/include/linux/pinctrl/pinmux.h b/include/linux/pinctrl/pinmux.h
index 9a647fa5c8f1..a7e370965c53 100644
--- a/include/linux/pinctrl/pinmux.h
+++ b/include/linux/pinctrl/pinmux.h
@@ -11,11 +11,10 @@
 #ifndef __LINUX_PINCTRL_PINMUX_H
 #define __LINUX_PINCTRL_PINMUX_H
 
-#include <linux/list.h>
-#include <linux/seq_file.h>
-#include <linux/pinctrl/pinctrl.h>
+#include <linux/types.h>
 
 struct pinctrl_dev;
+struct pinctrl_gpio_range;
 
 /**
  * struct pinmux_ops - pinmux operations, to be implemented by pin controller
-- 
2.35.1


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

* Re: [PATCH v2 12/36] pinctrl: k210: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 12/36] pinctrl: k210: " Andy Shevchenko
@ 2022-10-10 22:33   ` Damien Le Moal
  0 siblings, 0 replies; 72+ messages in thread
From: Damien Le Moal @ 2022-10-10 22:33 UTC (permalink / raw)
  To: Andy Shevchenko, Marc Zyngier, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio@vger.kernel.org,
	linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org,
	linux-actions@lists.infradead.org, linux-aspeed@lists.ozlabs.org,
	openbmc@lists.ozlabs.org, linux-rpi-kernel@lists.infradead.org,
	alsa-devel@alsa-project.org, patches@opensource.cirrus.com,
	linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org,
	linux-riscv@lists.infradead.org, linux-omap@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	linux-samsung-soc@vger.kernel.org
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair,
	soc@kernel.org, Viresh Kumar, Gregory Clement, Chen-Yu Tsai,
	Jonathan Hunter, Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Baolin Wang,
	Shiraz Hashim, Dong Aisheng, Scott Branden, Andrew Jeffery,
	Patrick Venture, Sean Wang, Nicolas Ferre, Avi Fishman,
	Masami Hiramatsu, Pengutronix Kernel Team, Chunyan Zhang,
	Emil Renner Berthing, Sebastian Hesselbarth, Shawn Guo,
	Andreas Färber

On 2022/10/11 5:15, Andy Shevchenko wrote:
> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
> 
> While at it, sort headers alphabetically.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Looks OK to me, but the patch title should be:

pinctrl: k210: Add missing header(s)

Same remark for the entire series. You need s/missed/missing in all patch titles.

With that fixed,

Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>

> ---
>  drivers/pinctrl/pinctrl-k210.c | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c
> index ecab6bf63dc6..288e44457fec 100644
> --- a/drivers/pinctrl/pinctrl-k210.c
> +++ b/drivers/pinctrl/pinctrl-k210.c
> @@ -3,18 +3,20 @@
>   * Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
>   * Copyright (c) 2020 Western Digital Corporation or its affiliates.
>   */
> -#include <linux/io.h>
> -#include <linux/of_device.h>
> +#include <linux/bitfield.h>
>  #include <linux/clk.h>
> +#include <linux/io.h>
>  #include <linux/mfd/syscon.h>
> +#include <linux/of_device.h>
>  #include <linux/platform_device.h>
> -#include <linux/bitfield.h>
>  #include <linux/regmap.h>
> +#include <linux/seq_file.h>
>  #include <linux/slab.h>
> +
> +#include <linux/pinctrl/pinconf-generic.h>
> +#include <linux/pinctrl/pinconf.h>
>  #include <linux/pinctrl/pinctrl.h>
>  #include <linux/pinctrl/pinmux.h>
> -#include <linux/pinctrl/pinconf.h>
> -#include <linux/pinctrl/pinconf-generic.h>
>  
>  #include <dt-bindings/pinctrl/k210-fpioa.h>
>  

-- 
Damien Le Moal
Western Digital Research


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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 02/36] gpiolib: cdev: " Andy Shevchenko
@ 2022-10-11  0:01   ` Kent Gibson
       [not found]     ` <CAHp75Vf4oS8g0zxgismtLrzsJ7AE-bdMEq+GAzx2=Mwnhuk3UA@mail.gmail.com>
  2022-10-12 13:30     ` Andy Shevchenko
  0 siblings, 2 replies; 72+ messages in thread
From: Kent Gibson @ 2022-10-11  0:01 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Tomer Maimon, Geert Uytterhoeven, Linus Walleij,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, alsa-devel, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	Alexandre Belloni, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:
> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
> 
> While at it, sort headers alphabetically.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/gpio/gpiolib-cdev.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c
> index f8041d4898d1..60a60e2d60c5 100644
> --- a/drivers/gpio/gpiolib-cdev.c
> +++ b/drivers/gpio/gpiolib-cdev.c
> @@ -10,8 +10,9 @@
>  #include <linux/device.h>
>  #include <linux/err.h>
>  #include <linux/file.h>
> -#include <linux/gpio.h>
>  #include <linux/gpio/driver.h>
> +#include <linux/gpio.h>
> +#include <linux/hte.h>

Ok with the hte re-order.

But moving the gpio subsystem header after the gpio/driver is not
alphabetical ('.' precedes '/') and it read better and made more sense
to me the way it was.

>  #include <linux/interrupt.h>
>  #include <linux/irqreturn.h>
>  #include <linux/kernel.h>
> @@ -20,11 +21,12 @@
>  #include <linux/mutex.h>
>  #include <linux/pinctrl/consumer.h>
>  #include <linux/poll.h>
> +#include <linux/seq_file.h>

I wasn't aware that we use anything from seq_file.
What am I missing?

Cheers,
Kent.

>  #include <linux/spinlock.h>
>  #include <linux/timekeeping.h>
>  #include <linux/uaccess.h>
>  #include <linux/workqueue.h>
> -#include <linux/hte.h>
> +
>  #include <uapi/linux/gpio.h>
>  
>  #include "gpiolib.h"
> -- 
> 2.35.1
> 

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

* Re: [PATCH v2 22/36] pinctrl: spear: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 22/36] pinctrl: spear: " Andy Shevchenko
@ 2022-10-11  2:56   ` Viresh Kumar
  0 siblings, 0 replies; 72+ messages in thread
From: Viresh Kumar @ 2022-10-11  2:56 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Linus Walleij, Tomasz Figa, Rafał Miłecki,
	Horatiu Vultur, Emil Renner Berthing, Phil Edworthy,
	linux-samsung-soc, Samuel Holland, Michal Simek,
	Ludovic Desroches, NXP Linux Team, Tali Perry, Sascha Hauer,
	Thomas Gleixner, linux-omap, Andy Shevchenko, Scott Branden,
	Andrew Jeffery, linux-stm32, linux-kernel, Masami Hiramatsu,
	Pengutronix Kernel Team, Claudiu Beznea, Alexandre Belloni,
	Alim Akhtar, linux-aspeed, Thierry Reding, Viresh Kumar,
	Gregory Clement, Jonathan Hunter, Fabien Dessenne, linux-media,
	Charles Keepax, linux-arm-msm, Nicolas Ferre, linux-actions,
	linux-gpio, soc, linux-rpi-kernel, Mika Westerberg,
	linux-arm-kernel, Dong Aisheng, Damien Le Moal, linux-renesas-soc,
	Maxime Coquelin, Jacky Bai, Basavaraj Natikar, alsa-devel,
	Fabio Estevam, Florian Fainelli, Benjamin Fair, Nancy Yuen,
	Chen-Yu Tsai, Broadcom internal kernel review list, Joel Stanley,
	Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On 10-10-22, 23:14, Andy Shevchenko wrote:
> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
> 
> While at it, sort headers alphabetically.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/pinctrl/spear/pinctrl-spear.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c
> index e0543c1ad641..18de2e70ea50 100644
> --- a/drivers/pinctrl/spear/pinctrl-spear.c
> +++ b/drivers/pinctrl/spear/pinctrl-spear.c
> @@ -19,11 +19,13 @@
>  #include <linux/of.h>
>  #include <linux/of_address.h>
>  #include <linux/of_gpio.h>
> +#include <linux/platform_device.h>
> +#include <linux/seq_file.h>
> +#include <linux/slab.h>
> +
>  #include <linux/pinctrl/machine.h>
>  #include <linux/pinctrl/pinctrl.h>
>  #include <linux/pinctrl/pinmux.h>
> -#include <linux/platform_device.h>
> -#include <linux/slab.h>
>  
>  #include "pinctrl-spear.h"

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
       [not found]     ` <CAHp75Vf4oS8g0zxgismtLrzsJ7AE-bdMEq+GAzx2=Mwnhuk3UA@mail.gmail.com>
@ 2022-10-11 13:48       ` Andy Shevchenko
  2022-10-11 14:13         ` Kent Gibson
  0 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-11 13:48 UTC (permalink / raw)
  To: Kent Gibson
  Cc: alsa-devel, linux-samsung-soc, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-mediatek, linux-rpi-kernel,
	linux-arm-msm, linux-tegra, linux-riscv, linux-omap, openbmc,
	linux-arm-kernel, linux-media

On Tue, Oct 11, 2022 at 11:05:42AM +0300, Andy Shevchenko wrote:
> On Tue, Oct 11, 2022 at 3:02 AM Kent Gibson <warthog618@gmail.com> wrote:
> > On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:

...

> > > -#include <linux/gpio.h>
> > >  #include <linux/gpio/driver.h>
> > > +#include <linux/gpio.h>
> > > +#include <linux/hte.h>
> >
> > Ok with the hte re-order.
> >
> > But moving the gpio subsystem header after the gpio/driver is not
> > alphabetical ('.' precedes '/') and it read better and made more sense
> > to me the way it was.
> 
> I see, I guess this is vim sort vs shell sort. Strange, they should
> follow the locale settings...

I have checked, the shell and vim sort gave the same result as in this patch.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-11 13:48       ` Andy Shevchenko
@ 2022-10-11 14:13         ` Kent Gibson
  2022-10-11 14:28           ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Kent Gibson @ 2022-10-11 14:13 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: alsa-devel, linux-samsung-soc, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-mediatek, linux-rpi-kernel,
	linux-arm-msm, linux-tegra, linux-riscv, linux-omap, openbmc,
	linux-arm-kernel, linux-media

On Tue, Oct 11, 2022 at 04:48:17PM +0300, Andy Shevchenko wrote:
> On Tue, Oct 11, 2022 at 11:05:42AM +0300, Andy Shevchenko wrote:
> > On Tue, Oct 11, 2022 at 3:02 AM Kent Gibson <warthog618@gmail.com> wrote:
> > > On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:
> 
> ...
> 
> > > > -#include <linux/gpio.h>
> > > >  #include <linux/gpio/driver.h>
> > > > +#include <linux/gpio.h>
> > > > +#include <linux/hte.h>
> > >
> > > Ok with the hte re-order.
> > >
> > > But moving the gpio subsystem header after the gpio/driver is not
> > > alphabetical ('.' precedes '/') and it read better and made more sense
> > > to me the way it was.
> > 
> > I see, I guess this is vim sort vs shell sort. Strange, they should
> > follow the locale settings...
> 
> I have checked, the shell and vim sort gave the same result as in this patch.
> 

The original order (sans hte.h) was done by VSCode Sort Lines Ascending,
and that still returns the same result.  That matches what I would
expect to see given the content of the text.

And for me vim also gives the original order.

Just to confirm - is '.' 0x2e and '/' 0x2f in your universe?

Cheers,
Kent.




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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-11 14:13         ` Kent Gibson
@ 2022-10-11 14:28           ` Andy Shevchenko
  2022-10-11 14:39             ` Geert Uytterhoeven
  0 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-11 14:28 UTC (permalink / raw)
  To: Kent Gibson
  Cc: alsa-devel, linux-samsung-soc, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-mediatek, linux-rpi-kernel,
	linux-arm-msm, linux-tegra, linux-riscv, linux-omap, openbmc,
	linux-arm-kernel, linux-media

On Tue, Oct 11, 2022 at 10:13:02PM +0800, Kent Gibson wrote:
> On Tue, Oct 11, 2022 at 04:48:17PM +0300, Andy Shevchenko wrote:
> > On Tue, Oct 11, 2022 at 11:05:42AM +0300, Andy Shevchenko wrote:
> > > On Tue, Oct 11, 2022 at 3:02 AM Kent Gibson <warthog618@gmail.com> wrote:
> > > > On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:

...

> > > > > -#include <linux/gpio.h>
> > > > >  #include <linux/gpio/driver.h>
> > > > > +#include <linux/gpio.h>
> > > > > +#include <linux/hte.h>
> > > >
> > > > Ok with the hte re-order.
> > > >
> > > > But moving the gpio subsystem header after the gpio/driver is not
> > > > alphabetical ('.' precedes '/') and it read better and made more sense
> > > > to me the way it was.
> > > 
> > > I see, I guess this is vim sort vs shell sort. Strange, they should
> > > follow the locale settings...
> > 
> > I have checked, the shell and vim sort gave the same result as in this patch.
> > 
> 
> The original order (sans hte.h) was done by VSCode Sort Lines Ascending,
> and that still returns the same result.  That matches what I would
> expect to see given the content of the text.
> 
> And for me vim also gives the original order.
> 
> Just to confirm - is '.' 0x2e and '/' 0x2f in your universe?

$ LC_COLLATE=C sort test1.txt
#include <linux/gpio.h>
#include <linux/gpio/driver.h>

$ LC_COLLATE= sort test1.txt
#include <linux/gpio/driver.h>
#include <linux/gpio.h>

I guess this explains the difference. Currently I have en_US.UTF-8.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-11 14:28           ` Andy Shevchenko
@ 2022-10-11 14:39             ` Geert Uytterhoeven
  2022-10-11 15:19               ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Geert Uytterhoeven @ 2022-10-11 14:39 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Kent Gibson, linux-omap, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-samsung-soc, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	alsa-devel, openbmc, linux-arm-kernel, linux-media

Hi Andy,

On Tue, Oct 11, 2022 at 4:31 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> On Tue, Oct 11, 2022 at 10:13:02PM +0800, Kent Gibson wrote:
> > On Tue, Oct 11, 2022 at 04:48:17PM +0300, Andy Shevchenko wrote:
> > > On Tue, Oct 11, 2022 at 11:05:42AM +0300, Andy Shevchenko wrote:
> > > > On Tue, Oct 11, 2022 at 3:02 AM Kent Gibson <warthog618@gmail.com> wrote:
> > > > > On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:
>
> ...
>
> > > > > > -#include <linux/gpio.h>
> > > > > >  #include <linux/gpio/driver.h>
> > > > > > +#include <linux/gpio.h>
> > > > > > +#include <linux/hte.h>
> > > > >
> > > > > Ok with the hte re-order.
> > > > >
> > > > > But moving the gpio subsystem header after the gpio/driver is not
> > > > > alphabetical ('.' precedes '/') and it read better and made more sense
> > > > > to me the way it was.
> > > >
> > > > I see, I guess this is vim sort vs shell sort. Strange, they should
> > > > follow the locale settings...
> > >
> > > I have checked, the shell and vim sort gave the same result as in this patch.
> > >
> >
> > The original order (sans hte.h) was done by VSCode Sort Lines Ascending,
> > and that still returns the same result.  That matches what I would
> > expect to see given the content of the text.
> >
> > And for me vim also gives the original order.
> >
> > Just to confirm - is '.' 0x2e and '/' 0x2f in your universe?
>
> $ LC_COLLATE=C sort test1.txt
> #include <linux/gpio.h>
> #include <linux/gpio/driver.h>
>
> $ LC_COLLATE= sort test1.txt
> #include <linux/gpio/driver.h>
> #include <linux/gpio.h>
>
> I guess this explains the difference. Currently I have en_US.UTF-8.

Throwing my can of paint into the mix...

I think it is more logical to first include the general <linux/gpio.h>,
followed by whatever <linux/gpio-foo.h> and <linux/gpio/bar.h>,
irrespective of (language-specific or phonebook) sort order.

Yeah, it sucks that this requires some manual work after running sort...

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-11 14:39             ` Geert Uytterhoeven
@ 2022-10-11 15:19               ` Andy Shevchenko
  2022-10-11 15:44                 ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-11 15:19 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Kent Gibson, linux-omap, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-samsung-soc, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	alsa-devel, openbmc, linux-arm-kernel, linux-media

On Tue, Oct 11, 2022 at 04:39:46PM +0200, Geert Uytterhoeven wrote:
> On Tue, Oct 11, 2022 at 4:31 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Oct 11, 2022 at 10:13:02PM +0800, Kent Gibson wrote:
> > > On Tue, Oct 11, 2022 at 04:48:17PM +0300, Andy Shevchenko wrote:
> > > > On Tue, Oct 11, 2022 at 11:05:42AM +0300, Andy Shevchenko wrote:
> > > > > On Tue, Oct 11, 2022 at 3:02 AM Kent Gibson <warthog618@gmail.com> wrote:
> > > > > > On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:

...

> > > > > > > -#include <linux/gpio.h>
> > > > > > >  #include <linux/gpio/driver.h>
> > > > > > > +#include <linux/gpio.h>
> > > > > > > +#include <linux/hte.h>
> > > > > >
> > > > > > Ok with the hte re-order.
> > > > > >
> > > > > > But moving the gpio subsystem header after the gpio/driver is not
> > > > > > alphabetical ('.' precedes '/') and it read better and made more sense
> > > > > > to me the way it was.
> > > > >
> > > > > I see, I guess this is vim sort vs shell sort. Strange, they should
> > > > > follow the locale settings...
> > > >
> > > > I have checked, the shell and vim sort gave the same result as in this patch.
> > > >
> > >
> > > The original order (sans hte.h) was done by VSCode Sort Lines Ascending,
> > > and that still returns the same result.  That matches what I would
> > > expect to see given the content of the text.
> > >
> > > And for me vim also gives the original order.
> > >
> > > Just to confirm - is '.' 0x2e and '/' 0x2f in your universe?
> >
> > $ LC_COLLATE=C sort test1.txt
> > #include <linux/gpio.h>
> > #include <linux/gpio/driver.h>
> >
> > $ LC_COLLATE= sort test1.txt
> > #include <linux/gpio/driver.h>
> > #include <linux/gpio.h>
> >
> > I guess this explains the difference. Currently I have en_US.UTF-8.
> 
> Throwing my can of paint into the mix...
> 
> I think it is more logical to first include the general <linux/gpio.h>,
> followed by whatever <linux/gpio-foo.h> and <linux/gpio/bar.h>,
> irrespective of (language-specific or phonebook) sort order.
> 
> Yeah, it sucks that this requires some manual work after running sort...

It seems that kind of issue is in this patch only.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-11 15:19               ` Andy Shevchenko
@ 2022-10-11 15:44                 ` Andy Shevchenko
  0 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-11 15:44 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Kent Gibson, linux-omap, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-samsung-soc, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	alsa-devel, openbmc, linux-arm-kernel, linux-media

On Tue, Oct 11, 2022 at 06:19:13PM +0300, Andy Shevchenko wrote:
> On Tue, Oct 11, 2022 at 04:39:46PM +0200, Geert Uytterhoeven wrote:

...

After all this patch is not needed. However, during checking of the necessity
of this patch I realized that seq_file is used in a few GPIO drivers without
any actual users, so I will prepare clean up series for that as well.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 06/36] pinctrl: at91: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 06/36] pinctrl: at91: " Andy Shevchenko
@ 2022-10-12  7:52   ` Claudiu.Beznea
  2022-10-17  8:56   ` Linus Walleij
  1 sibling, 0 replies; 72+ messages in thread
From: Claudiu.Beznea @ 2022-10-12  7:52 UTC (permalink / raw)
  To: andriy.shevchenko, maz, brgl, warthog618, mchehab, billy_tsai,
	tglx, linus.walleij, mika.westerberg, angelogioacchino.delregno,
	wenst, samuel, Horatiu.Vultur, rafal, bjorn.andersson,
	dmitry.baryshkov, geert+renesas, prabhakar.mahadev-lad.rj,
	phil.edworthy, krzysztof.kozlowski, fabien.dessenne, pshete,
	Basavaraj.Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: andrew, alexandre.belloni, ping.bai, hayashi.kunihiko, tony,
	konrad.dybcio, alexandre.torgue, tali.perry1, paul,
	thierry.reding, haojian.zhuang, festevam, michal.simek, tmaimon77,
	f.fainelli, benjaminfair, soc, vireshk, gregory.clement, wens,
	jonathanh, yuenn, Ludovic.Desroches, agross,
	bcm-kernel-feedback-list, joel, orsonzhai, alim.akhtar,
	patrice.chotard, linux-imx, andy, ckeepax, mcoquelin.stm32, mani,
	rjui, s.hauer, tomasz.figa, rf, baolin.wang, shiraz.linux.kernel,
	aisheng.dong, damien.lemoal, sbranden, andrew, venture, sean.wang,
	Nicolas.Ferre, avifishman70, mhiramat, kernel, zhang.lyra, kernel,
	sebastian.hesselbarth, shawnguo, afaerber

On 10.10.2022 23:14, Andy Shevchenko wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
> 
> While at it, sort headers alphabetically.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>


> ---
>  drivers/pinctrl/pinctrl-at91-pio4.c | 10 +++++++---
>  drivers/pinctrl/pinctrl-at91.c      | 16 +++++++++-------
>  2 files changed, 16 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
> index 82b921fd630d..e38c683aba09 100644
> --- a/drivers/pinctrl/pinctrl-at91-pio4.c
> +++ b/drivers/pinctrl/pinctrl-at91-pio4.c
> @@ -7,18 +7,22 @@
>   */
> 
>  #include <dt-bindings/pinctrl/at91.h>
> +
>  #include <linux/clk.h>
>  #include <linux/gpio/driver.h>
> +#include <linux/init.h>
>  #include <linux/interrupt.h>
>  #include <linux/io.h>
> -#include <linux/init.h>
>  #include <linux/of.h>
>  #include <linux/platform_device.h>
> -#include <linux/pinctrl/pinconf.h>
> +#include <linux/seq_file.h>
> +#include <linux/slab.h>
> +
>  #include <linux/pinctrl/pinconf-generic.h>
> +#include <linux/pinctrl/pinconf.h>
>  #include <linux/pinctrl/pinctrl.h>
>  #include <linux/pinctrl/pinmux.h>
> -#include <linux/slab.h>
> +
>  #include "core.h"
>  #include "pinconf.h"
>  #include "pinctrl-utils.h"
> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
> index 81dbffab621f..1e1813d7c550 100644
> --- a/drivers/pinctrl/pinctrl-at91.c
> +++ b/drivers/pinctrl/pinctrl-at91.c
> @@ -7,22 +7,24 @@
> 
>  #include <linux/clk.h>
>  #include <linux/err.h>
> +#include <linux/gpio/driver.h>
>  #include <linux/init.h>
> +#include <linux/interrupt.h>
> +#include <linux/io.h>
>  #include <linux/of.h>
> -#include <linux/of_device.h>
>  #include <linux/of_address.h>
> +#include <linux/of_device.h>
>  #include <linux/of_irq.h>
> +#include <linux/pm.h>
> +#include <linux/seq_file.h>
>  #include <linux/slab.h>
> -#include <linux/interrupt.h>
> -#include <linux/io.h>
> -#include <linux/gpio/driver.h>
> +
> +/* Since we request GPIOs from ourself */
> +#include <linux/pinctrl/consumer.h>
>  #include <linux/pinctrl/machine.h>
>  #include <linux/pinctrl/pinconf.h>
>  #include <linux/pinctrl/pinctrl.h>
>  #include <linux/pinctrl/pinmux.h>
> -/* Since we request GPIOs from ourself */
> -#include <linux/pinctrl/consumer.h>
> -#include <linux/pm.h>
> 
>  #include "pinctrl-at91.h"
>  #include "core.h"
> --
> 2.35.1
> 


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

* Re: [PATCH v2 11/36] pinctrl: ingenic: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 11/36] pinctrl: ingenic: " Andy Shevchenko
@ 2022-10-12  9:15   ` Paul Cercueil
  2022-10-17  9:00   ` Linus Walleij
  1 sibling, 0 replies; 72+ messages in thread
From: Paul Cercueil @ 2022-10-12  9:15 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Linus Walleij, Tomasz Figa, Rafał Miłecki,
	Horatiu Vultur, Emil Renner Berthing, Phil Edworthy,
	linux-samsung-soc, Samuel Holland, Michal Simek,
	Ludovic Desroches, NXP Linux Team, Tali Perry, Sascha Hauer,
	Thomas Gleixner, linux-omap, Andy Shevchenko, Scott Branden,
	Andrew Jeffery, linux-stm32, linux-kernel, Masami Hiramatsu,
	Pengutronix Kernel Team, Claudiu Beznea, Alexandre Belloni,
	Alim Akhtar, linux-aspeed, Thierry Reding, Viresh Kumar,
	Gregory Clement, Jonathan Hunter, Fabien Dessenne, linux-media,
	Charles Keepax, linux-arm-msm, Nicolas Ferre, linux-actions,
	linux-gpio, soc, linux-rpi-kernel, Mika Westerberg,
	linux-arm-kernel, Dong Aisheng, Damien Le Moal, linux-renesas-soc,
	Maxime Coquelin, Jacky Bai, Basavaraj Natikar, alsa-devel,
	Fabio Estevam, Florian Fainelli, Benjamin Fair, Nancy Yuen,
	Chen-Yu Tsai, Broadcom internal kernel review list, Joel Stanley,
	Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski



Le lun., oct. 10 2022 at 23:14:27 +0300, Andy Shevchenko 
<andriy.shevchenko@linux.intel.com> a écrit :
> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
> 
> While at it, sort headers alphabetically.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Paul Cercueil <paul@crapouillou.net>

Cheers,
-Paul

> ---
>  drivers/pinctrl/pinctrl-ingenic.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/pinctrl/pinctrl-ingenic.c 
> b/drivers/pinctrl/pinctrl-ingenic.c
> index 7e732076dedf..dbc25a60fbff 100644
> --- a/drivers/pinctrl/pinctrl-ingenic.c
> +++ b/drivers/pinctrl/pinctrl-ingenic.c
> @@ -14,16 +14,18 @@
>  #include <linux/kernel.h>
>  #include <linux/mod_devicetable.h>
>  #include <linux/of.h>
> -#include <linux/pinctrl/pinctrl.h>
> -#include <linux/pinctrl/pinmux.h>
> -#include <linux/pinctrl/pinconf.h>
> -#include <linux/pinctrl/pinconf-generic.h>
>  #include <linux/platform_device.h>
>  #include <linux/property.h>
>  #include <linux/regmap.h>
>  #include <linux/seq_file.h>
>  #include <linux/slab.h>
> 
> +#include <linux/pinctrl/consumer.h>
> +#include <linux/pinctrl/pinconf-generic.h>
> +#include <linux/pinctrl/pinconf.h>
> +#include <linux/pinctrl/pinctrl.h>
> +#include <linux/pinctrl/pinmux.h>
> +
>  #include "core.h"
>  #include "pinconf.h"
>  #include "pinmux.h"
> --
> 2.35.1
> 



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

* Re: [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers
       [not found] ` <0684f480-2092-d520-2c8e-bd9a2dca47e3@gmail.com>
@ 2022-10-12 10:04   ` Andy Shevchenko
  2022-10-14 15:11     ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-12 10:04 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Linus Walleij, Tomasz Figa, Rafał Miłecki,
	Horatiu Vultur, Emil Renner Berthing, Phil Edworthy,
	linux-samsung-soc, Samuel Holland, Michal Simek,
	Ludovic Desroches, NXP Linux Team, Tali Perry, Sascha Hauer,
	Thomas Gleixner, linux-omap, Andy Shevchenko, Scott Branden,
	Andrew Jeffery, linux-stm32, linux-kernel, Masami Hiramatsu,
	Pengutronix Kernel Team, Claudiu Beznea, Alexandre Belloni,
	Alim Akhtar, linux-aspeed, Thierry Reding, Viresh Kumar,
	Gregory Clement, Jonathan Hunter, Fabien Dessenne, linux-media,
	Charles Keepax, linux-arm-msm, Nicolas Ferre, linux-actions,
	linux-gpio, soc, linux-rpi-kernel, Mika Westerberg,
	linux-arm-kernel, Dong Aisheng, Damien Le Moal, linux-renesas-soc,
	Maxime Coquelin, Jacky Bai, Basavaraj Natikar, alsa-devel,
	Fabio Estevam, Benjamin Fair, Nancy Yuen, Chen-Yu Tsai,
	Broadcom internal kernel review list, Joel Stanley, Chen-Yu Tsai,
	Orson Zhai, Patrice Chotard, Ray Jui, Richard Fitzgerald,
	Baolin Wang, Mauro Carvalho Chehab, Avi Fishman, Patrick Venture,
	Shawn Guo, Andreas Färber, Tony Lindgren, Konrad Dybcio,
	Alexandre Torgue, Bjorn Andersson, Paul Cercueil, Haojian Zhuang,
	linux-riscv, Marc Zyngier, openbmc, Kunihiko Hayashi,
	Prathamesh Shete, Andy Gross, Sebastian Hesselbarth,
	Manivannan Sadhasivam, Lad Prabhakar, Billy Tsai, linux-mediatek,
	linux-tegra, Andy Shevchenko, AngeloGioacchino Del Regno, patches,
	Sean Wang, linux-mips, Krzysztof Kozlowski, Chunyan Zhang,
	Dmitry Baryshkov, Shiraz Hashim, Bartosz Golaszewski

On Tue, Oct 11, 2022 at 11:56 PM Florian Fainelli <f.fainelli@gmail.com> wrote:
> On 10/10/2022 1:14 PM, Andy Shevchenko wrote:
> > Currently the header inclusion inside the pinctrl headers seems more arbitrary
> > than logical. This series is basically out of two parts:
> > - add missed headers to the pin control drivers / users
> > - clean up the headers of pin control subsystem
> >
> > The idea is to have this series to be pulled after -rc1 by the GPIO and
> > pin control subsystems, so all new drivers will utilize cleaned up headers
> > of the pin control.
> >
> > Please, review and comment.
>
> Did you really need to split this on a per-driver basis as opposed to
> just a treewide drivers/pinctrl, drivers/media and drivers/gpiolib patch
> set?
>
> 36 patches seems needlessly high when 4 patches could have achieve the
> same outcome.

I can combine them if maintainers ask for that, nevertheless for Intel
pin control and GPIO drivers, which I care more about, I would like to
leave as separate changes (easy to see in history what was done).


-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-11  0:01   ` Kent Gibson
       [not found]     ` <CAHp75Vf4oS8g0zxgismtLrzsJ7AE-bdMEq+GAzx2=Mwnhuk3UA@mail.gmail.com>
@ 2022-10-12 13:30     ` Andy Shevchenko
  2022-10-12 13:54       ` Kent Gibson
  1 sibling, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-12 13:30 UTC (permalink / raw)
  To: Kent Gibson
  Cc: linux-renesas-soc, alsa-devel, linux-samsung-soc, linux-aspeed,
	Geert Uytterhoeven, patches, Bartosz Golaszewski, linux-actions,
	linux-kernel, linux-mips, linux-stm32, linux-gpio, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	linux-omap, openbmc, linux-arm-kernel, linux-media

On Tue, Oct 11, 2022 at 08:01:27AM +0800, Kent Gibson wrote:
> On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:

...

> > -#include <linux/gpio.h>
> >  #include <linux/gpio/driver.h>
> > +#include <linux/gpio.h>

> But moving the gpio subsystem header after the gpio/driver is not
> alphabetical ('.' precedes '/') and it read better and made more sense
> to me the way it was.

Okay, I will move it back.

...

> > +#include <linux/seq_file.h>
> 
> I wasn't aware that we use anything from seq_file.
> What am I missing?


Eventually I can answer to your question: the commit 0ae3109a8391
("gpiolib: cdev: add fdinfo output for line request file descriptors")
is what you are missing.

That said, we need this patch.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 02/36] gpiolib: cdev: Add missed header(s)
  2022-10-12 13:30     ` Andy Shevchenko
@ 2022-10-12 13:54       ` Kent Gibson
  0 siblings, 0 replies; 72+ messages in thread
From: Kent Gibson @ 2022-10-12 13:54 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-renesas-soc, alsa-devel, linux-samsung-soc, linux-aspeed,
	Geert Uytterhoeven, patches, Bartosz Golaszewski, linux-actions,
	linux-kernel, linux-mips, linux-stm32, linux-gpio, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	linux-omap, openbmc, linux-arm-kernel, linux-media

On Wed, Oct 12, 2022 at 04:30:05PM +0300, Andy Shevchenko wrote:
> On Tue, Oct 11, 2022 at 08:01:27AM +0800, Kent Gibson wrote:
> > On Mon, Oct 10, 2022 at 11:14:18PM +0300, Andy Shevchenko wrote:
> 
> ...
> 
> > > -#include <linux/gpio.h>
> > >  #include <linux/gpio/driver.h>
> > > +#include <linux/gpio.h>
> 
> > But moving the gpio subsystem header after the gpio/driver is not
> > alphabetical ('.' precedes '/') and it read better and made more sense
> > to me the way it was.
> 
> Okay, I will move it back.
> 
> ...
> 
> > > +#include <linux/seq_file.h>
> > 
> > I wasn't aware that we use anything from seq_file.
> > What am I missing?
> 
> 
> Eventually I can answer to your question: the commit 0ae3109a8391
> ("gpiolib: cdev: add fdinfo output for line request file descriptors")
> is what you are missing.
> 
> That said, we need this patch.
> 

Ah, yes - totally forgot that one is in flight.
That makes sense then.

With the gpio headers retaining their original order:

Rewiewed-by: Kent Gibson <warthog618@gmail.com>

> -- 
> With Best Regards,
> Andy Shevchenko
> 
> 

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

* Re: [PATCH v2 23/36] pinctrl: sprd: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 23/36] pinctrl: sprd: " Andy Shevchenko
@ 2022-10-13  1:23   ` Baolin Wang
  0 siblings, 0 replies; 72+ messages in thread
From: Baolin Wang @ 2022-10-13  1:23 UTC (permalink / raw)
  To: Andy Shevchenko, Marc Zyngier, Bartosz Golaszewski, Kent Gibson,
	Mauro Carvalho Chehab, Billy Tsai, Thomas Gleixner, Linus Walleij,
	Mika Westerberg, AngeloGioacchino Del Regno, Chen-Yu Tsai,
	Claudiu Beznea, Samuel Holland, Horatiu Vultur,
	Rafał Miłecki, Bjorn Andersson, Dmitry Baryshkov,
	Geert Uytterhoeven, Lad Prabhakar, Phil Edworthy,
	Krzysztof Kozlowski, Fabien Dessenne, Prathamesh Shete,
	Basavaraj Natikar, linux-gpio, linux-tegra, linux-kernel,
	linux-arm-kernel, linux-media, linux-actions, linux-aspeed,
	openbmc, linux-rpi-kernel, alsa-devel, patches, linux-mediatek,
	linux-mips, linux-riscv, linux-omap, linux-stm32, linux-arm-msm,
	linux-renesas-soc, linux-samsung-soc
  Cc: Andrew Lunn, Alexandre Belloni, Jacky Bai, Kunihiko Hayashi,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Tali Perry,
	Paul Cercueil, Thierry Reding, Haojian Zhuang, Fabio Estevam,
	Michal Simek, Tomer Maimon, Florian Fainelli, Benjamin Fair, soc,
	Viresh Kumar, Gregory Clement, Chen-Yu Tsai, Jonathan Hunter,
	Nancy Yuen, Ludovic Desroches, Andy Gross,
	Broadcom internal kernel review list, Joel Stanley, Orson Zhai,
	Alim Akhtar, Patrice Chotard, NXP Linux Team, Andy Shevchenko,
	Charles Keepax, Maxime Coquelin, Manivannan Sadhasivam, Ray Jui,
	Sascha Hauer, Tomasz Figa, Richard Fitzgerald, Shiraz Hashim,
	Dong Aisheng, Damien Le Moal, Scott Branden, Andrew Jeffery,
	Patrick Venture, Sean Wang, Nicolas Ferre, Avi Fishman,
	Masami Hiramatsu, Pengutronix Kernel Team, Chunyan Zhang,
	Emil Renner Berthing, Sebastian Hesselbarth, Shawn Guo,
	Andreas Färber



On 10/11/2022 4:14 AM, Andy Shevchenko wrote:
> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
> 
> While at it, sort headers alphabetically.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

LGTM. Thanks.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>

> ---
>   drivers/pinctrl/sprd/pinctrl-sprd.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c
> index dca7a505d413..c1806b7dcf78 100644
> --- a/drivers/pinctrl/sprd/pinctrl-sprd.c
> +++ b/drivers/pinctrl/sprd/pinctrl-sprd.c
> @@ -13,12 +13,14 @@
>   #include <linux/of.h>
>   #include <linux/of_device.h>
>   #include <linux/platform_device.h>
> +#include <linux/slab.h>
> +
> +#include <linux/pinctrl/consumer.h>
>   #include <linux/pinctrl/machine.h>
> -#include <linux/pinctrl/pinconf.h>
>   #include <linux/pinctrl/pinconf-generic.h>
> +#include <linux/pinctrl/pinconf.h>
>   #include <linux/pinctrl/pinctrl.h>
>   #include <linux/pinctrl/pinmux.h>
> -#include <linux/slab.h>
>   
>   #include "../core.h"
>   #include "../pinmux.h"

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

* Re: [PATCH v2 35/36] pinctrl: intel: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 35/36] pinctrl: intel: " Andy Shevchenko
@ 2022-10-13 14:53   ` Mika Westerberg
  2022-10-13 16:05     ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Mika Westerberg @ 2022-10-13 14:53 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Linus Walleij, Tomasz Figa, Rafa?? Mi??ecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	linux-arm-kernel, Dong Aisheng, Damien Le Moal, linux-renesas-soc,
	Maxime Coquelin, Jacky Bai, Basavaraj Natikar, alsa-devel,
	Fabio Estevam, Florian Fainelli, Benjamin Fair, Nancy Yuen,
	Chen-Yu Tsai, Broadcom internal kernel review list, Joel Stanley,
	Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas F??rber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 11:14:51PM +0300, Andy Shevchenko wrote:
> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
> 
> While at it, sort headers alphabetically.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>

For all the intel pinctrl changes.

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

* Re: [PATCH v2 35/36] pinctrl: intel: Add missed header(s)
  2022-10-13 14:53   ` Mika Westerberg
@ 2022-10-13 16:05     ` Andy Shevchenko
  0 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-13 16:05 UTC (permalink / raw)
  To: Mika Westerberg
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Linus Walleij, Tomasz Figa, Rafa?? Mi??ecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Scott Branden, Andrew Jeffery, linux-stm32, linux-kernel,
	Masami Hiramatsu, Pengutronix Kernel Team, Claudiu Beznea,
	Alexandre Belloni, Alim Akhtar, linux-aspeed, Thierry Reding,
	Viresh Kumar, Gregory Clement, Jonathan Hunter, Fabien Dessenne,
	linux-media, Charles Keepax, linux-arm-msm, Nicolas Ferre,
	linux-actions, linux-gpio, soc, linux-rpi-kernel,
	linux-arm-kernel, Dong Aisheng, Damien Le Moal, linux-renesas-soc,
	Maxime Coquelin, Jacky Bai, Basavaraj Natikar, alsa-devel,
	Fabio Estevam, Florian Fainelli, Benjamin Fair, Nancy Yuen,
	Chen-Yu Tsai, Broadcom internal kernel review list, Joel Stanley,
	Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas F??rber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Thu, Oct 13, 2022 at 05:53:31PM +0300, Mika Westerberg wrote:
> On Mon, Oct 10, 2022 at 11:14:51PM +0300, Andy Shevchenko wrote:
> > Do not imply that some of the generic headers may be always included.
> > Instead, include explicitly what we are direct user of.
> > 
> > While at it, sort headers alphabetically.
> > 
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> 
> For all the intel pinctrl changes.

Thank you, I have added it to the 4 Intel related patches.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers
  2022-10-12 10:04   ` [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
@ 2022-10-14 15:11     ` Andy Shevchenko
  0 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-14 15:11 UTC (permalink / raw)
  To: Florian Fainelli, Linus Walleij
  Cc: Kent Gibson, linux-omap, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-samsung-soc, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	alsa-devel, openbmc, linux-arm-kernel, linux-media

On Wed, Oct 12, 2022 at 01:04:10PM +0300, Andy Shevchenko wrote:
> On Tue, Oct 11, 2022 at 11:56 PM Florian Fainelli <f.fainelli@gmail.com> wrote:
> > On 10/10/2022 1:14 PM, Andy Shevchenko wrote:
> > > Currently the header inclusion inside the pinctrl headers seems more arbitrary
> > > than logical. This series is basically out of two parts:
> > > - add missed headers to the pin control drivers / users
> > > - clean up the headers of pin control subsystem
> > >
> > > The idea is to have this series to be pulled after -rc1 by the GPIO and
> > > pin control subsystems, so all new drivers will utilize cleaned up headers
> > > of the pin control.
> > >
> > > Please, review and comment.
> >
> > Did you really need to split this on a per-driver basis as opposed to
> > just a treewide drivers/pinctrl, drivers/media and drivers/gpiolib patch
> > set?
> >
> > 36 patches seems needlessly high when 4 patches could have achieve the
> > same outcome.
> 
> I can combine them if maintainers ask for that, nevertheless for Intel
> pin control and GPIO drivers, which I care more about, I would like to
> leave as separate changes (easy to see in history what was done).

I can now tell why I don't like to combine. While doing a revert (it's not
related to GPIO nor to pin control), it appears that I reverted extra bits
as merge conflict resolution. This is per se is not an issue, but when
I tried to find and reapply that missed piece I can't, because the patch
is combined and Git simply ignores to have
`git cherry-pick _something in the past_` done.

But again, up to maintainers.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s) Andy Shevchenko
@ 2022-10-17  8:52   ` Linus Walleij
  2022-10-17  9:35     ` Bartosz Golaszewski
  0 siblings, 1 reply; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:52 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH v2 04/36] pinctrl: actions: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 04/36] pinctrl: actions: " Andy Shevchenko
@ 2022-10-17  8:55   ` Linus Walleij
  0 siblings, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:55 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied!

Yours,
Linus Walleij

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

* Re: [PATCH v2 05/36] pinctrl: aspeed: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 05/36] pinctrl: aspeed: " Andy Shevchenko
@ 2022-10-17  8:55   ` Linus Walleij
  0 siblings, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:55 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied.

Yours,
Linus Walleij

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

* Re: [PATCH v2 06/36] pinctrl: at91: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 06/36] pinctrl: at91: " Andy Shevchenko
  2022-10-12  7:52   ` Claudiu.Beznea
@ 2022-10-17  8:56   ` Linus Walleij
  1 sibling, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:56 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied!

Yours,
Linus Walleij

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

* Re: [PATCH v2 07/36] pinctrl: axp209: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 07/36] pinctrl: axp209: " Andy Shevchenko
@ 2022-10-17  8:57   ` Linus Walleij
  0 siblings, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:57 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied!

Yours,
Linus Walleij

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

* Re: [PATCH v2 08/36] pinctrl: bcm: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 08/36] pinctrl: bcm: " Andy Shevchenko
@ 2022-10-17  8:58   ` Linus Walleij
  0 siblings, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:58 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied!

Yours,
Linus Walleij

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

* Re: [PATCH v2 09/36] pinctrl: cygnus-mux: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 09/36] pinctrl: cygnus-mux: " Andy Shevchenko
@ 2022-10-17  8:59   ` Linus Walleij
  0 siblings, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:59 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied!

Yours,
Linus Walleij

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

* Re: [PATCH v2 10/36] pinctrl: imx: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 10/36] pinctrl: imx: " Andy Shevchenko
@ 2022-10-17  8:59   ` Linus Walleij
  0 siblings, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  8:59 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied!

Yours,
Linus Walleij

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

* Re: [PATCH v2 11/36] pinctrl: ingenic: Add missed header(s)
  2022-10-10 20:14 ` [PATCH v2 11/36] pinctrl: ingenic: " Andy Shevchenko
  2022-10-12  9:15   ` Paul Cercueil
@ 2022-10-17  9:00   ` Linus Walleij
  1 sibling, 0 replies; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  9:00 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Do not imply that some of the generic headers may be always included.
> Instead, include explicitly what we are direct user of.
>
> While at it, sort headers alphabetically.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied!

Yours,
Linus Walleij

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

* Re: [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers
  2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
                   ` (36 preceding siblings ...)
       [not found] ` <0684f480-2092-d520-2c8e-bd9a2dca47e3@gmail.com>
@ 2022-10-17  9:02 ` Linus Walleij
  2022-10-17  9:27   ` Andy Shevchenko
  37 siblings, 1 reply; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  9:02 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, Alexandre Belloni, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	alsa-devel, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Currently the header inclusion inside the pinctrl headers seems more arbitrary
> than logical. This series is basically out of two parts:
> - add missed headers to the pin control drivers / users
> - clean up the headers of pin control subsystem
>
> The idea is to have this series to be pulled after -rc1 by the GPIO and
> pin control subsystems, so all new drivers will utilize cleaned up headers
> of the pin control.

Aha I see you want to send a pull request so I backed out the applied patches
from the series for now.

Yours,
Linus Walleij

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

* Re: [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers
  2022-10-17  9:02 ` Linus Walleij
@ 2022-10-17  9:27   ` Andy Shevchenko
  2022-10-17  9:58     ` Linus Walleij
  0 siblings, 1 reply; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-17  9:27 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Kent Gibson, linux-omap, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-samsung-soc, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	alsa-devel, openbmc, linux-arm-kernel, linux-media

On Mon, Oct 17, 2022 at 11:02:09AM +0200, Linus Walleij wrote:
> On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> 
> > Currently the header inclusion inside the pinctrl headers seems more arbitrary
> > than logical. This series is basically out of two parts:
> > - add missed headers to the pin control drivers / users
> > - clean up the headers of pin control subsystem
> >
> > The idea is to have this series to be pulled after -rc1 by the GPIO and
> > pin control subsystems, so all new drivers will utilize cleaned up headers
> > of the pin control.
> 
> Aha I see you want to send a pull request so I backed out the applied patches
> from the series for now.

Can I consider all that you answered to as Rb tag?

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s)
  2022-10-17  8:52   ` Linus Walleij
@ 2022-10-17  9:35     ` Bartosz Golaszewski
  2022-10-17 12:15       ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Bartosz Golaszewski @ 2022-10-17  9:35 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Tomasz Figa, Rafał Miłecki, Horatiu Vultur,
	Emil Renner Berthing, Phil Edworthy, linux-samsung-soc,
	Samuel Holland, Michal Simek, Ludovic Desroches, NXP Linux Team,
	Tali Perry, Sascha Hauer, Thomas Gleixner, linux-omap,
	Andy Shevchenko, Scott Branden, Andrew Jeffery, linux-stm32,
	linux-kernel, Masami Hiramatsu, Pengutronix Kernel Team,
	Claudiu Beznea, alsa-devel, Alim Akhtar, linux-aspeed,
	Thierry Reding, Viresh Kumar, Gregory Clement, Jonathan Hunter,
	Fabien Dessenne, linux-media, Charles Keepax, linux-arm-msm,
	Nicolas Ferre, linux-actions, linux-gpio, soc, linux-rpi-kernel,
	Mika Westerberg, linux-arm-kernel, Dong Aisheng, Damien Le Moal,
	linux-renesas-soc, Maxime Coquelin, Jacky Bai, Basavaraj Natikar,
	Alexandre Belloni, Fabio Estevam, Florian Fainelli, Benjamin Fair,
	Nancy Yuen, Chen-Yu Tsai, Broadcom internal kernel review list,
	Joel Stanley, Chen-Yu Tsai, Orson Zhai, Patrice Chotard, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrick Venture, Shawn Guo, Andreas Färber,
	Tony Lindgren, Konrad Dybcio, Alexandre Torgue, Bjorn Andersson,
	Paul Cercueil, Haojian Zhuang, linux-riscv, Marc Zyngier, openbmc,
	Kunihiko Hayashi, Prathamesh Shete, Andy Gross,
	Sebastian Hesselbarth, Manivannan Sadhasivam, Lad Prabhakar,
	Billy Tsai, linux-mediatek, linux-tegra, Andy Shevchenko,
	AngeloGioacchino Del Regno, patches, Sean Wang, linux-mips,
	Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim

On Mon, Oct 17, 2022 at 10:52 AM Linus Walleij <linus.walleij@linaro.org> wrote:
>
> On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
>
> > Do not imply that some of the generic headers may be always included.
> > Instead, include explicitly what we are direct user of.
> >
> > While at it, sort headers alphabetically.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>
> Yours,
> Linus Walleij

Andy: are you going to send it together with the corresponding pinctrl
changes in a separate PR?

Bart

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

* Re: [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers
  2022-10-17  9:27   ` Andy Shevchenko
@ 2022-10-17  9:58     ` Linus Walleij
  2022-10-17 12:18       ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Linus Walleij @ 2022-10-17  9:58 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Kent Gibson, linux-omap, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-samsung-soc, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	alsa-devel, openbmc, linux-arm-kernel, linux-media

On Mon, Oct 17, 2022 at 11:27 AM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> On Mon, Oct 17, 2022 at 11:02:09AM +0200, Linus Walleij wrote:
> > On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
> > <andriy.shevchenko@linux.intel.com> wrote:
> >
> > > Currently the header inclusion inside the pinctrl headers seems more arbitrary
> > > than logical. This series is basically out of two parts:
> > > - add missed headers to the pin control drivers / users
> > > - clean up the headers of pin control subsystem
> > >
> > > The idea is to have this series to be pulled after -rc1 by the GPIO and
> > > pin control subsystems, so all new drivers will utilize cleaned up headers
> > > of the pin control.
> >
> > Aha I see you want to send a pull request so I backed out the applied patches
> > from the series for now.
>
> Can I consider all that you answered to as Rb tag?

Acked-by: Linus Walleij <linus.walleij@linaro.org>

I haven't reviewed in detail but I fully trust you to do the right thing
and fix any fallout so will happily pull this.

Yours,
Linus Walleij

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

* Re: [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s)
  2022-10-17  9:35     ` Bartosz Golaszewski
@ 2022-10-17 12:15       ` Andy Shevchenko
  0 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-17 12:15 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Linus Walleij, Tomasz Figa, Rafał Miłecki,
	Horatiu Vultur, Emil Renner Berthing, Phil Edworthy,
	linux-samsung-soc, Samuel Holland, Michal Simek,
	Ludovic Desroches, NXP Linux Team, Tali Perry, Sascha Hauer,
	Thomas Gleixner, linux-omap, Andy Shevchenko, Scott Branden,
	Andrew Jeffery, linux-stm32, linux-kernel, Masami Hiramatsu,
	Pengutronix Kernel Team, Claudiu Beznea, alsa-devel, Alim Akhtar,
	linux-aspeed, Thierry Reding, Viresh Kumar, Gregory Clement,
	Jonathan Hunter, Fabien Dessenne, linux-media, Charles Keepax,
	linux-arm-msm, Nicolas Ferre, linux-actions, linux-gpio, soc,
	linux-rpi-kernel, Mika Westerberg, linux-arm-kernel, Dong Aisheng,
	Damien Le Moal, linux-renesas-soc, Maxime Coquelin, Jacky Bai,
	Basavaraj Natikar, Alexandre Belloni, Fabio Estevam,
	Florian Fainelli, Benjamin Fair, Nancy Yuen, Chen-Yu Tsai,
	Broadcom internal kernel review list, Joel Stanley, Chen-Yu Tsai,
	Orson Zhai, Patrice Chotard, Ray Jui, Richard Fitzgerald,
	Baolin Wang, Mauro Carvalho Chehab, Avi Fishman, Patrick Venture,
	Shawn Guo, Andreas Färber, Tony Lindgren, Konrad Dybcio,
	Alexandre Torgue, Bjorn Andersson, Paul Cercueil, Haojian Zhuang,
	linux-riscv, Marc Zyngier, openbmc, Kunihiko Hayashi,
	Prathamesh Shete, Andy Gross, Sebastian Hesselbarth,
	Manivannan Sadhasivam, Lad Prabhakar, Billy Tsai, linux-mediatek,
	linux-tegra, Andy Shevchenko, AngeloGioacchino Del Regno, patches,
	Sean Wang, linux-mips, Krzysztof Kozlowski, Chunyan Zhang,
	Dmitry Baryshkov, Shiraz Hashim

On Mon, Oct 17, 2022 at 12:35 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> On Mon, Oct 17, 2022 at 10:52 AM Linus Walleij <linus.walleij@linaro.org> wrote:
>>·On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
> > <andriy.shevchenko@linux.intel.com> wrote:
> >
> > > Do not imply that some of the generic headers may be always included.
> > > Instead, include explicitly what we are direct user of.
> > >
> > > While at it, sort headers alphabetically.
> > >
> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> >
> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

> Andy: are you going to send it together with the corresponding pinctrl
> changes in a separate PR?

Yes, this is the plan, but I want first to push it to Linux Next (via
my tree) for a couple of days, so we will be sure there are no
compilation issues.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers
  2022-10-17  9:58     ` Linus Walleij
@ 2022-10-17 12:18       ` Andy Shevchenko
  0 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-17 12:18 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Kent Gibson, linux-omap, linux-stm32, linux-aspeed, patches,
	Bartosz Golaszewski, linux-actions, linux-kernel, linux-mips,
	linux-renesas-soc, linux-gpio, linux-samsung-soc, linux-mediatek,
	linux-rpi-kernel, linux-arm-msm, linux-tegra, linux-riscv,
	alsa-devel, openbmc, linux-arm-kernel, linux-media

On Mon, Oct 17, 2022 at 11:58:03AM +0200, Linus Walleij wrote:
> On Mon, Oct 17, 2022 at 11:27 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Mon, Oct 17, 2022 at 11:02:09AM +0200, Linus Walleij wrote:
> > > On Mon, Oct 10, 2022 at 10:15 PM Andy Shevchenko
> > > <andriy.shevchenko@linux.intel.com> wrote:
> > >
> > > > Currently the header inclusion inside the pinctrl headers seems more arbitrary
> > > > than logical. This series is basically out of two parts:
> > > > - add missed headers to the pin control drivers / users
> > > > - clean up the headers of pin control subsystem
> > > >
> > > > The idea is to have this series to be pulled after -rc1 by the GPIO and
> > > > pin control subsystems, so all new drivers will utilize cleaned up headers
> > > > of the pin control.
> > >
> > > Aha I see you want to send a pull request so I backed out the applied patches
> > > from the series for now.
> >
> > Can I consider all that you answered to as Rb tag?
> 
> Acked-by: Linus Walleij <linus.walleij@linaro.org>

Thank you!

> I haven't reviewed in detail but I fully trust you to do the right thing
> and fix any fallout so will happily pull this.

The plan is to push this to Linux Next for a couple of days and then I'll send
PR to you and Bart.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v2 36/36] pinctrl: Clean up headers
       [not found]       ` <Y0UyOWALxSFai2w6@smile.fi.intel.com>
@ 2022-10-18 13:04         ` Geert Uytterhoeven
  2022-10-18 13:07           ` Andy Shevchenko
  0 siblings, 1 reply; 72+ messages in thread
From: Geert Uytterhoeven @ 2022-10-18 13:04 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Lunn, Kent Gibson, Tomer Maimon, Geert Uytterhoeven,
	Linus Walleij, Tomasz Figa, Rafał Miłecki,
	Horatiu Vultur, Emil Renner Berthing, Phil Edworthy,
	linux-samsung-soc, Samuel Holland, Michal Simek,
	Ludovic Desroches, NXP Linux Team, Tali Perry, Sascha Hauer,
	Thomas Gleixner, linux-omap, Scott Branden, Andrew Jeffery,
	linux-stm32, linux-kernel, Masami Hiramatsu,
	Pengutronix Kernel Team, Claudiu Beznea, Alexandre Belloni,
	Alim Akhtar, linux-aspeed, Thierry Reding, Viresh Kumar,
	Gregory Clement, Jonathan Hunter, Fabien Dessenne, linux-media,
	Charles Keepax, linux-arm-msm, Nicolas Ferre, linux-actions,
	linux-gpio, soc, linux-rpi-kernel, Mika Westerberg,
	linux-arm-kernel, Dong Aisheng, Damien Le Moal, linux-renesas-soc,
	Maxime Coquelin, Jacky Bai, Basavaraj Natikar, alsa-devel,
	Fabio Estevam, Florian Fainelli, Benjamin Fair, Nancy Yuen,
	Chen-Yu Tsai, Broadcom internal kernel review list, Joel Stanley,
	Chen-Yu Tsai, Orson Zhai, Basavaraj Natikar, Ray Jui,
	Richard Fitzgerald, Baolin Wang, Mauro Carvalho Chehab,
	Avi Fishman, Patrice Chotard, Patrick Venture, Shawn Guo,
	Andreas Färber, Tony Lindgren, Konrad Dybcio,
	Alexandre Torgue, Bjorn Andersson, Paul Cercueil, Haojian Zhuang,
	linux-riscv, Marc Zyngier, openbmc, Kunihiko Hayashi,
	Prathamesh Shete, Andy Gross, Sebastian Hesselbarth,
	Manivannan Sadhasivam, Lad Prabhakar, Billy Tsai, linux-mediatek,
	linux-tegra, AngeloGioacchino Del Regno, patches, Sean Wang,
	linux-mips, Krzysztof Kozlowski, Chunyan Zhang, Dmitry Baryshkov,
	Shiraz Hashim, Bartosz Golaszewski

Hi Andy,

On Tue, Oct 11, 2022 at 11:07 AM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> On Tue, Oct 11, 2022 at 10:46:30AM +0200, Geert Uytterhoeven wrote:
> > On Tue, Oct 11, 2022 at 9:31 AM Basavaraj Natikar <bnatikar@amd.com> wrote:
> > > On 10/11/2022 1:44 AM, Andy Shevchenko wrote:
>
> > > > +++ b/drivers/pinctrl/core.h
>
> > > > -#include <linux/pinctrl/pinconf.h>
> > >
> > > Removing pinconf.h from the core.h may cause build failure in other files
> > > because where-ever core.h is included to use “struct pinconf_ops”, there
> > > is a need to include pinconf.h.
> >
> > I can confirm adding
> >
> >     #include <linux/pinctrl/pinconf.h>
> >
> > to drivers/pinctrl/renesas/pinctrl-rzn1.c and drivers/pinctrl/pinctrl-single.c
> > fixes the issues I was seeing with shmobile_defconfig and (out-of-tree)
> > renesas_defconfig.
>
> I will add this, thank you for reporting.

Same for drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH v2 36/36] pinctrl: Clean up headers
  2022-10-18 13:04         ` Geert Uytterhoeven
@ 2022-10-18 13:07           ` Andy Shevchenko
  0 siblings, 0 replies; 72+ messages in thread
From: Andy Shevchenko @ 2022-10-18 13:07 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Kent Gibson, linux-aspeed, Linus Walleij, alsa-devel,
	linux-kernel, linux-riscv, linux-stm32, linux-samsung-soc,
	Bartosz Golaszewski, linux-media, linux-arm-msm, linux-actions,
	linux-gpio, linux-mediatek, linux-rpi-kernel, linux-tegra,
	linux-omap, linux-arm-kernel, patches, linux-mips,
	linux-renesas-soc, openbmc

On Tue, Oct 18, 2022 at 03:04:44PM +0200, Geert Uytterhoeven wrote:
> On Tue, Oct 11, 2022 at 11:07 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Oct 11, 2022 at 10:46:30AM +0200, Geert Uytterhoeven wrote:
> > > On Tue, Oct 11, 2022 at 9:31 AM Basavaraj Natikar <bnatikar@amd.com> wrote:

...

> > > I can confirm adding
> > >
> > >     #include <linux/pinctrl/pinconf.h>
> > >
> > > to drivers/pinctrl/renesas/pinctrl-rzn1.c and drivers/pinctrl/pinctrl-single.c
> > > fixes the issues I was seeing with shmobile_defconfig and (out-of-tree)
> > > renesas_defconfig.
> >
> > I will add this, thank you for reporting.
> 
> Same for drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c.

Thanks!

Not only. I have updated all of them (but missed zynq (it is in today's Linux
Next).

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2022-10-20 10:38 UTC | newest]

Thread overview: 72+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-10 20:14 [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 01/36] gpiolib: tegra186: Add missed header(s) Andy Shevchenko
2022-10-17  8:52   ` Linus Walleij
2022-10-17  9:35     ` Bartosz Golaszewski
2022-10-17 12:15       ` Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 02/36] gpiolib: cdev: " Andy Shevchenko
2022-10-11  0:01   ` Kent Gibson
     [not found]     ` <CAHp75Vf4oS8g0zxgismtLrzsJ7AE-bdMEq+GAzx2=Mwnhuk3UA@mail.gmail.com>
2022-10-11 13:48       ` Andy Shevchenko
2022-10-11 14:13         ` Kent Gibson
2022-10-11 14:28           ` Andy Shevchenko
2022-10-11 14:39             ` Geert Uytterhoeven
2022-10-11 15:19               ` Andy Shevchenko
2022-10-11 15:44                 ` Andy Shevchenko
2022-10-12 13:30     ` Andy Shevchenko
2022-10-12 13:54       ` Kent Gibson
2022-10-10 20:14 ` [PATCH v2 03/36] media: c8sectpfe: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 04/36] pinctrl: actions: " Andy Shevchenko
2022-10-17  8:55   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 05/36] pinctrl: aspeed: " Andy Shevchenko
2022-10-17  8:55   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 06/36] pinctrl: at91: " Andy Shevchenko
2022-10-12  7:52   ` Claudiu.Beznea
2022-10-17  8:56   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 07/36] pinctrl: axp209: " Andy Shevchenko
2022-10-17  8:57   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 08/36] pinctrl: bcm: " Andy Shevchenko
2022-10-17  8:58   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 09/36] pinctrl: cygnus-mux: " Andy Shevchenko
2022-10-17  8:59   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 10/36] pinctrl: imx: " Andy Shevchenko
2022-10-17  8:59   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 11/36] pinctrl: ingenic: " Andy Shevchenko
2022-10-12  9:15   ` Paul Cercueil
2022-10-17  9:00   ` Linus Walleij
2022-10-10 20:14 ` [PATCH v2 12/36] pinctrl: k210: " Andy Shevchenko
2022-10-10 22:33   ` Damien Le Moal
2022-10-10 20:14 ` [PATCH v2 13/36] pinctrl: lochnagar: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 14/36] pinctrl: mediatek: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 15/36] pinctrl: mvebu: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 16/36] pinctrl: npcm7xx: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 17/36] pinctrl: ocelot: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 18/36] pinctrl: qcom: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 19/36] pinctrl: renesas: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 20/36] pinctrl: samsung: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 21/36] pinctrl: single: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 22/36] pinctrl: spear: " Andy Shevchenko
2022-10-11  2:56   ` Viresh Kumar
2022-10-10 20:14 ` [PATCH v2 23/36] pinctrl: sprd: " Andy Shevchenko
2022-10-13  1:23   ` Baolin Wang
2022-10-10 20:14 ` [PATCH v2 24/36] pinctrl: st: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 25/36] pinctrl: starfive: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 26/36] pinctrl: stm32: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 27/36] pinctrl: stmfx: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 28/36] pinctrl: tegra: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 29/36] pinctrl: ti-iodelay: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 30/36] pinctrl: uniphier: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 31/36] pinctrl: zynqmp: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 32/36] pinctrl: cherryview: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 33/36] pinctrl: lynxpoint: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 34/36] pinctrl: merrifield: " Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 35/36] pinctrl: intel: " Andy Shevchenko
2022-10-13 14:53   ` Mika Westerberg
2022-10-13 16:05     ` Andy Shevchenko
2022-10-10 20:14 ` [PATCH v2 36/36] pinctrl: Clean up headers Andy Shevchenko
     [not found]   ` <d63088d7-202b-a550-01e5-345a22de5f7d@amd.com>
     [not found]     ` <CAMuHMdUfdQnisexfs4yLjeKs-LUPY1HjChrgeNjNL1qSErir9Q@mail.gmail.com>
     [not found]       ` <Y0UyOWALxSFai2w6@smile.fi.intel.com>
2022-10-18 13:04         ` Geert Uytterhoeven
2022-10-18 13:07           ` Andy Shevchenko
     [not found] ` <0684f480-2092-d520-2c8e-bd9a2dca47e3@gmail.com>
2022-10-12 10:04   ` [rft, PATCH v2 00/36] pinctrl: Clean up and add missed headers Andy Shevchenko
2022-10-14 15:11     ` Andy Shevchenko
2022-10-17  9:02 ` Linus Walleij
2022-10-17  9:27   ` Andy Shevchenko
2022-10-17  9:58     ` Linus Walleij
2022-10-17 12:18       ` Andy Shevchenko

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).