gpio: vf610: update comment for i.MX8ULP and i.MX93 legacy compatibles
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
@@ -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
Bartosz Golaszewski
AppliedQuoted 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.
Suggested-by Marco Felsch <[email protected]>Signed-off-by Peng Fan <[email protected]>---
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@@ -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