From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vignesh R Date: Fri, 29 Apr 2016 11:33:21 +0530 Subject: [U-Boot] [PATCH 1/2] mtd: cqspi: Simplify indirect write code In-Reply-To: <1461796606-9254-1-git-send-email-marex@denx.de> References: <1461796606-9254-1-git-send-email-marex@denx.de> Message-ID: <5722F929.7070200@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/28/2016 04:06 AM, Marek Vasut wrote: > The indirect write code is buggy pile of nastiness which fails horribly > when the system runs fast enough to saturate the controller. The failure > results in some pages (256B) not being written to the flash. This can be > observed on systems which run with Dcache enabled and L2 cache enabled, > like the Altera SoCFPGA. > > This patch replaces the whole unmaintainable indirect write implementation > with the one from upcoming Linux CQSPI driver, which went through multiple > rounds of thorough review and testing. While this makes the patch look > terrifying and violates all best-practices of software development, all > the patch does is it plucks out duplicate ad-hoc code distributed across > the driver and replaces it with more compact code doing exactly the same > thing. > > Signed-off-by: Marek Vasut > Cc: Anatolij Gustschin > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Jagan Teki > Cc: Pavel Machek > Cc: Stefan Roese > Cc: Vignesh R > --- Tested on K2G EVM that has Cadence QSPI controller and s25fl512s Spansion flash For both the patches: Tested-by: Vignesh R -- Regards Vignesh