Skip to content

Commit 71d3703

Browse files
myguitarkartben
authored andcommitted
drivers: spi: dw: fix dfs offset in HSSI controller
The DFS(Data Frame Size) is at CTRLR0[4:0] in HSSI controller. Signed-off-by: Younghyun Park <[email protected]>
1 parent dd82520 commit 71d3703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_dw.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static int spi_dw_configure(const struct device *dev,
226226
}
227227

228228
/* Word size */
229-
if (info->max_xfer_size == 32) {
229+
if (!IS_ENABLED(CONFIG_SPI_DW_HSSI) && (info->max_xfer_size == 32)) {
230230
ctrlr0 |= DW_SPI_CTRLR0_DFS_32(SPI_WORD_SIZE_GET(config->operation));
231231
} else {
232232
ctrlr0 |= DW_SPI_CTRLR0_DFS_16(SPI_WORD_SIZE_GET(config->operation));

0 commit comments

Comments
 (0)