spi: spi-zynqmp-gqspi: Set CPOL and CPHA during hardware init
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Tue, 11 Oct 2022 06:20:35 +0000 (11:50 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 19 Oct 2022 13:34:35 +0000 (14:34 +0100)
commit22742b8bbdd9fee1ae30be49c7e7e3becba96fc1
treef1d25bf9a267e9184d3f92cd29357230423b857b
parentb3b953084b1bd0e74785bc5017444dd56952fb39
spi: spi-zynqmp-gqspi: Set CPOL and CPHA during hardware init

During every transfer GQSPI driver writes the CPOL & CPHA values to the
configuration register. But the CPOL & CPHA values do not change in between
multiple transfers, so moved the CPOL & CPHA initialization to hardware
init so that the values are written only once.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Link: https://lore.kernel.org/r/20221011062040.12116-3-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-zynqmp-gqspi.c