spi: atmel-quadspi: Add verbose debug facilities to monitor register accesses
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 20 Mar 2020 09:37:59 +0000 (09:37 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 2 Apr 2020 11:47:09 +0000 (17:17 +0530)
commit52e2565bfb5d332e53021c6ec437cdb95eaf9dde
treeff71a825a37fa002e01381eb5d851a0e141dbb86
parentba03a6c94493686ec8cc8c4b95dfb3c7a723b99c
spi: atmel-quadspi: Add verbose debug facilities to monitor register accesses

This feature should not be enabled in release but can be useful for
developers who need to monitor register accesses at some specific places.

Helped me identify a bug in u-boot, by comparing the register accesses
from the u-boot driver with the ones from its linux variant.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
[jagan: use 16 bit array with tmp variable]
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/atmel-quadspi.c