MLK-20481: hdp: change hdmi keep-alive check mechanism
authorSandor Yu <Sandor.yu@nxp.com>
Wed, 28 Nov 2018 07:06:17 +0000 (15:06 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit0304ddfc9d3aab2041c3f61745935b46c200d575
treeebb52784d3c4c8080b79c2c9066958c16f446484
parent05fd8081a94410940d35c04dbed8a7a397b7c915
MLK-20481: hdp: change hdmi keep-alive check mechanism

The current keep-alive check mechanism uses a static variable
that is initialized to 0. When the function is first called, it may
happen to catch the 8-bit keep-alive counter right when it
overflows, hence returning BUSY.

This patch will keep checking the counter for 10us, every 1us,
but it will immediately return if the keep-alive counter changed.

Signed-off-by: Laurentiu Palcu<laurentiu.palcu@nxp.com>
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
drivers/mxc/hdp/API_General.c