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.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 016BBC282D9 for ; Thu, 31 Jan 2019 11:32:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BEFDB218DA for ; Thu, 31 Jan 2019 11:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548934341; bh=KECHgUR8XvASzwFoOH0pgfo8wYu6oNyH2r9iyNsW2SM=; h=From:To:Cc:Subject:Date:In-Reply-To:List-ID:From; b=CFfARJCS0urcukMoyWpgfVuPrOSm3mXu1kFYddU+BfZVqXzrZw8xtmkQllyrz2z0b hgATuZ0yk+uQj85/XzBjw3hifHcXin9eTM/HV78m2BNjNvVXqW6/Jnie8gkqCpyayp bSXh6cdh7EsBUlDSagE5b/9wrts19gkARIPJfvTE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732388AbfAaLcV (ORCPT ); Thu, 31 Jan 2019 06:32:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:47464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732387AbfAaLcV (ORCPT ); Thu, 31 Jan 2019 06:32:21 -0500 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 Cc: Stefan Roese , Marek Vasut , Brian Norris , David Woodhouse , stable@vger.kernel.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> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.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