提交 5c29e21d 编写于 作者: C Cindy H Kao 提交者: Inaky Perez-Gonzalez

wimax/iwmc3200: don't disable the SDIO function if enable fails

In the iwmc3200, disabling the WiMAX SDIO function when enable fails
would possibly result in a device reset triggered by the iwmc3200's
top controller since it monitors the bus reset activities from each
SDIO function. In any case, the disable makes no sense; if the enable
fails, it should not be disabled.

Thus we remove the unecessary sdio_disable_func() in
i2400ms_enable_function().
Signed-off-by: NCindy H Kao <cindy.h.kao@intel.com>
Signed-off-by: NInaky Perez-Gonzalez <inaky@linux.intel.com>
上级 f2696fbd
......@@ -130,7 +130,6 @@ int i2400ms_enable_function(struct sdio_func *func)
goto function_enabled;
}
d_printf(2, dev, "SDIO function failed to enable: %d\n", err);
sdio_disable_func(func);
sdio_release_host(func);
msleep(I2400MS_INIT_SLEEP_INTERVAL);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册