qcacmn: Use ioremap() instead of ioremap_nocache()
As part of compiling wifi driver in kernel version 5.15, the kernel API ioremap_nocache() is no longer supported in kernel version 5.15. Kernel API ioremap_nocache() is being replaced with ioremap() in kernel version 5.6 So, bringing ioremap_nocache() API under kernel version check. Change-Id: I139556e55f8c20093137960f116b3fc067a1829f CRs-Fixed: 3357183
This commit is contained in:

committed by
Madan Koyyalamudi

parent
8f331d9d7e
commit
f066d5ca6a
@@ -567,7 +567,7 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
|
||||
tgt_info->target_type == TARGET_TYPE_QCA5332) {
|
||||
struct hif_softc *scn = HIF_GET_SOFTC(sc);
|
||||
|
||||
sc->mem_ce = ioremap_nocache(HOST_CE_ADDRESS, HOST_CE_SIZE);
|
||||
sc->mem_ce = qdf_ioremap(HOST_CE_ADDRESS, HOST_CE_SIZE);
|
||||
if (IS_ERR(sc->mem_ce)) {
|
||||
hif_err("CE: ioremap failed");
|
||||
return QDF_STATUS_E_IO;
|
||||
@@ -582,8 +582,7 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
|
||||
* In QCA5332 CMEM region is outside WCSS block.
|
||||
* Allocate separate I/O remap to access CMEM address.
|
||||
*/
|
||||
sc->mem_cmem = ioremap_nocache(HOST_CMEM_ADDRESS,
|
||||
HOST_CMEM_SIZE);
|
||||
sc->mem_cmem = qdf_ioremap(HOST_CMEM_ADDRESS, HOST_CMEM_SIZE);
|
||||
if (IS_ERR(sc->mem_cmem)) {
|
||||
hif_err("CE: ioremap failed");
|
||||
return QDF_STATUS_E_IO;
|
||||
@@ -593,7 +592,7 @@ QDF_STATUS hif_ahb_enable_bus(struct hif_softc *ol_sc,
|
||||
/*
|
||||
* PMM SCRATCH Register for QCA5332
|
||||
*/
|
||||
sc->mem_pmm_base = ioremap_nocache(PMM_SCRATCH_BASE,
|
||||
sc->mem_pmm_base = qdf_ioremap(PMM_SCRATCH_BASE,
|
||||
PMM_SCRATCH_SIZE);
|
||||
if (IS_ERR(sc->mem_pmm_base)) {
|
||||
hif_err("CE: ioremap failed");
|
||||
|
Reference in New Issue
Block a user