Per i.MX8MQ Reference manual:
MSITE:
Monitoring site select 0 - 2. By setting the select bit for a temperature sensor site,
it is enabled and included in all monitoring functions. For proper operation, this
field should only change when monitoring is
disabled. If no site is selected, site 0 is monitored by default.
ME: Before enabling the TMU for monitoring, the TMU must be configured,
see section Initialization Information. Failure to properly initialize the
configuration table may result in boundedly undefined
behavior.
So we must set the SITEs bits before enabling ME bit. So set TMR_ME when
each time call invoke mode violates the spec.
As I understand, change_mode is per zone, which means per msite for TMU,
but TMU_ME is a global gating bit which should not be set before all msites
are set.