I am not sure what I am doing wrong here, but my socket rcv interrupt is re-triggering after clearing socket interrupt and common reg socket interrupt.
Poll for SIR status
Check Sn_IR status
clear Sn_IR interrupt (tried writing 0xff)
clear SIR interrupt.
read both IR gives 0 res
After that I read the rx buffer and send sock_RECV.
Is that correct sequence ? or should I first read and send RECV and then clear the interrupts ?