Skip to contentSkip to conversation

gpio: vf610: update comment for i.MX8ULP and i.MX93 legacy compatibles

PATCH Applied Peng Fan (OSS) 2 participants 2 messages Oct 7, 2023 – Oct 9, 2023 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: vf610: update comment for i.MX8ULP and i.MX93 legacy compatibles

From: Peng Fan <[email protected]>

i.MX8ULP and i.MX93 legacy compatible strings use dual regs, while new compatible strings use one reg. The "support old compatible strings" is not clear to reflect the fact, so update it.

---

To address:
https://lore.kernel.org/all/[email protected]/
Marco:
I added your tag with Suggested-by, since you suggested this.

 drivers/gpio/gpio-vf610.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpio/gpio-vf610.c +4 -1
index c03dfda41d4c..a89ae84a1fa0 100644
@@ -287,7 +287,10 @@ static int vf610_gpio_probe(struct platform_device *pdev)
 
 	dual_base = port->sdata->have_dual_base;
 
-	/* support old compatible strings */
+	/*
+	 * Handle legacy compatible combinations which used two reg values
+	 * for the i.MX8ULP and i.MX93.
+	 */
 	if (device_is_compatible(dev, "fsl,imx7ulp-gpio") &&
 	    (device_is_compatible(dev, "fsl,imx93-gpio") ||
 	    (device_is_compatible(dev, "fsl,imx8ulp-gpio"))))
Signature · 1 line
2.37.1
#1 lore raw
Quoted 36 lines · Peng Fan (OSS)

From: Peng Fan <[email protected]>

i.MX8ULP and i.MX93 legacy compatible strings use dual regs, while new compatible strings use one reg. The "support old compatible strings" is not clear to reflect the fact, so update it.

---

To address:
https://lore.kernel.org/all/[email protected]/
Marco:
I added your tag with Suggested-by, since you suggested this.

 drivers/gpio/gpio-vf610.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpio/gpio-vf610.c +4 -2
index c03dfda41d4c..a89ae84a1fa0 100644
@@ -287,7 +287,10 @@ static int vf610_gpio_probe(struct platform_device *pdev)
 
        dual_base = port->sdata->have_dual_base;
 
-       /* support old compatible strings */
+       /*
+        * Handle legacy compatible combinations which used two reg values
+        * for the i.MX8ULP and i.MX93.
+        */
        if (device_is_compatible(dev, "fsl,imx7ulp-gpio") &&
            (device_is_compatible(dev, "fsl,imx93-gpio") ||
            (device_is_compatible(dev, "fsl,imx8ulp-gpio"))))
--
Quoted 2 lines

2.37.1

Applied, thanks!

Bart