Re: [PATCH v2 2/6] spi: microchip-core: Refactor FIFO read and write handlers
From: Prajna Rajendra Kumar
Date: Thu Nov 27 2025 - 10:58:04 EST
On 26/11/2025 12:13, Andy Shevchenko wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safeHi Andy,
On Wed, Nov 26, 2025 at 12:05:22PM +0000, Mark Brown wrote:
On Wed, Nov 26, 2025 at 09:21:45AM +0000, david laight wrote:...
FWIW, that's what my patch does already :-)I'm not sure I don't prefer the version with one writeb() call.Please don't abuse the ternery operator like this, just write normal
How about:
writeb(spi->tx_buf ? *spi->tx_buf++ : 0xaa,
spi->regs + MCHP_CORESPI_REG_TXDATA);
conditional statements.
--
With Best Regards,
Andy Shevchenko
Thanks for the series. However, this particular patch appears to
introduce a regression. The SPI controller reads an incorrect
Device ID from the peripheral.
I’m investigating the root cause and will follow up.
Best regards,
Prajna