Skip to content

Commit c410b73

Browse files
danieldegrassemmahadevan108
authored andcommitted
mcux: mcux-sdk: drivers: cache64: remove invalid assert in GetInstance
CACHE64_GetInstanceByAddr() asserts when an address is passed in that is not managed by the CACHE64 controller. This is incorrect behavior, as the CACHE64 driver checks to see if the returned instance number is out of range when using this function, so we should not assert here. Remove the assert so that cache invalidation functions can be used with addresses not the CACHE64 controller's range. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 6e7d5cf commit c410b73

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mcux/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,6 @@ Patch List:
121121
- mcux-sdk/drivers/dspi/fsl_dspi.c, mcux-sdk/drivers/dspi/fsl_dspi.h, mcux-sdk/drivers/dspi/fsl_dspi_edma.c,
122122
mcux-sdk/drivers/dspi/fsl_dspi_edma.h: add the guards for unsupport features on S32Z27x devices
123123
- drivers: irqsteer: adjust CHn_MASK index computation
124+
- mcux-sdk/drivers/cache/cache64/fsl_cache.c: remove invalid assertion when
125+
CACHE64_GetInstanceByAddr() is passed an address not managed by the CACHE64
126+
controller

mcux/mcux-sdk/drivers/cache/cache64/fsl_cache.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ uint32_t CACHE64_GetInstanceByAddr(uint32_t address)
108108
i++;
109109
}
110110

111-
assert(false);
112111
return 0xFFFFFFFFUL;
113112
}
114113

0 commit comments

Comments
 (0)