提交 2e308026 编写于 作者: J Jun Chen 提交者: Greg Kroah-Hartman

serial: ifx6x60: del_timer_sync must not be called in interrupt context.

This patch make use of del_timer instead of del_timer_sync in the
interrupt context.
The spi_timer function don't use any resources that may release after
running del_timer,
so using the del_timer is also safe and enough in this context.
Signed-off-by: NChen Jun <jun.d.chen@intel.com>
Acked-by: NAlan Cox <alan@linux.intel.com>
Tested-by: NChuansheng Liu <chuansheng.liu@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c73ba2ae
......@@ -866,7 +866,7 @@ static int ifx_spi_create_port(struct ifx_spi_device *ifx_dev)
static void ifx_spi_handle_srdy(struct ifx_spi_device *ifx_dev)
{
if (test_bit(IFX_SPI_STATE_TIMER_PENDING, &ifx_dev->flags)) {
del_timer_sync(&ifx_dev->spi_timer);
del_timer(&ifx_dev->spi_timer);
clear_bit(IFX_SPI_STATE_TIMER_PENDING, &ifx_dev->flags);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册