/* Clear the MSTATUS bits and wait for them to be cleared. 
This spins forever for the bits to be cleared; */
static void mcux_i3c_status_clear(I3C_Type *base, uint32_t mask)
/* Clear the MSTATUS bits and wait for them to be cleared. 
This spins forever for the bits to be cleared; */
static void mcux_i3c_status_clear(I3C_Type *base, uint32_t mask)
{
	while (1) {
		base->MSTATUS = mask;
		if (!mcux_i3c_status_is_set(base, mask)) {
			break;
		}
		k_busy_wait(1);
	}
}