Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4988341imm; Tue, 12 Jun 2018 00:14:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIAgO9PKVbJ7LXHPNWSDqHeA0BjQwqlJbHo/DwNbiaUwAvmB0CB34kbQ/1WrS3bKo3Q2ynL X-Received: by 2002:a63:6383:: with SMTP id x125-v6mr2060163pgb.277.1528787649565; Tue, 12 Jun 2018 00:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528787649; cv=none; d=google.com; s=arc-20160816; b=wD4zbm7a5jdp7a3r8RnK2uu6JQKOgXaadKbelGYsIn6+pkgj+DbfeCDGFeWWMlzdwk /EXLCMmTlsCtZ2fiEspPLFM2SnOCfsPXTDVTfjd9ozIBQBj2/psP3tKo1tgQyrD2qlNj Lv6nBHjnUKXU+EzZpp9FiDSnsN/k+0sFpo/1qnbCN5dYl9NyvZwR4+0abbe7xb2UXLqi hZB6JMM5d/36wVrCKRABMUj0rqJAcQJwAXjj4+BtgGjWg3yifG+b8Q7ym47ZsBy8+X6G AkNOvpI3mnaXXUhTsGeRFcFbaGRyMZJRysxwSk7EzgZsu4yV4HfNkrThXaT9CqN5H5cq cGrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=zJwryIotFN5gYTkYtjsv8fFXFSHZB0HuLx1zDCPHjj4=; b=W4lGYev3AjE/B9lgIwpLRX16/EjzUJsG+yGCuDmUjXBG45mXU7DEwrSLlPuenfXNTK cDnbNFWWIwjGLu7h0Xo4ve9LGa1dwd8IBH9WS7KQGKucX/MwynwLzku1jIW25jeQ5sZj g2cQ19DduclSToY+yg0KfDBlyNXzKRkRDxu9m1kn8/8+BUgcL5/pgC1Mpt9NVCc3po5v /rZ5nF6hq+A3lGzvq8odGttxdDWVgjNW/2ujYjjt9qc2YVDzTDOpPBOQWqEJu9vwVKAt kUA/hugukJ3p8afVy2Ke2EkDQZvCRhhnfmAp/xEsYgKYm7gm4zPCsfhIR2WaYzR3pkAM gSOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12-v6si145110pgs.560.2018.06.12.00.13.55; Tue, 12 Jun 2018 00:14:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754288AbeFLHNc (ORCPT + 99 others); Tue, 12 Jun 2018 03:13:32 -0400 Received: from mail.bootlin.com ([62.4.15.54]:37823 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754065AbeFLHNa (ORCPT ); Tue, 12 Jun 2018 03:13:30 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 361CF2092B; Tue, 12 Jun 2018 09:13:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-37-30.w90-88.abo.wanadoo.fr [90.88.156.30]) by mail.bootlin.com (Postfix) with ESMTPSA id CFDF020719; Tue, 12 Jun 2018 09:13:28 +0200 (CEST) Date: Tue, 12 Jun 2018 09:13:28 +0200 From: Boris Brezillon To: Yogesh Narayan Gaur Cc: "richard@nod.at" , Prabhakar Kushwaha , Han Xu , "linux-kernel@vger.kernel.org" , "linux-spi@vger.kernel.org" , "marek.vasut@gmail.com" , Frieder Schrempf , "broonie@kernel.org" , "linux-mtd@lists.infradead.org" , "miquel.raynal@bootlin.com" , Fabio Estevam , David Wolfe , "computersforpeace@gmail.com" , "dwmw2@infradead.org" Subject: Re: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller Message-ID: <20180612091328.67734adb@bbrezillon> In-Reply-To: References: <1527686082-15142-1-git-send-email-frieder.schrempf@exceet.de> <1527686082-15142-4-git-send-email-frieder.schrempf@exceet.de> <20180608145130.09f979f9@bbrezillon> <20180611094616.5c8f82cf@bbrezillon> <20180611121618.40f4b609@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Jun 2018 06:42:42 +0000 Yogesh Narayan Gaur wrote: > I have tried JFFS2 mounting with smaller partition size but still getting failure. > For partition size equal or less than 1MB, getting errors as > [ 25.044930] jffs2: Too few erase blocks (4) > Thus, need to have size more than 1MB. > > For 2MB partition size getting error message from jffs2_scan_eraseblock(). > root@ls1012ardb:~# cat /proc/mtd > dev: size erasesize name > mtd0: 04000000 00040000 "20c0000.quadspi-0" > mtd1: 00500000 00040000 "rcw" > mtd2: 00a00000 00040000 "test" > mtd3: 00200000 00040000 "rootfs" > root@ls1012ardb:~# mkdir /media/ram ; flash_eraseall /dev/mtd3 > flash_eraseall has been replaced by `flash_erase 0 0`; please use it > Erasing 256 Kibyte @ 1c0000 -- 100 % complete > root@ls1012ardb:~# mount -t jffs2 /dev/mtdblock3 /media/ram/ > [ 26.380989] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0dd0 instead > [ 26.390509] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0x7366 instead > [ 26.399999] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0x736c instead That's weird. Can you tell me on which platform you're testing? lsxxx or vf610? Can you dump the NOR after the erase to make sure the memory is actually erased (filled with 0xff)?