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-Tag: v2016.01-rc2~3^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8de29feaee2a26e4a72800ed17994c9312f1735;p=platform%2Fkernel%2Fu-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 0ee909c..0a41281 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); }