Commit e2e4025
tty: n_gsm: wait until channel 0 is ready
Currently code does not wait for channel 0 open sequence to complete before
pushing data to the other channels. Also, if userland opens tty, it will
receive EL2NSYNC. Both issues result in hard to predict initialization
sequence and possible userland failures.
Fix that by waiting channel 0 open sequence to complete before attempting
opening of the other channels. Also, if tty open() is attempted while
channel 0 is opening, wait until sequence is complete before returning to
userland.
Signed-off-by: Ivaylo Dimitrov <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent d78a899 commit e2e4025
1 file changed
+23
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2244 | 2244 | | |
2245 | 2245 | | |
2246 | 2246 | | |
2247 | | - | |
2248 | | - | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
2249 | 2253 | | |
2250 | 2254 | | |
2251 | 2255 | | |
2252 | | - | |
2253 | | - | |
| 2256 | + | |
2254 | 2257 | | |
2255 | 2258 | | |
2256 | 2259 | | |
| |||
2308 | 2311 | | |
2309 | 2312 | | |
2310 | 2313 | | |
2311 | | - | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
2312 | 2317 | | |
2313 | 2318 | | |
2314 | 2319 | | |
| |||
4251 | 4256 | | |
4252 | 4257 | | |
4253 | 4258 | | |
4254 | | - | |
| 4259 | + | |
4255 | 4260 | | |
4256 | 4261 | | |
4257 | 4262 | | |
| |||
4274 | 4279 | | |
4275 | 4280 | | |
4276 | 4281 | | |
4277 | | - | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
4278 | 4285 | | |
4279 | | - | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
4280 | 4294 | | |
| 4295 | + | |
4281 | 4296 | | |
4282 | 4297 | | |
4283 | 4298 | | |
| |||
0 commit comments