]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: audio: Ratelimit err messages
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Wed, 8 Jun 2016 15:03:26 +0000 (20:33 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 8 Jun 2016 16:29:02 +0000 (09:29 -0700)
commit4d27574cd354bc47758268c2e32a0a47b7aacfc0
tree82b0b2bab3f7dbcf54a1c2bf736b6e8c6338b2c0
parent109fbdfd6a23c122c564a6cd6671b9911e0a24b5
greybus: audio: Ratelimit err messages

In case of audio mgmt connection failure, GB requests would fail giving
an error message within the driver and reporting error. However there is
no error handling in above HAL and it'll keep on triggering similar
request via GB codec driver. This may overflood serial console. In one
of the instance it locked CPU for >10sec and caused a watchdog bite.
Thus ratelimit those error messages.

Testing Done: compile tested

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_codec.c