intel: mailbox: Use retry count in mailbox poll
Change the main loop inside mailbox poll function from while(1) to a
retry counter named sdm_loop. This is to limit the maximum possible
looping of the function and prevent unexpected behaviour.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I63afad958fe5f656f6333b60d5a8b4c0ada3b23d
1 parent d96e7cd commit 4978bc28325f5337bac5b2a2df1b772409628cb2
@Abdul Halim, Muhammad Hadi Asyrafi Abdul Halim, Muhammad Hadi Asyrafi authored on 1 Jun 2020
Showing 1 changed file
View
plat/intel/soc/common/soc/socfpga_mailbox.c