spi: cadence_qspi: Set tshsl_ns to at least one sclk_ns
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Wed, 2 Jul 2025 06:57:17 +0000 (12:27 +0530)
committerMichal Simek <michal.simek@amd.com>
Tue, 8 Jul 2025 13:01:25 +0000 (15:01 +0200)
commitbfa3f147e1b5df74db8cdffbef5a276d2c2daec3
tree0b5e51277aa180e897af6570c7cf3af231bb6417
parent92fcd3c16839d0bd51b743596017cbd0d1b2e9b6
spi: cadence_qspi: Set tshsl_ns to at least one sclk_ns

tshsl_ns is the clock delay for chip select deassert. This is the delay in
master reference clocks for the length that the master mode chip select
outputs are de-asserted between transactions.

The minimum delay is always SCLK period to ensure the chip select is never
re-asserted within one SCLK period.

That is why tshsl_ns delay should be at least one sclk_ns value. If it is
less than sclk_ns, set it equal to sclk_ns.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20250702065717.3871435-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/cadence_qspi_apb.c