spi: mchp-pci1xxxx: Fix length of SPI transactions not set properly in driver
authorTharun Kumar P <tharunkumar.pasumarthi@microchip.com>
Tue, 4 Apr 2023 17:16:11 +0000 (22:46 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 5 Apr 2023 11:33:27 +0000 (12:33 +0100)
commit35c8c5e503a82e0a4bf251d32096211eba8c2be6
treee1f8ac4e7d14203aa89ab430fce216c4f22f0463
parent43bac5158bcc5fe392a17457fda1f8e33a13e458
spi: mchp-pci1xxxx: Fix length of SPI transactions not set properly in driver

In pci1xxxx_spi_transfer_one API, length of SPI transaction gets cleared
by setting of length mask. Set length of transaction only after masking
length field.

Fixes: 1cc0cbea7167 ("spi: microchip: pci1xxxx: Add driver for SPI controller of PCI1XXXX PCIe switch")
Signed-off-by: Tharun Kumar P <tharunkumar.pasumarthi@microchip.com>
Link: https://lore.kernel.org/r/20230404171613.1336093-2-tharunkumar.pasumarthi@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pci1xxxx.c