wlcore: always register dummy hardirq
This keeps the kernel happy when using edge-irqs and requesting a threaded irq. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
1f8a1890ed
commit
f2cede49ae
1 changed files with 11 additions and 3 deletions
|
@ -5994,6 +5994,11 @@ static const struct wiphy_wowlan_support wlcore_wowlan_support = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static irqreturn_t wlcore_hardirq(int irq, void *cookie)
|
||||||
|
{
|
||||||
|
return IRQ_WAKE_THREAD;
|
||||||
|
}
|
||||||
|
|
||||||
static void wlcore_nvs_cb(const struct firmware *fw, void *context)
|
static void wlcore_nvs_cb(const struct firmware *fw, void *context)
|
||||||
{
|
{
|
||||||
struct wl1271 *wl = context;
|
struct wl1271 *wl = context;
|
||||||
|
@ -6002,6 +6007,7 @@ static void wlcore_nvs_cb(const struct firmware *fw, void *context)
|
||||||
struct wl12xx_platform_data *pdata = pdev_data->pdata;
|
struct wl12xx_platform_data *pdata = pdev_data->pdata;
|
||||||
unsigned long irqflags;
|
unsigned long irqflags;
|
||||||
int ret;
|
int ret;
|
||||||
|
irq_handler_t hardirq_fn = NULL;
|
||||||
|
|
||||||
if (fw) {
|
if (fw) {
|
||||||
wl->nvs = kmemdup(fw->data, fw->size, GFP_KERNEL);
|
wl->nvs = kmemdup(fw->data, fw->size, GFP_KERNEL);
|
||||||
|
@ -6030,12 +6036,14 @@ static void wlcore_nvs_cb(const struct firmware *fw, void *context)
|
||||||
wl->platform_quirks = pdata->platform_quirks;
|
wl->platform_quirks = pdata->platform_quirks;
|
||||||
wl->if_ops = pdev_data->if_ops;
|
wl->if_ops = pdev_data->if_ops;
|
||||||
|
|
||||||
if (wl->platform_quirks & WL12XX_PLATFORM_QUIRK_EDGE_IRQ)
|
if (wl->platform_quirks & WL12XX_PLATFORM_QUIRK_EDGE_IRQ) {
|
||||||
irqflags = IRQF_TRIGGER_RISING;
|
irqflags = IRQF_TRIGGER_RISING;
|
||||||
else
|
hardirq_fn = wlcore_hardirq;
|
||||||
|
} else {
|
||||||
irqflags = IRQF_TRIGGER_HIGH | IRQF_ONESHOT;
|
irqflags = IRQF_TRIGGER_HIGH | IRQF_ONESHOT;
|
||||||
|
}
|
||||||
|
|
||||||
ret = request_threaded_irq(wl->irq, NULL, wlcore_irq,
|
ret = request_threaded_irq(wl->irq, hardirq_fn, wlcore_irq,
|
||||||
irqflags, pdev->name, wl);
|
irqflags, pdev->name, wl);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
wl1271_error("request_irq() failed: %d", ret);
|
wl1271_error("request_irq() failed: %d", ret);
|
||||||
|
|
Loading…
Add table
Reference in a new issue