Commit 5b87686
tty: n_gsm: Modify gsmtty driver register method when config requester
As requester,because n_gsm has no uevent report for application,the
application can't know dlci connect or disconnect.
The application will control every dlcl dev by uevent,when application
receive gsmtty0 dev remove uevent,it will close mux function,and change to
normal mode.
Example:
Before modify:
gsmld receive DLC0 DISC,no event report to application
gsmld receive DLC1 SABM,no event report to application
gsmld receive DLC1 DISC,no event report to application
After modify:
Receive DLC0 DISC,report "/devices/virtual/tty/gsmtty0" remove uevent
Receive DLC1 SABM,report "/devices/virtual/tty/gsmtty1" add uevent
Receive DLC1 DISC,report "/devices/virtual/tty/gsmtty1" remove uevent
Signed-off-by: Zhenguo Zhao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent cbff2b3 commit 5b87686
1 file changed
+19
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1433 | 1433 | | |
1434 | 1434 | | |
1435 | 1435 | | |
| 1436 | + | |
| 1437 | + | |
1436 | 1438 | | |
1437 | 1439 | | |
1438 | 1440 | | |
| |||
1454 | 1456 | | |
1455 | 1457 | | |
1456 | 1458 | | |
| 1459 | + | |
| 1460 | + | |
1457 | 1461 | | |
1458 | 1462 | | |
1459 | 1463 | | |
| |||
2388 | 2392 | | |
2389 | 2393 | | |
2390 | 2394 | | |
2391 | | - | |
2392 | | - | |
2393 | | - | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
2394 | 2399 | | |
2395 | | - | |
| 2400 | + | |
2396 | 2401 | | |
2397 | | - | |
2398 | | - | |
2399 | | - | |
2400 | | - | |
2401 | | - | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
2402 | 2408 | | |
2403 | 2409 | | |
2404 | 2410 | | |
| |||
2420 | 2426 | | |
2421 | 2427 | | |
2422 | 2428 | | |
2423 | | - | |
2424 | | - | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
2425 | 2433 | | |
2426 | 2434 | | |
2427 | 2435 | | |
| |||
0 commit comments