Commit 6e124e5
sc16is7xx: Set AUTOCTS and AUTORTS bits
Let serial core know that the chip automatically handles RTS/CTS signal.
This elimines completely unnecessary I2C/SPI bus traffic.
Cease reading from RX FIFO (by disabling RDI interrupt) when throttled.
Eventually the FIFO will fill up and the device will drive RTS output
inactive. Unthrottle by enabling back RDI interrupt.
Indirectly controlling RTS via RX FIFO state seems to be the only option
because RTS bit is ignored when hardware flow control is enabled.
Signed-off-by: Tomasz Moń <tomasz.mon@camlingroup.com>
Link: https://lore.kernel.org/r/20220301060332.2561851-4-tomasz.mon@camlingroup.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 21144ba commit 6e124e5
1 file changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
957 | 957 | | |
958 | 958 | | |
959 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
960 | 983 | | |
961 | 984 | | |
962 | 985 | | |
| |||
1062 | 1085 | | |
1063 | 1086 | | |
1064 | 1087 | | |
1065 | | - | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1066 | 1091 | | |
1067 | 1092 | | |
| 1093 | + | |
| 1094 | + | |
1068 | 1095 | | |
1069 | 1096 | | |
1070 | 1097 | | |
| |||
1270 | 1297 | | |
1271 | 1298 | | |
1272 | 1299 | | |
| 1300 | + | |
| 1301 | + | |
1273 | 1302 | | |
1274 | 1303 | | |
1275 | 1304 | | |
| |||
0 commit comments