Page MenuHomeFreeBSD

D31562.diff
No OneTemporary

D31562.diff

diff --git a/sys/riscv/sifive/sifive_spi.c b/sys/riscv/sifive/sifive_spi.c
--- a/sys/riscv/sifive/sifive_spi.c
+++ b/sys/riscv/sifive/sifive_spi.c
@@ -219,6 +219,9 @@
SFSPI_WRITE(sc, SFSPI_REG_SCKDIV, sckdiv);
switch (mode) {
+ case SPIBUS_MODE_NONE:
+ sckmode = 0;
+ break;
case SPIBUS_MODE_CPHA:
sckmode = SFSPI_SCKMODE_PHA;
break;
@@ -228,6 +231,8 @@
case SPIBUS_MODE_CPOL_CPHA:
sckmode = SFSPI_SCKMODE_PHA | SFSPI_SCKMODE_POL;
break;
+ default:
+ return (EINVAL);
}
SFSPI_WRITE(sc, SFSPI_REG_SCKMODE, sckmode);

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 4:39 AM (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14754601
Default Alt Text
D31562.diff (547 B)

Event Timeline