qcacmn: Fix kernel module check patch warnings in HIF SNOC files
Fix kernel module check patch warnings in HIF SNOC files Change-Id: I20f14f711ca00dfd9d59ee5edd0b3e2e32c90a11 CRs-fixed: 2033001
This commit is contained in:

committed by
snandini

parent
afd6e88b36
commit
8cf38e004b
@@ -45,6 +45,7 @@ static inline void ce_enable_irq_in_individual_register(struct hif_softc *scn,
|
|||||||
int ce_id)
|
int ce_id)
|
||||||
{
|
{
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
|
|
||||||
offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
|
offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
|
||||||
hif_write32_mb(scn->mem + offset, 1);
|
hif_write32_mb(scn->mem + offset, 1);
|
||||||
}
|
}
|
||||||
@@ -53,6 +54,7 @@ static inline void ce_disable_irq_in_individual_register(struct hif_softc *scn,
|
|||||||
int ce_id)
|
int ce_id)
|
||||||
{
|
{
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
|
|
||||||
offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
|
offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
|
||||||
hif_write32_mb(scn->mem + offset, 0);
|
hif_write32_mb(scn->mem + offset, 0);
|
||||||
hif_read32_mb(scn->mem + offset);
|
hif_read32_mb(scn->mem + offset);
|
||||||
|
@@ -396,11 +396,10 @@ int hif_target_sync_ahb(struct hif_softc *scn)
|
|||||||
if (wait_limit < 0) {
|
if (wait_limit < 0) {
|
||||||
HIF_TRACE("%s: FW signal timed out", __func__);
|
HIF_TRACE("%s: FW signal timed out", __func__);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
} else {
|
}
|
||||||
HIF_TRACE("%s: Got FW signal, retries = %x", __func__,
|
HIF_TRACE("%s: Got FW signal, retries = %x", __func__,
|
||||||
500-wait_limit);
|
500-wait_limit);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -155,7 +155,8 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TBD: Temporary changes. Frequency should be
|
/* TBD: Temporary changes. Frequency should be
|
||||||
retrieved through clk_xxx once kernel GCC driver is available */
|
* retrieved through clk_xxx once kernel GCC driver is available
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
void __iomem *mem_gcc;
|
void __iomem *mem_gcc;
|
||||||
uint32_t clk_sel;
|
uint32_t clk_sel;
|
||||||
@@ -318,7 +319,8 @@ void hif_ahb_device_reset(struct hif_softc *scn)
|
|||||||
reset_control_assert(core_resetctl);
|
reset_control_assert(core_resetctl);
|
||||||
|
|
||||||
/* TBD: Check if we should also assert other bits (radio_cold, radio_
|
/* TBD: Check if we should also assert other bits (radio_cold, radio_
|
||||||
warm, radio_srif, cpu_ini) */
|
* warm, radio_srif, cpu_ini)
|
||||||
|
*/
|
||||||
qdf_mdelay(1); /* TBD: Get reqd delay from HW team */
|
qdf_mdelay(1); /* TBD: Get reqd delay from HW team */
|
||||||
|
|
||||||
/* Assert radio cold reset */
|
/* Assert radio cold reset */
|
||||||
|
@@ -65,7 +65,7 @@ void hif_snoc_disable_isr(struct hif_softc *scn)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* hif_dump_registers(): dump bus debug registers
|
* hif_dump_registers(): dump bus debug registers
|
||||||
* @scn: struct hif_opaque_softc
|
* @hif_ctx: struct hif_opaque_softc
|
||||||
*
|
*
|
||||||
* This function dumps hif bus debug registers
|
* This function dumps hif bus debug registers
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user