Commit 35c9d46 1 parent 8fcd151 commit 35c9d46 Copy full SHA for 35c9d46
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1001,7 +1001,6 @@ static int dspi_probe(struct platform_device *pdev)
1001
1001
1002
1002
master -> cleanup = dspi_cleanup ;
1003
1003
master -> mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST ;
1004
- master -> bits_per_word_mask = SPI_BPW_RANGE_MASK (4 , 16 );
1005
1004
1006
1005
pdata = dev_get_platdata (& pdev -> dev );
1007
1006
if (pdata ) {
@@ -1033,6 +1032,11 @@ static int dspi_probe(struct platform_device *pdev)
1033
1032
}
1034
1033
}
1035
1034
1035
+ if (dspi -> devtype_data -> xspi_mode )
1036
+ master -> bits_per_word_mask = SPI_BPW_RANGE_MASK (4 , 32 );
1037
+ else
1038
+ master -> bits_per_word_mask = SPI_BPW_RANGE_MASK (4 , 16 );
1039
+
1036
1040
res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
1037
1041
base = devm_ioremap_resource (& pdev -> dev , res );
1038
1042
if (IS_ERR (base )) {
You can’t perform that action at this time.
0 commit comments