“62c4f0a2d5a188f73a94f2cb8ea0dba3e7cf0a7f”上不存在“arch/mips/include/asm/byteorder.h”
提交 af793e8d 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

gpio-fsm: Fix shutdown timeout handling

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

The driver is intended to jump directly to a shutdown state in the
event of a timeout during shutdown, but the sense of the test was
inverted.
Signed-off-by: NPhil Elwell <phil@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 75c9cf55
...@@ -1142,7 +1142,8 @@ static int gpio_fsm_remove(struct platform_device *pdev) ...@@ -1142,7 +1142,8 @@ static int gpio_fsm_remove(struct platform_device *pdev)
gf->current_state->shutdown_target == gf->current_state->shutdown_target ==
gf->current_state, gf->current_state,
msecs_to_jiffies(gf->shutdown_timeout_ms)); msecs_to_jiffies(gf->shutdown_timeout_ms));
if (gf->current_state->shutdown_target == gf->current_state) /* On failure to reach a shutdown state, jump to one */
if (gf->current_state->shutdown_target != gf->current_state)
gpio_fsm_enter_state(gf, gf->shutdown_state); gpio_fsm_enter_state(gf, gf->shutdown_state);
} }
cancel_work_sync(&gf->work); cancel_work_sync(&gf->work);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册