Our customer used LMV331 as the comparator, when the input voltage is lower than some voltage, output is high level and hold it high. When MCU detected it, the IO port output low level and unlocked. But sometimes the supply current of LMV331 could get to 10mA, while normal operation is less than 1mA. Below is the schematic, the purpose of the diode and 1kohm resistor is to make the output high level feedback to the IN+, if the IN+ is higher than IN-, OUT is always high and hold it high until the output is pulled low by MCU. Please help to analyze why the supply current is so high.