From patchwork Wed Sep 22 04:05:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 71851 Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id CFEBA157D71 for ; Wed, 22 Sep 2010 06:07:03 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id A10AF30D6963 for ; Wed, 22 Sep 2010 06:07:03 +0200 (MEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.17) for (single-drop); Wed, 22 Sep 2010 06:07:03 +0200 (MEST) Received: from murder ([192.168.8.180]) by backend2 (Cyrus v2.2.12) with LMTPA; Wed, 22 Sep 2010 06:04:50 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend1.mail.m-online.net (Cyrus v2.2.12) with LMTPA; Wed, 22 Sep 2010 06:04:50 +0200 Received: from scanner-1.m-online.net (scanner-1.mail.m-online.net [192.168.8.165]) by mail.m-online.net (Postfix) with ESMTP id 425A91C00137; Wed, 22 Sep 2010 06:04:50 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-1.m-online.net (Postfix) with ESMTP id 5C78246C0A8; Wed, 22 Sep 2010 06:04:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7751B281DE; Wed, 22 Sep 2010 06:04:41 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UxVuSSUdJEe1; Wed, 22 Sep 2010 06:04:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0AC6B281C2; Wed, 22 Sep 2010 06:04:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E1CA281B8 for ; Wed, 22 Sep 2010 06:04:33 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K5UzaETYO-0n for ; Wed, 22 Sep 2010 06:04:31 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by theia.denx.de (Postfix) with ESMTPS id 05E2C2817E for ; Wed, 22 Sep 2010 06:04:29 +0200 (CEST) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 136C51B4059; Wed, 22 Sep 2010 04:04:22 +0000 (UTC) From: Mike Frysinger To: u-boot@lists.denx.de, Scott Wood Date: Wed, 22 Sep 2010 00:05:09 -0400 Message-Id: <1285128309-20134-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.3 Subject: [U-Boot] [PATCH] cmd_nand: document "scrub" options X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net The current documentation for the "scrub" option implies it takes no options at all. This can be annoying when you only want to scrub a few blocks and not an entire device. Good thing the code already supports this though since it takes the same arguments as the "erase" option. Inform people! Signed-off-by: Mike Frysinger --- common/cmd_nand.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 3f1d077..7c77983 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -593,6 +593,7 @@ U_BOOT_CMD( "nand bad - show bad blocks\n" "nand dump[.oob] off - dump page\n" "nand scrub - really clean NAND erasing bad blocks (UNSAFE)\n" + " takes the same options as erase\n" "nand markbad off [...] - mark bad block(s) at offset (UNSAFE)\n" "nand biterr off - make a bit error at offset (UNSAFE)" #ifdef CONFIG_CMD_NAND_LOCK_UNLOCK