summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2017-09-28 11:18:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-14 09:53:12 +0100
commite5aa0e86f957709fc72d02ed3d5d0d775a2592f6 (patch)
tree39dca86c7379bb4870eb4f264b0217003afe8f1d /scripts
parent8356c5754cb9854a25e0cebac0ee94a352b3debe (diff)
downloadlinux-e5aa0e86f957709fc72d02ed3d5d0d775a2592f6.tar.gz
linux-e5aa0e86f957709fc72d02ed3d5d0d775a2592f6.tar.bz2
linux-e5aa0e86f957709fc72d02ed3d5d0d775a2592f6.zip
mailbox: mailbox-test: don't rely on rx_buffer content to signal data ready
[ Upstream commit e339c80af95e14de3712d69ddea09a3868fa14cd ] Currently we rely on the first byte of the Rx buffer to check if there's any data available to be read. If the first byte of the received buffer is zero (i.e. null character), then we fail to signal that data is available even when it's available. Instead introduce a boolean variable to track the data availability and update it in the channel receive callback as ready and clear it when the data is read. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions