|
From: Mats F. <ma...@us...> - 2001-05-18 09:14:51
|
The following files were modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
bcsp.c 1.4 1.5=20=20=20=20=20=20=20=20=20=20=20=20=20
bcsp_sequence.c 1.4 1.5=20=20=20=20=20=20=20=20=20=20=20=20=20
bluetooth.c 1.174 1.175=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added shutdown function for BCSP
The diff of the modified file(s):
--- bcsp.c 2001/05/17 15:37:03 1.4
+++ bcsp.c 2001/05/18 09:14:20 1.5
@@ -112,7 +112,7 @@
void
bcsp_init(void)
{
- printk(__FUNCTION__ ": Initializing BCSP\n");
+ BCSP_SYS(__FUNCTION__ ": Initializing BCSP\n");
sequence_init();
send_sync();
cli();
@@ -123,12 +123,19 @@
}
=20
void
+bcsp_shutdown(void)
+{
+ BCSP_SYS(__FUNCTION__": Shuting down BCSP\n");
+ sequence_shutdown();
+}
+
+void
bcsp_syncronized(void)
{
cli();
bcsp_sync =3D TRUE;
sti();
- printk(__FUNCTION__ ": BCSP initialized and syncronized\n");
+ BCSP_SYS(__FUNCTION__ ": BCSP initialized and syncronized\n");
wake_up_interruptible(&bcsp_sync_wq);
}
=20
--- bcsp_sequence.c 2001/05/18 07:05:03 1.4
+++ bcsp_sequence.c 2001/05/18 09:14:20 1.5
@@ -101,13 +101,20 @@
=20
/****************** FUNCTION DEFINITION SECTION **************************=
***/
=20
-void sequence_init(void)
+void
+sequence_init(void)
{
resend_data_task.routine =3D (void*)sequence_resend;
resend_data_task.data =3D NULL;
=20
send_ack_task.routine =3D (void*)send_ack;
send_ack_task.data =3D NULL;
+}
+
+void
+sequence_shutdown(void)
+{
+ release_resend_timer();
}
=20
s32
--- bluetooth.c 2001/05/15 14:44:50 1.174
+++ bluetooth.c 2001/05/18 09:14:20 1.175
@@ -2715,6 +2715,10 @@
btmem_shutdown();
bt_stack_initiated =3D 0;
=20
+#ifdef CONFIG_BLUETOOTH_USE_BCSP
+ bcsp_shutdown();
+#endif
+=09
if (tmp_bt_buf) {
free_page((unsigned long) tmp_bt_buf);
tmp_bt_buf =3D NULL;
|