From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-out.m-online.net ([212.18.0.9]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XFOfX-0006TZ-9y for linux-mtd@lists.infradead.org; Thu, 07 Aug 2014 14:27:51 +0000 From: Marek Vasut To: Brian Norris Subject: Re: [PATCH 7/8] mtd: spi-nor: factor out write_enable() for erase commands Date: Thu, 7 Aug 2014 16:25:52 +0200 References: <1407374222-8448-1-git-send-email-computersforpeace@gmail.com> <1407374222-8448-8-git-send-email-computersforpeace@gmail.com> In-Reply-To: <1407374222-8448-8-git-send-email-computersforpeace@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201408071625.52579.marex@denx.de> Cc: Huang Shijie , zajec5@gmail.com, linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thursday, August 07, 2014 at 03:17:01 AM, Brian Norris wrote: > write_enable() was being duplicated to both m25p80.c and fsl-quadspi.c. > But this should be handled within the spi-nor abstraction layer. > > At the same time, let's add write_disable() after erasing, so we don't > leave the flash in a write-enabled state afterward. > > Signed-off-by: Brian Norris Makes sense, thanks! Reviewed-by: Marek Vasut Best regards, Marek Vasut