Skip to content

Commit a6af366

Browse files
JiafeiPandkalowsk
authored andcommitted
drivers: gpio: rgpio: not support GPIO_DISCONNECTED
The hardware don't support GPIO_DISCONNECTED. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
1 parent 0971240 commit a6af366

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpio/gpio_mcux_rgpio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ static int mcux_rgpio_configure(const struct device *dev,
5656
struct pinctrl_soc_pin pin_cfg;
5757
int cfg_idx = pin, i;
5858

59+
if (flags == GPIO_DISCONNECTED) {
60+
return -ENOTSUP;
61+
}
62+
5963
/* Make sure pin is supported */
6064
if ((config->common.port_pin_mask & BIT(pin)) == 0) {
6165
return -ENOTSUP;

0 commit comments

Comments
 (0)