mtd: cqspi: Simplify indirect read code
authorMarek Vasut <marex@denx.de>
Wed, 27 Apr 2016 21:38:05 +0000 (23:38 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 6 May 2016 16:41:49 +0000 (18:41 +0200)
commit5a824c493a31d06f04a6736fab8f67bf78145003
tree97ed67070ca2b81431dc436c9ea9f83d272b70ab
parent26da6353e17111d7f0882866950cf26a679b8d5f
mtd: cqspi: Simplify indirect read code

The indirect read code is a pile of nastiness. This patch replaces
the whole unmaintainable indirect read implementation with the one
from upcoming Linux CQSPI driver, which went through multiple rounds
of thorough review and testing. 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. There is no
speed change of the read operation.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Jagan Teki <jteki@openedev.com>
Cc: Pavel Machek <pavel@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Vignesh R <vigneshr@ti.com>
drivers/spi/cadence_qspi_apb.c