aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/common.c
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2007-02-12 03:52:34 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:30 -0500
commit2869b23e4b95cbafffcd2fe110d77aff8c218405 (patch)
tree150d1be0ec223f8ab5309f5fdcb487b209441342 /drivers/isdn/gigaset/common.c
parente13df2c58f8e8c72278b61e8f59de9a1403f9426 (diff)
[PATCH] drivers/isdn/gigaset: new M101 driver (v2)
This patch adds the line discipline based driver for the Gigaset M101 wireless RS232 adapter. It also improves the documentation a bit. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: Hansjoerg Lipp <hjlipp@web.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/gigaset/common.c')
-rw-r--r--drivers/isdn/gigaset/common.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c
index 9d4ae04eb33f..b460a73a7c85 100644
--- a/drivers/isdn/gigaset/common.c
+++ b/drivers/isdn/gigaset/common.c
@@ -906,20 +906,7 @@ void gigaset_shutdown(struct cardstate *cs)
906 gig_dbg(DEBUG_CMD, "scheduling SHUTDOWN"); 906 gig_dbg(DEBUG_CMD, "scheduling SHUTDOWN");
907 gigaset_schedule_event(cs); 907 gigaset_schedule_event(cs);
908 908
909 if (wait_event_interruptible(cs->waitqueue, !cs->waiting)) { 909 wait_event(cs->waitqueue, !cs->waiting);
910 warn("%s: aborted", __func__);
911 //FIXME
912 }
913
914 if (atomic_read(&cs->mstate) != MS_LOCKED) {
915 //FIXME?
916 //gigaset_baud_rate(cs, B115200);
917 //gigaset_set_line_ctrl(cs, CS8);
918 //gigaset_set_modem_ctrl(cs, TIOCM_DTR|TIOCM_RTS, 0);
919 //cs->control_state = 0;
920 } else {
921 //FIXME use some saved values?
922 }
923 910
924 cleanup_cs(cs); 911 cleanup_cs(cs);
925 912
@@ -942,10 +929,7 @@ void gigaset_stop(struct cardstate *cs)
942 gig_dbg(DEBUG_CMD, "scheduling STOP"); 929 gig_dbg(DEBUG_CMD, "scheduling STOP");
943 gigaset_schedule_event(cs); 930 gigaset_schedule_event(cs);
944 931
945 if (wait_event_interruptible(cs->waitqueue, !cs->waiting)) { 932 wait_event(cs->waitqueue, !cs->waiting);
946 warn("%s: aborted", __func__);
947 //FIXME
948 }
949 933
950 cleanup_cs(cs); 934 cleanup_cs(cs);
951 935