/* psmouse_set_state() sets new psmouse state and resets all flags and counters while holding serio lock so fighting with interrupt handler is not a concern.  */
void psmouse_set_state(struct psmouse *psmouse, enum psmouse_state new_state)
/* psmouse_set_state() sets new psmouse state and resets all flags and counters while holding serio lock so fighting with interrupt handler is not a concern.  */
void psmouse_set_state(struct psmouse *psmouse, enum psmouse_state new_state)
{
	serio_pause_rx(psmouse->ps2dev.serio);
	__psmouse_set_state(psmouse, new_state);
	serio_continue_rx(psmouse->ps2dev.serio);
}