]> git.baikalelectronics.ru Git - arm-tf.git/commit
intel: mailbox: Use retry count in mailbox poll
authorAbdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Mon, 1 Jun 2020 17:05:24 +0000 (01:05 +0800)
committerAbdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Tue, 27 Oct 2020 03:17:41 +0000 (11:17 +0800)
commit4978bc28325f5337bac5b2a2df1b772409628cb2
treeca8e1aa44542a09e42cf562ce8629681715ca8fe
parentd96e7cda8a9f84ca8d0054bc1c86aabcb27db1d1
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
plat/intel/soc/common/soc/socfpga_mailbox.c