mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
mxm_wifiex: fix oob irq request fail on i.MX93 9x9 qsb board
i.MX93 9x9 qsb board connect the out-of-band WoWLAN irq pin(M.2 pin21 SDIO_WAKE) to I2C IO expander pcal6524 instead of i.MX GPIO, pcal6524 IRQ handlers need to be threaded, and the IRQ trigger type depends on the devicetree setting. Also the IRQF_ONESHOT flag need to be set for threaded IRQ. Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
This commit is contained in:
parent
a036032a76
commit
fb098b07fc
1 changed files with 9 additions and 3 deletions
|
@ -10041,9 +10041,15 @@ void woal_regist_oob_wakeup_irq(moal_handle *handle)
|
|||
goto err_exit;
|
||||
}
|
||||
|
||||
ret = devm_request_irq(dev, handle->irq_oob_wakeup,
|
||||
woal_oob_wakeup_irq_handler,
|
||||
IRQF_TRIGGER_LOW | IRQF_SHARED,
|
||||
/*
|
||||
* i.MX93 9x9 qsb board connect the out-of-band WoWLAN irq pin(M.2 pin21
|
||||
* SDIO_WAKE) to I2C IO expander pcal6524 instead of i.MX GPIO, pcal6524
|
||||
* IRQ handlers need to be threaded, the IRQ trigger type depends on the
|
||||
* Devicetree setting.
|
||||
*/
|
||||
ret = devm_request_threaded_irq(dev, handle->irq_oob_wakeup,
|
||||
NULL, woal_oob_wakeup_irq_handler,
|
||||
IRQF_SHARED | IRQF_ONESHOT,
|
||||
"wifi_oob_wakeup", handle);
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to request irq_oob_wakeup %d (%d)\n",
|
||||
|
|
Loading…
Reference in a new issue