diag: Rate limit usb write error messages for hsic data

When writing hsic data on the usb (usb_diag_write) the device
can get into the state where an error is returned each time.
If this happens, then the device is flooded with these messages.
Prevent the flooding with messages by rate limiting the error
message.

Change-Id: I0cbec8680197e2f678b336f9b9d4ed49b4c2a91a
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
2 files changed