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=-11.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT 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 BDC05C282DA for ; Thu, 31 Jan 2019 11:32:36 +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 90D80218AF for ; Thu, 31 Jan 2019 11:32:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MFt2z73M"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="bQfZjtSL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 90D80218AF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=ggSi6Up/d0tbvu9vkOoqn5k6hI8DFXkp6N4A4PyrZkQ=; b=MFt 2z73Mfas/v5oa2nqBcyR4v1AyTP1JcE4K0lwRL01FL7r/JBU6brz1uPu7VLRjjsaT2Hsw28gHm0wB UN8uuZdX68AlWWW6t+lfYsuFakoJrUEdotfLv8VcwOlFT1eTK2t6qlcGcku5x/aSz+Xna2hdvOW3L inapEtQTmTw3kOJvDYzceY4RiInj2fxF/3L3fDe+h48fVM+15CIEicDnfTGF5/0c8hwKm5jDIzlj0 foOAuFLIw3G8GLw6YNPcS268HOt1K2sipb905NZFl2Hdr2wksZdpGC+5wr13UfHzNZtpV4nSg7Ird CZfGDtGsnFrR6Pk6w5cIV7fcd17W3yg==; 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 1gpAa9-0005kn-EQ; Thu, 31 Jan 2019 11:32:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpAZx-0005YO-B9 for linux-mtd@lists.infradead.org; Thu, 31 Jan 2019 11:32:29 +0000 Received: from localhost.localdomain (91-160-177-164.subs.proxad.net [91.160.177.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B9BC218AF; Thu, 31 Jan 2019 11:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548934340; bh=KECHgUR8XvASzwFoOH0pgfo8wYu6oNyH2r9iyNsW2SM=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=bQfZjtSLMzxmKEOCNuTEn1/72Edpt/6/EJLWx4Q9y7o7xDYCHXTeJwjb1DLYPOAwE PEvu1xb41+//zsDSka9bSN2L63tTHfaTQk+K0HEZgnxgEWZEfhJJWb0UpPTo+uqliB y65Mb1mHeT0JKsEGBRJcvS2FAsywpEUavcBYaKhY= From: Boris Brezillon To: Boris Brezillon , Richard Weinberger , Miquel Raynal , linux-mtd@lists.infradead.org Subject: Re: mtd: spinand: Handle the case where PROGRAM LOAD does not reset the cache Date: Thu, 31 Jan 2019 12:32:12 +0100 Message-Id: <20190131113212.18961-1-bbrezillon@kernel.org> X-Mailer: git-send-email 2.17.1 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: d4363fc4cbb327e87fd98daff55acf2be30ac63b In-Reply-To: <20190124142007.11607-1-bbrezillon@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190131_033222_296256_1E1537A9 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. 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: Brian Norris , Marek Vasut , Stefan Roese , David Woodhouse , stable@vger.kernel.org MIME-Version: 1.0 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 Thu, 2019-01-24 at 14:20:07 UTC, Boris Brezillon wrote: > Looks like PROGRAM LOAD (AKA write cache) does not necessarily reset > the cache content to 0xFF (depends on vendor implementation), so we > must fill the page cache entirely even if we only want to program the > data portion of the page, otherwise we might corrupt the BBM or user > data previously programmed in OOB area. > > Fixes: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NANDs") > Reported-by: Stefan Roese > Cc: > Signed-off-by: Boris Brezillon > Tested-by: Stefan Roese > Reviewed-by: Stefan Roese Applied to http://git.infradead.org/linux-mtd.git mtd/fixes. Boris ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/