Searched hist:c4a1b0553e4ccc4504ae9f26b74a896cf6ef8858 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/spi/ |
| H A D | spi-nor-core.c | c4a1b0553e4ccc4504ae9f26b74a896cf6ef8858 Tue Apr 02 00:52:53 UTC 2019 Marek Vasut <marek.vasut@gmail.com> UPSTREAM: mtd: spi: Replace ad-hoc default implementation with spi_mem_op
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.
Change-Id: Ie8f39dff83fd7f49b606c813be0260a159257ac9 Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Horatiu Vultur <horatiu.vultur@microchip.com> Cc: Jagan Teki <jagan@openedev.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Cc: Stefan Roese <sr@denx.de> Cc: Vignesh R <vigneshr@ti.com> Tested-by: Ashish Kumar <Ashish.kumar@nxp.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit f909ddb3e1770a5ef18606b46000e0d3eaf63b2e)
|