msm: rpc: Reset RPC endpoint's reply bucket count during modem reset

Every RPC endpoint maintains a reference counter to represent the
number of entries consumed from the reply bucket. During modem reset
this counter is not reset and after few modem resets this counter reaches
the maximum count. Hence the RPC framework stops sending out the replies.

CRs-Fixed: 297292
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
diff --git a/arch/arm/mach-msm/smd_rpcrouter.c b/arch/arm/mach-msm/smd_rpcrouter.c
index e0aad46..98c5998 100644
--- a/arch/arm/mach-msm/smd_rpcrouter.c
+++ b/arch/arm/mach-msm/smd_rpcrouter.c
@@ -312,6 +312,7 @@
 			list_del(&reply->list);
 			kfree(reply);
 		}
+		ept->reply_cnt = 0;
 		spin_unlock(&ept->reply_q_lock);
 
 		/* Set restart state for local ep */