Commit 3d29fc39 authored by Shalabh Jain's avatar Shalabh Jain
Browse files

diag: Implement new polling response mechanism



PC tools send various polling commands to target to detect its
presence. Initially modem used to respond to all pollings. However,
with new targets, we have applications processor as master as well
as subsystem restart. Due to these new features, modem does not respond
all the time. This change implements a new mechanism to respond to
polling.

The DIAG driver maintains a flag variable to keep track of any polling
command registered by a remote peripheral. As long as any polling command
is present, diag driver ignores a special polling request. If no peripheral
has registered for any polling at all, then diag responds to this special
polling request.

Change-Id: I6ba1744dd3dd4982027b671efce3beffb9a27786
Signed-off-by: default avatarShalabh Jain <shalabhj@codeaurora.org>
parent e9f676d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment