net/designware: add error message on DMA reset timeout
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Tue, 13 Jan 2015 14:10:24 +0000 (17:10 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 30 Jan 2015 21:55:00 +0000 (15:55 -0600)
commit875143f32428b8317a2b890b34a1eeb31cbf8a53
tree13b69cdea9de9f38c19cc0ae1f69d44cf0bbca5e
parentb7a5b0843812b7bd4a225951ce11e7d14398395c
net/designware: add error message on DMA reset timeout

If for some reason DMA module fails to reset user oserves only this:
--->---
# dhcp
Trying dwmac.e0018000
FAIL
--->---

This message makes not much sense.
With proposed change error message will be more helpful:
--->---
# dhcp
Trying dwmac.e0018000
DMA reset timeout
FAIL
--->---

For example user may do power toggle to recover board functionality.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Pavel Machek <pavel@denx.de>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Ian Campbell <ijc@hellion.org.uk>
Cc: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@ti.com>
Acked-by: Pavel Machek <pavel@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/designware.c