From: Michal Simek Date: Thu, 24 Sep 2015 18:13:45 +0000 (+0200) Subject: net: gem: Enable CTRL+C in wait_for_bit X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=b8de29feaee2a26e4a72800ed17994c9312f1735;p=u-boot.git net: gem: Enable CTRL+C in wait_for_bit Enable to break waiting loop at any time. Signed-off-by: Michal Simek Acked-by: Joe Hershberger --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 0ee909c97f..0a41281e90 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -469,6 +470,11 @@ static int wait_for_bit(const char *func, u32 *reg, const u32 mask, if (get_timer(start) > timeout) break; + if (ctrlc()) { + puts("Abort\n"); + return -EINTR; + } + udelay(1); }