From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ww0-f49.google.com ([74.125.82.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RSn7y-0008Lo-8m for barebox@lists.infradead.org; Tue, 22 Nov 2011 09:58:58 +0000 Received: by wwe32 with SMTP id 32so6797wwe.18 for ; Tue, 22 Nov 2011 01:58:56 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20111122091926.GE27267@pengutronix.de> References: <1321882291-26290-1-git-send-email-h.feurstein@gmail.com> <20111122091926.GE27267@pengutronix.de> Date: Tue, 22 Nov 2011 10:58:56 +0100 Message-ID: From: Hubert Feurstein List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] eeprom/at25: add erase support To: Sascha Hauer Cc: barebox@lists.infradead.org 2011/11/22 Sascha Hauer : > On Mon, Nov 21, 2011 at 02:31:31PM +0100, Hubert Feurstein wrote: >> Signed-off-by: Hubert Feurstein >> --- >> =A0drivers/eeprom/at25.c | =A0 15 +++++++++++++++ >> =A01 files changed, 15 insertions(+), 0 deletions(-) > > Do we need this? We normally only have erase functions for devices that > need it, namely flashes. > In my case I use the eeprom (or fram) to store the environment. So with this I can erase the env-partition simply by calling 'erase /dev/env0'. So it's more like a convenience function. Or is there a other possibility to easily erase a partition completely? The memset-command is not really suitable because I have to pass the size as an argument. Best Regards Hubert _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox