File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4156,7 +4156,8 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
4156
4156
return - EINVAL ;
4157
4157
if (xfer -> tx_nbits != SPI_NBITS_SINGLE &&
4158
4158
xfer -> tx_nbits != SPI_NBITS_DUAL &&
4159
- xfer -> tx_nbits != SPI_NBITS_QUAD )
4159
+ xfer -> tx_nbits != SPI_NBITS_QUAD &&
4160
+ xfer -> tx_nbits != SPI_NBITS_OCTAL )
4160
4161
return - EINVAL ;
4161
4162
if ((xfer -> tx_nbits == SPI_NBITS_DUAL ) &&
4162
4163
!(spi -> mode & (SPI_TX_DUAL | SPI_TX_QUAD )))
@@ -4171,7 +4172,8 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
4171
4172
return - EINVAL ;
4172
4173
if (xfer -> rx_nbits != SPI_NBITS_SINGLE &&
4173
4174
xfer -> rx_nbits != SPI_NBITS_DUAL &&
4174
- xfer -> rx_nbits != SPI_NBITS_QUAD )
4175
+ xfer -> rx_nbits != SPI_NBITS_QUAD &&
4176
+ xfer -> rx_nbits != SPI_NBITS_OCTAL )
4175
4177
return - EINVAL ;
4176
4178
if ((xfer -> rx_nbits == SPI_NBITS_DUAL ) &&
4177
4179
!(spi -> mode & (SPI_RX_DUAL | SPI_RX_QUAD )))
Original file line number Diff line number Diff line change @@ -1085,12 +1085,13 @@ struct spi_transfer {
1085
1085
unsigned dummy_data :1 ;
1086
1086
unsigned cs_off :1 ;
1087
1087
unsigned cs_change :1 ;
1088
- unsigned tx_nbits :3 ;
1089
- unsigned rx_nbits :3 ;
1088
+ unsigned tx_nbits :4 ;
1089
+ unsigned rx_nbits :4 ;
1090
1090
unsigned timestamped :1 ;
1091
1091
#define SPI_NBITS_SINGLE 0x01 /* 1-bit transfer */
1092
1092
#define SPI_NBITS_DUAL 0x02 /* 2-bit transfer */
1093
1093
#define SPI_NBITS_QUAD 0x04 /* 4-bit transfer */
1094
+ #define SPI_NBITS_OCTAL 0x08 /* 8-bit transfer */
1094
1095
u8 bits_per_word ;
1095
1096
struct spi_delay delay ;
1096
1097
struct spi_delay cs_change_delay ;
You can’t perform that action at this time.
0 commit comments