From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ob0-f177.google.com ([209.85.214.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SKXeI-0002aP-Vz for linux-mtd@lists.infradead.org; Wed, 18 Apr 2012 16:22:35 +0000 Received: by obcni5 with SMTP id ni5so3163624obc.36 for ; Wed, 18 Apr 2012 09:22:29 -0700 (PDT) Message-ID: <4F8EEA29.20106@gmail.com> Date: Wed, 18 Apr 2012 09:22:01 -0700 From: Brian Norris MIME-Version: 1.0 To: Bastian Hecht Subject: Re: [PATCH 1/2] mtd: nand: add OOB argument to NAND {read, write}_page interfaces References: <1334615755-15418-1-git-send-email-computersforpeace@gmail.com> <1334615755-15418-2-git-send-email-computersforpeace@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Viresh Kumar , Artem Bityutskiy , Nicolas Ferre , Vipin Kumar , linux-mtd@lists.infradead.org, Laurent Pinchart , Florian Fainelli , Jamie Iles , Mike Dunn , Bastian Hecht , Dmitry Eremin-Solenikov , Kevin Cernekee , Lei Wen , Axel Lin , Li Yang , Jean-Christophe PLAGNIOL-VILLARD , Armando Visconti , Liu Shuo , Thomas Gleixner , Scott Branden , Artem Bityutskiy , Wolfram Sang , Huang Shijie , Shmulik Ladkani , Jiandong Zheng , David Woodhouse List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Bastian, On 4/18/2012 2:37 AM, Bastian Hecht wrote: > 2012/4/18 Bastian Hecht: >> I'm currently working on the hardware ECC part of the SH Mobile flctl >> and I like the patchset as it makes things more explicit when OOB data >> is requested or not and such things. It's cleaner and better, thanks! Glad it will help! It's good to know other drivers will see a benefit. > To be a bit more of a concrete help, if you can give me a use case to > test the oob reads/writes I can modify my driver to work with your > patches. Right now I rely on nandwrite, nanddump, nandtest, the kernel > test modules and ubi. With none of them I produced an error so far > although the current implementation of the hardware ECC completely > ignores OOB data other than ECC. Well, for me the big "use case" is that I can support my new DMA controller (that doesn't read/write OOB) without the rest of MTD/NAND choking on anything or returning junk data. So I mostly make sure that nanddump/nandwrite work both with and without OOB (the -o flag) or ECC (the -n flag); that the kernel test modules work; and that UBI/UBIFS work on top of MTD. I don't know if there are any more specific tests you would need to run; are you looking for something else? Brian