From: Marek Vasut Date: Wed, 10 Apr 2019 08:44:08 +0200 Subject: [U-Boot] [PATCH] mtd: spi: Replace ad-hoc default implementation with spi_mem_op In-Reply-To: References: <20190402005253.14510-1-marek.vasut+renesas@gmail.com> <537b0f0b-206a-dd7e-34e7-8b0d30d8643b@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 4/4/19 8:10 AM, Ashish Kumar wrote: > > >> -----Original Message----- >> From: Vignesh Raghavendra >> Sent: Tuesday, April 2, 2019 10:04 AM >> To: Marek Vasut ; u-boot at lists.denx.de >> Cc: Marek Vasut ; Horatiu Vultur >> ; Jagan Teki ; Simon >> Goldschmidt ; Stefan Roese ; >> Ashish Kumar >> Subject: Re: [PATCH] mtd: spi: Replace ad-hoc default implementation with >> spi_mem_op >> >> + Ashish, >> >> On 02/04/19 6:22 AM, Marek Vasut wrote: >>> Replace the ad-hoc erase operation implementation with a simple >>> spi_mem_op implementation of the same functionality. This is a minor >>> optimization and removal of the ad-hoc code. >>> >>> This however also changes the behavior of the execution of the erase >>> opcode from two separate transfer requests to the SPI NOR driver to >>> one transfer request to the SPI NOR driver. The former was how U-Boot >>> behaved before the SPI NOR framework was imported and the later was >>> introduced by the SPI NOR framework. The former is more optimal, so >>> keep that. >>> >>> Signed-off-by: Marek Vasut >>> Cc: Horatiu Vultur >>> Cc: Jagan Teki >>> Cc: Simon Goldschmidt >>> Cc: Stefan Roese >>> Cc: Vignesh R >>> --- >> >> Marek, thanks for the fix! >> >> Jagan, >> >> Could we get this merged before v2019.04 release as this should fix regression >> wrt erase reported by Ashish. > > > Yes, follow patch reverts back to old method of erase implementation. > Tested-by: Ashish Kumar I guess this never made it into the release, so the SPI NOR erase is broken in v2019.04 ? -- Best regards, Marek Vasut