mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rfkill: bt: fix unbalanced wake_host_io
Change-Id: Ie486db27454a78f145d94b2c71b88e1ce3ab605b Signed-off-by: Yao Xiao <xiaoyao@rock-chips.com>
This commit is contained in:
@@ -323,8 +323,6 @@ static int rfkill_rk_set_power(void *data, bool blocked)
|
||||
gpio_direction_output(poweron->io,
|
||||
poweron->enable);
|
||||
msleep(20);
|
||||
if (gpio_is_valid(wake_host->io))
|
||||
gpio_direction_input(wake_host->io);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -337,6 +335,11 @@ static int rfkill_rk_set_power(void *data, bool blocked)
|
||||
}
|
||||
}
|
||||
|
||||
if (gpio_is_valid(wake_host->io)) {
|
||||
LOG("%s: set bt wake_host input!\n", __func__);
|
||||
gpio_direction_input(wake_host->io);
|
||||
}
|
||||
|
||||
if (pinctrl && gpio_is_valid(rts->io)) {
|
||||
pinctrl_select_state(pinctrl, rts->gpio_state);
|
||||
LOG("ENABLE UART_RTS\n");
|
||||
|
||||
Reference in New Issue
Block a user