mxm_wifiex: update to mxm5x17283.p2 release

changes:
1. Enabled pmqos by default for IMX platforms
2. WCSWREL-186: Merged a fix to avoid mlanutl tool to fail on kernel higher than L5.15
3. Fixed kernel crash dump warning message when invoking pm_qos_add_request
   or pm_qos_remove_request APIs in case of dual MAC SoC like Skyhawk

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
This commit is contained in:
Sherry Sun 2021-11-15 09:55:16 +08:00 committed by yang.tian
parent b3e54a562a
commit 75a3d35433
5 changed files with 24 additions and 15 deletions

View file

@ -24,7 +24,7 @@
#define _MLAN_DECL_H_
/** MLAN release version */
#define MLAN_RELEASE_VERSION "283"
#define MLAN_RELEASE_VERSION "283.p2"
/** Re-define generic data types for MLAN/MOAL */
/** Signed char (1-byte) */

View file

@ -24,7 +24,7 @@
#define _MLAN_DECL_H_
/** MLAN release version */
#define MLAN_RELEASE_VERSION "283"
#define MLAN_RELEASE_VERSION "283.p2"
/** Re-define generic data types for MLAN/MOAL */
/** Signed char (1-byte) */

View file

@ -125,7 +125,11 @@ static int slew_rate = 3;
int tx_work = 0;
static int rps = 0;
static int tx_skb_clone = 0;
#ifdef IMX_SUPPORT
static int pmqos = 1;
#else
static int pmqos = 0;
#endif
#if defined(STA_SUPPORT)
/** 802.11d configuration */

View file

@ -133,6 +133,10 @@ Change log:
#include <linux/suspend.h>
#endif /* IMX_SUPPORT */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
#include <linux/pm_qos.h>
#endif
#ifndef MIN
/** Find minimum */
#define MIN(a, b) ((a) < (b) ? (a) : (b))
@ -2255,6 +2259,15 @@ struct _moal_handle {
BOOLEAN is_tp_acnt_timer_set;
t_u8 request_pm;
#ifdef IMX_SUPPORT
#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 6, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
struct dev_pm_qos_request woal_pm_qos_req;
#endif
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
struct pm_qos_request woal_pm_qos_req;
#endif
#endif
};
/**

View file

@ -51,15 +51,6 @@ Change log:
#endif
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
#include <linux/pm_qos.h>
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
#ifdef IMX_SUPPORT
static struct pm_qos_request woal_pm_qos_req;
#endif
#endif
#endif /*defined(PCIE) || defined(SDIO)*/
/********************************************************
@ -1592,12 +1583,13 @@ void woal_request_busfreq_pmqos_add(t_void *handle)
#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 6, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
#ifdef IMX_SUPPORT
pm_qos_add_request(&woal_pm_qos_req, PM_QOS_CPU_DMA_LATENCY, 0);
pm_qos_add_request(&pmhandle->woal_pm_qos_req,
PM_QOS_CPU_DMA_LATENCY, 0);
#endif
#endif
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
#ifdef IMX_SUPPORT
cpu_latency_qos_add_request(&woal_pm_qos_req, 0);
cpu_latency_qos_add_request(&pmhandle->woal_pm_qos_req, 0);
#endif
#endif
}
@ -1619,12 +1611,12 @@ void woal_release_busfreq_pmqos_remove(t_void *handle)
#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 6, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
#ifdef IMX_SUPPORT
pm_qos_remove_request(&woal_pm_qos_req);
pm_qos_remove_request(&pmhandle->woal_pm_qos_req);
#endif
#endif
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
#ifdef IMX_SUPPORT
cpu_latency_qos_remove_request(&woal_pm_qos_req);
cpu_latency_qos_remove_request(&pmhandle->woal_pm_qos_req);
#endif
#endif
}