Repository navigation
Commit d962608
spi: Add SPI_NO_TX/RX support
Transmit/receive only is a valid SPI mode. For example, the MOSI/TX line
might be missing from an ADC while for a DAC the MISO/RX line may be
optional. This patch adds these two new modes: SPI_NO_TX and
SPI_NO_RX. This way, the drivers will be able to identify if any of
these two lines is missing and to adjust the transfers accordingly.
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201221152936.53873-2-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent f700514 commit d962608
3 files changed
Lines changed: 47 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1941 | 1941 | | |
1942 | 1942 | | |
1943 | 1943 | | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
1944 | 1947 | | |
1945 | 1948 | | |
1946 | 1949 | | |
| |||
1962 | 1965 | | |
1963 | 1966 | | |
1964 | 1967 | | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
1965 | 1971 | | |
1966 | 1972 | | |
1967 | 1973 | | |
| |||
3329 | 3335 | | |
3330 | 3336 | | |
3331 | 3337 | | |
3332 | | - | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
3333 | 3341 | | |
3334 | | - | |
3335 | | - | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
3336 | 3346 | | |
3337 | | - | |
| 3347 | + | |
3338 | 3348 | | |
3339 | 3349 | | |
3340 | 3350 | | |
| |||
3348 | 3358 | | |
3349 | 3359 | | |
3350 | 3360 | | |
3351 | | - | |
| 3361 | + | |
| 3362 | + | |
3352 | 3363 | | |
3353 | 3364 | | |
3354 | 3365 | | |
| |||
3610 | 3621 | | |
3611 | 3622 | | |
3612 | 3623 | | |
| 3624 | + | |
| 3625 | + | |
3613 | 3626 | | |
3614 | 3627 | | |
3615 | 3628 | | |
| |||
3623 | 3636 | | |
3624 | 3637 | | |
3625 | 3638 | | |
| 3639 | + | |
| 3640 | + | |
3626 | 3641 | | |
3627 | 3642 | | |
3628 | 3643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
169 | 182 | | |
170 | 183 | | |
171 | 184 | | |
| |||
189 | 202 | | |
190 | 203 | | |
191 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
192 | 209 | | |
193 | 210 | | |
194 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
31 | 41 | | |
0 commit comments