From: Scott Wood Date: Tue, 8 Oct 2013 16:26:32 -0500 Subject: [U-Boot] [PATCH v2 1/4] mtd: nand: add NAND_BUSWIDTH_AUTO to autodetect bus width In-Reply-To: <1380565372-4312-2-git-send-email-pekon@ti.com> References: <1380565372-4312-1-git-send-email-pekon@ti.com> <1380565372-4312-2-git-send-email-pekon@ti.com> Message-ID: <1381267592.7979.274.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2013-09-30 at 23:52 +0530, Pekon Gupta wrote: > @@ -2575,6 +2575,10 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, > int i; > int val; > > + if (chip->options & NAND_BUSWIDTH_16) { > + printf("nand: error: ONFI detection works only in x8 mode\n"); > + return 0; > + } This should just fail silently, as I may be trying to probe a non-ONFI 16-bit chip (but don't want to disable ONFI support at compile time). -Scott