linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* omap2-mcspi multi mode
@ 2024-06-05  3:04 Colin Foster
  2024-06-06  8:06 ` Louis Chauvet
  0 siblings, 1 reply; 7+ messages in thread
From: Colin Foster @ 2024-06-05  3:04 UTC (permalink / raw)
  To: Louis Chauvet; +Cc: Mark Brown, linux-spi, linux-kernel

Hi Louis,

I found that commit e64d3b6fc9a3 ("spi: omap2-mcpsi: Enable MULTI-mode
in more situations") caused a regression in the ocelot_mfd driver. It
essentially causes the boot to hang during probe of the SPI device.

The following patch restores functionality. I can hook up a logic
analyzer tomorrow to get some more info, but I wanted to see if you had
any ideas.

--- a/drivers/mfd/ocelot-spi.c
+++ b/drivers/mfd/ocelot-spi.c
@@ -225,6 +228,8 @@ static int ocelot_spi_probe(struct spi_device *spi)
        }

        spi->bits_per_word = 8;
+       spi->word_delay.value = 1;
+       spi->word_delay.unit = SPI_DELAY_UNIT_NSECS;

        err = spi_setup(spi);
        if (err)


Colin Foster


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-21 16:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05  3:04 omap2-mcspi multi mode Colin Foster
2024-06-06  8:06 ` Louis Chauvet
2024-06-07  3:14   ` Colin Foster
2024-06-07 15:45     ` Mark Brown
2024-06-11 14:21       ` Colin Foster
2024-06-21  8:21         ` Linux regression tracking (Thorsten Leemhuis)
2024-06-21 16:56           ` Colin Foster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).