From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PUcRT-0000OF-4I for barebox@lists.infradead.org; Mon, 20 Dec 2010 09:54:34 +0000 From: Sascha Hauer Date: Mon, 20 Dec 2010 10:53:44 +0100 Message-Id: <1292838831-25038-2-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1292838831-25038-1-git-send-email-s.hauer@pengutronix.de> References: <1292838831-25038-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/8] cfi flash driver: check for ctrl-c during erase To: barebox Signed-off-by: Sascha Hauer --- drivers/nor/cfi_flash.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/nor/cfi_flash.c b/drivers/nor/cfi_flash.c index 2fa2c6b..d190e35 100644 --- a/drivers/nor/cfi_flash.c +++ b/drivers/nor/cfi_flash.c @@ -498,6 +498,11 @@ static int __cfi_erase(struct cdev *cdev, size_t count, unsigned long offset, if (ret) goto out; + if (ctrlc()) { + ret = -EINTR; + goto out; + } + if (verbose) show_progress(i - start); } -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox