summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-07-08 15:26:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-09 12:17:16 +0200
commit3cad56f3e166b7b070c8e8bade5c29a04d74ef75 (patch)
treeb50d49af45e2fb5b4e729e7c63208c3988564d1b /drivers/pinctrl
parente30dc333268cbbcd2e5bd49e97959af90da16d20 (diff)
downloadbarebox-3cad56f3e166b7b070c8e8bade5c29a04d74ef75.tar.gz
barebox-3cad56f3e166b7b070c8e8bade5c29a04d74ef75.tar.xz
pinctrl: stm32: add debug output in set_state callback
There's already a debug output whenever a pin is configured, extend this by printing a "header" with the node name and how many pins configurations will follow. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-stm32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-stm32.c b/drivers/pinctrl/pinctrl-stm32.c
index 8e392eac50..af96974d0d 100644
--- a/drivers/pinctrl/pinctrl-stm32.c
+++ b/drivers/pinctrl/pinctrl-stm32.c
@@ -138,6 +138,9 @@ static int stm32_pinctrl_set_state(struct pinctrl_device *pdev, struct device_no
else if (of_get_property(pins, "output-high", NULL))
dir = PIN_OUTPUT_HIGH;
+ dev_dbg(pdev->dev, "%s: multiplexing %d pins\n",
+ pins->full_name, num_pins);
+
for (i = 0; i < num_pins; i++) {
struct stm32_gpio_bank *bank = NULL;
u32 pinfunc, mode, alt;