msm: smd_pkt: Rate limit the subsystem_get operation

SMD_PKT Driver open operation triggers modem loading procedure, by invoking
the subsystem_get operation. When the modem image is not flashed in the
target, subsystem_get operation fails which in turn causes the open
operation to fail. Everytime the subsystem_get operation fails, an error
message is logged into the kernel logs by both PIL and SMD_PKT drivers.
Under such error scenario, the user-space modules retry the open operation
in a tight loop. This causes the SMD_PKT driver to invoke subsystem_get
operation frequently. This repeated frequent failures cause frequent
logging by PIL and SMD_PKT drivers into the kernel and eventually a
watchdog bite.

When the subsystem_get operation invoked by SMD_PKT driver fails, SMD_PKT
driver to throttle the subsequent invocation of subsystem_get operation.
This will avoid the potential watchdog bite under error scenarios.

CRs-Fixed: 431153
Change-Id: Ia465856b994e1907ab3c1fb7a7ddcae4fbfb7eb2
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
1 file changed