Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758751AbcLAJQT (ORCPT ); Thu, 1 Dec 2016 04:16:19 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:53013 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754874AbcLAJQR (ORCPT ); Thu, 1 Dec 2016 04:16:17 -0500 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com uB19Fl1f015285 X-Nifty-SrcIP: [209.85.213.169] MIME-Version: 1.0 In-Reply-To: <20161130091722.2e35f32a@bbrezillon> References: <1480183585-592-1-git-send-email-yamada.masahiro@socionext.com> <20161127160459.5894be93@bbrezillon> <20161130091722.2e35f32a@bbrezillon> From: Masahiro Yamada Date: Thu, 1 Dec 2016 18:15:46 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/39] mtd: nand: denali: 2nd round of Denali NAND IP patch bomb To: Boris Brezillon Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse , Cyrille Pitchen , Rob Herring , Mark Rutland , Andy Shevchenko Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1087 Lines: 39 Hi Boris, 2016-11-30 17:17 GMT+09:00 Boris Brezillon : >> [3] >> Fix raw and oob callbacks. >> >> I asked in another thread, >> the current driver just puts the physically accessed OOB data >> into oob_poi, which is not a collection of ECC data. >> Raw write/read() are wrong as well. > > That's all good things too. > >> >> After fixing those, enable BBT scan by removing the following flag: >> /* skip the scan for now until we have OOB read and write support */ >> chip->options |= NAND_SKIP_BBTSCAN; >> > > Hm, here you have a problem. The layout you described replaces BBMs by > payload data, thus preventing the BBM scan approach (or at least, it > won't work with factory BBMs). As I answered in another mail, the Denali IP expects BBMs at the beginning of each OOB area (standard location). They are protected from the ECC engine. I just did not mention the BBM-reserved area to make the story simpler. So, after fixing oob read/write functions, the driver will be able to enable BBT-scanning. -- Best Regards Masahiro Yamada