spi: zynqmp_gqspi: Fix write issue at low frequencies
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Tue, 19 Oct 2021 14:13:00 +0000 (19:43 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 25 Oct 2021 08:02:25 +0000 (10:02 +0200)
commit4f9d25537ce969b3792c217298aa69df9116477b
treec3762d9fa0e6371d045c2ec879a9426f39359426
parent60705883d245c135f20660ebc7e2ed20c294387a
spi: zynqmp_gqspi: Fix write issue at low frequencies

With current implementation we are seeing write issues at low frequencies
below 15Mhz. Make below changes to fix the issue.

1. Remove dummy genfifo entry in zynqmp_qspi_chipselect() which was
   incorrectly added in the past

2. Enable and poll for TX_FIFO_Empty after Tx data is filled in FIFO in
   zynqmp_qspi_fill_tx_fifo().

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Link: https://lore.kernel.org/r/1634652780-21755-1-git-send-email-ashok.reddy.soma@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/zynqmp_gqspi.c