From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9900AC43381 for ; Sat, 23 Feb 2019 13:05:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B44120675 for ; Sat, 23 Feb 2019 13:05:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E5F7Bh2p"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="QCfdTMkp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B44120675 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kontron.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:In-Reply-To: References:Message-ID:Date:Subject:To:From:Reply-To:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7qdZp3QfflV8r+mKoZiKizq7hKNBq8US1dhcO8C1Fmk=; b=E5F7Bh2pT4IUdU sZU/jFqH2VX4UpWpx+oaCsBr0x4sfsPz7cO9tHom/nP3In7Vp+7Pc/dHqi+PCrEXV0c0S+C3QUagM DMB2F+WQNzz5JG5MogR5jq7L0VcM3E6GgCoPHj1WkN/63REIZFeqcqY9VvN0ixJgRgkSsojvNmqhQ km2VpKathqgNZHI1L3TV+uIQmZXiQ6njFeZamVYoOlU8Xnt9orT5EvSVby3NQFlL/QrZpI9B/j3hy 4Lo1M5M6c2vedFiCvjzvNxmZbThIYsqTOV9rVvyDI5ZQR8C2dKoKa0h4HtPOuM79ckrkq5ffrYtlU YGrV5ESeunYUF85TSj8w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxWzw-0007zA-Gw; Sat, 23 Feb 2019 13:05:44 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxWzo-0007qa-0H; Sat, 23 Feb 2019 13:05:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-ID:Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To: From:Sender:Reply-To:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wh8pjt5EKI9ri94wvcvHWRYu3d0FWGBYjX7gnXHgkPg=; b=QCfdTMkpmvce4jUbqy3YWys39Q 5GMiVJ3DqXhMyCXqPKHnw9Komq53E6140lZPAFw/RDzeAk2ZqmUcsBTmC3axoYdlG3jgYgiQQCKms bqqrw16XUU8Xhx01B+fAam8fab07DsjtQIxDgSieXzZ2FqK5SzQ6nuUD6LrjEjeLRwN4spquNMIKy 3zESi4FdPFMY4tyf1Y1Ecv06FC5YbDQMKRQ+cem2FJtFAFG+Ad+Ki1oWWnvr5fh0ZgEOww/kUug6B o5pVBqlDta9Uo1dA+c16aqcEbF/oxQAnHBCWpvjBf9ycvxkiB33cha5AGFd3M0M3qlXmzsk/U+SAI HFo8pg0A==; Received: from skedge04.snt-world.com ([91.208.41.69]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxWzk-0001zC-Tr; Sat, 23 Feb 2019 13:05:34 +0000 Received: from sntmail12r.snt-is.com (unknown [10.203.32.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge04.snt-world.com (Postfix) with ESMTPS id 7E9D167A7D4; Sat, 23 Feb 2019 14:05:10 +0100 (CET) Received: from sntmail12r.snt-is.com (10.203.32.182) by sntmail12r.snt-is.com (10.203.32.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 23 Feb 2019 14:05:10 +0100 Received: from sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305]) by sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305%3]) with mapi id 15.01.1713.004; Sat, 23 Feb 2019 14:05:10 +0100 From: Schrempf Frieder To: Miquel Raynal , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , "Marek Vasut" , Tudor Ambarus Subject: Re: [PATCH 04/15] mtd: spinand: Implement mtd->_max_bad_blocks Thread-Topic: [PATCH 04/15] mtd: spinand: Implement mtd->_max_bad_blocks Thread-Index: AQHUycY/0x4CXTbTxkWPNjndMVSlV6XtTH6A Date: Sat, 23 Feb 2019 13:05:10 +0000 Message-ID: References: <20190221091527.20497-1-miquel.raynal@bootlin.com> <20190221091527.20497-5-miquel.raynal@bootlin.com> In-Reply-To: <20190221091527.20497-5-miquel.raynal@bootlin.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.9.43] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-ID: <027604EFC2094C40BF4CE7157A9C4A2A@snt-world.com> MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: 7E9D167A7D4.AF557 X-SnT-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: bbrezillon@kernel.org, computersforpeace@gmail.com, dwmw2@infradead.org, juliensu@mxic.com.tw, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, masonccyang@mxic.com.tw, miquel.raynal@bootlin.com, richard@nod.at, thomas.petazzoni@bootlin.com, tudor.ambarus@microchip.com, vigneshr@ti.com, yamada.masahiro@socionext.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190223_130533_073201_A24FE857 X-CRM114-Status: GOOD ( 15.91 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vignesh R , Julien Su , Masahiro Yamada , "linux-mtd@lists.infradead.org" , Thomas Petazzoni , Mason Yang , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On 21.02.19 10:15, Miquel Raynal wrote: > From: Boris Brezillon > > We just have to use nanddev_mtd_max_bad_blocks(). > > Signed-off-by: Boris Brezillon > Signed-off-by: Miquel Raynal Reviewed-by: Frieder Schrempf > --- > drivers/mtd/nand/spi/core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c > index 2ae4237a586e..ed5e340dff51 100644 > --- a/drivers/mtd/nand/spi/core.c > +++ b/drivers/mtd/nand/spi/core.c > @@ -1040,6 +1040,7 @@ static int spinand_init(struct spinand_device *spinand) > mtd->_block_markbad = spinand_mtd_block_markbad; > mtd->_block_isreserved = spinand_mtd_block_isreserved; > mtd->_erase = spinand_mtd_erase; > + mtd->_max_bad_blocks = nanddev_mtd_max_bad_blocks; > > if (spinand->eccinfo.ooblayout) > mtd_set_ooblayout(mtd, spinand->eccinfo.ooblayout); > ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/