From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.newsguy.com ([74.209.136.69]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SPzeV-0002uy-2X for linux-mtd@lists.infradead.org; Thu, 03 May 2012 17:17:15 +0000 Message-ID: <4FA2BD85.1050102@newsguy.com> Date: Thu, 03 May 2012 10:16:53 -0700 From: Mike Dunn MIME-Version: 1.0 To: Brian Norris Subject: Re: [PATCH v4 01/10] mtd: nand: add 'oob_required' argument to NAND {read, write}_page interfaces References: <1335978904-8005-1-git-send-email-computersforpeace@gmail.com> <1335978904-8005-2-git-send-email-computersforpeace@gmail.com> In-Reply-To: <1335978904-8005-2-git-send-email-computersforpeace@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Artem Bityutskiy , Lei Wen , Kevin Cernekee , Bastian Hecht , Wolfram Sang , Matthieu CASTET , Huang Shijie , linux-mtd@lists.infradead.org, Shmulik Ladkani , Jiandong Zheng , Florian Fainelli , Scott Wood , Jamie Iles , Thomas Gleixner , Li Yang , David Woodhouse , Axel Lin , Prabhakar Kushwaha List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Brian, I wonder why the new argument type is int instead of bool. Sorry if this was already discussed... I didn't follow the earlier discussions very closely. Still, it seems inconsistent. When calling the functions, you sometimes pass the bool form... > - status = docg4_read_page(mtd, nand, buf, DOCG4_FACTORY_BBT_PAGE); > + status = docg4_read_page(mtd, nand, buf, false, DOCG4_FACTORY_BBT_PAGE); and sometimes the int form... > - chip->ecc.read_page_raw(mtd, chip, buf, page); > + chip->ecc.read_page_raw(mtd, chip, buf, 1, page); I think inconsistency can be confusing. Aside from that, you can add my Acked-by for the docg4 driver if you like. Thanks, Mike