pinctrl: sh-pfc: Print pin group when debugging
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 26 Dec 2018 08:23:27 +0000 (09:23 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 21 Jan 2019 12:24:52 +0000 (13:24 +0100)
Knowing which pin group is being configured is useful information when
debugging pin configuration.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pinctrl/sh-pfc/pinctrl.c

index 274d5ff..c97d2ba 100644 (file)
@@ -347,6 +347,8 @@ static int sh_pfc_func_set_mux(struct pinctrl_dev *pctldev, unsigned selector,
        unsigned int i;
        int ret = 0;
 
+       dev_dbg(pctldev->dev, "Configuring pin group %s\n", grp->name);
+
        spin_lock_irqsave(&pfc->lock, flags);
 
        for (i = 0; i < grp->nr_pins; ++i) {