gpio: separate interrupt testing hack
gpio: separate interrupt testing hack

It's a little tricky to test generating an interrupt with GBSim.
Matt put in place a simple hack that sends an IRQ request when
IRQs first get unmasked.

Move that bit of code outside the switch statement.  This allows
this one case to fit the pattern used by all other cases.

In addition, the response to the GPIO IRQ operation is currently
handled in this function.  A debug message mentions its arrival, but
nothing else occurs.  Nothing else happens after this, so just
handle this other unusual case by returning directly.

Signed-off-by: Alex Elder <f429030cf5c0faf36fac3d102073b6e63a647baa@linaro.org>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@google.com>

gregkh/gbsim,projectara/gbsim,gregkh/gbsim,bcousson/gbsim,bcousson/gbsim,projectara/gbsim,bcousson/gbsim