From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751355AbdHaLSv convert rfc822-to-8bit (ORCPT ); Thu, 31 Aug 2017 07:18:51 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:46784 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751286AbdHaLSs (ORCPT ); Thu, 31 Aug 2017 07:18:48 -0400 Date: Thu, 31 Aug 2017 13:18:36 +0200 From: Boris Brezillon To: Lothar =?UTF-8?B?V2HDn21hbm4=?= Cc: Brian Norris , Cyrille Pitchen , David Woodhouse , Marek Vasut , Richard Weinberger , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH 0/2] mtd: nand: fix regression introduced by splitting off manufacturer dependent code Message-ID: <20170831131836.777aa652@bbrezillon> In-Reply-To: <1504001833-18097-1-git-send-email-LW@KARO-electronics.de> References: <1504001833-18097-1-git-send-email-LW@KARO-electronics.de> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Aug 2017 12:17:11 +0200 Lothar Waßmann wrote: > commit c51d0ac59f24 ("mtd: nand: Move Samsung specific init/detection > logic in nand_samsung.c") introduced a regression for Samsung SLC NAND > chips by skipping the initialization of chip->bits_per_cell that is > done in nand_decode_ext_id() from which the manufacturer dependent > code was extracted. > The regression should also affect Hynix and Macronix chips whose code > was separated out in further commits but which I cannot test. > AMD/Spansion and Toshiba NAND are not affected, since they are calling > nand_decode_ext_id() (which initializes bhip->bits_per_cell) in their > .detect function. > > Fix the regression and add a warning to nand_is_slc() to prevent > further regressions of this kind. Applied both to nand/next and generated a new PR to push this in 4.14. Also added the Fixes and Cc-stable tag to the first patch. Thanks, Boris