]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: ratelimit warning messages invoked from callback handler
authorAndré Goddard Rosa <andre.goddard@gmail.com>
Sat, 30 May 2009 05:13:58 +0000 (22:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 May 2009 05:13:58 +0000 (22:13 -0700)
commit75afd7bf34af0518a8fd257379fbe8fb82f922aa
treed27e11745942803b94bc459e601a1c3917a09361
parent54a44645ad11a9dbb0cf280799a82060d71a8be9
usbnet: ratelimit warning messages invoked from callback handler

Warning messages coming from rtl8150 driver can flood the console
and make a DTV/set-top-box unable to decode video/audio frames.

'Pegasus' driver handles this situation similarly, preventing this
from happening there.

It happens with a low cost BCM MIPS embedded platform, whenever
timeout errors were coming from usbnet device, making platform
unusable for viewer watching.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/rtl8150.c