ADAP_CIM_ERR
if (atomic_testandclear_int(&sc->error_flags, ilog2(ADAP_CIM_ERR))) {
atomic_set_int(&sc->error_flags, ADAP_CIM_ERR);