soc: eud: Update the interrupt enablement & handling code

Update the interrupt mask register when EUD is enabled, this is to
ensure that the settings are done after vdd3p1 rail is turned on by USB.
For TX interrupt handling check for the interrupt enable mask along with
status. TX status is always set to 1 even if the interrupt is not
enabled, this is to fecilitate the usage of TX in polling mode as well
as interrupt mode. If we dont check the enable mask with status, whenever
eud summary interrupt is fired, the driver checks TX status is set but the
TX was not requested by Apps EE (Execution Environment) and returns. Due to
this the actual event for which the interrupt was fired never gets handled
and we loop forever.

Change-Id: I64d6a74e550f72793cc50c21f4d32f186e3806ad
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
1 file changed