commit 50ce0800b7341ebf25cf8352707eb22faf1de193
parent 36957cf95df4f72dc2ca27371f2fb71973946766
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date: Tue, 25 Jun 2019 16:12:38 -0700
SDK-183284: Using unsigned int instead of int variable to store the interrupt...
Devices: 56980_B0
Module: stat
Symptom:
Deadlock seen with after porting patch SDK-179173
Using unsigned int instead of int variable to store the interrupt status
register to avoid the interrupt handler going into infinite loop.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sdk-6.5.16/src/soc/esw/tomahawk3.c b/sdk-6.5.16/src/soc/esw/tomahawk3.c
@@ -4012,10 +4012,10 @@ soc_th3_process_pm_intr(void *unit_vp, void *d1,
* different types of interrupts).
*/
static void
-soc_th3_pm_intr_handler(int unit, int cmic_val, int reg_num)
+soc_th3_pm_intr_handler(int unit, uint32 cmic_val, int reg_num)
{
- int cmic_bit = cmic_val;
- int cmic_bit_num = 0;
+ uint32 cmic_bit = cmic_val;
+ uint32 cmic_bit_num = 0;
/* Get the bit num or the hw port macro id */
while(cmic_bit != 0) {