All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG is passed.
  2009-06-20  6:19 [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG is passed Vikram Kandukuri
@ 2009-06-19  9:36 ` Marcel Holtmann
  2009-06-25  7:26   ` Jothikumar Mothilal
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2009-06-19  9:36 UTC (permalink / raw)
  To: Vikram Kandukuri; +Cc: linux-bluetooth

Hi Vikram,

> Whenever the remote device sends VIRTUAL CABLE UNPLUG, the device should
> be disconnected.
> 
> Signed-off-by: Jothikumar Mothilal <jothikumar.mothilal@atheros.com>
> ---
>  net/bluetooth/hidp/core.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
> index b186768..a9f7afb 100644
> --- a/net/bluetooth/hidp/core.c
> +++ b/net/bluetooth/hidp/core.c
> @@ -374,6 +374,7 @@ static void hidp_process_hid_control(struct hidp_session *session,
>  
>  		/* Kill session thread */
>  		atomic_inc(&session->terminate);
> +		hidp_schedule(session);
>  	}
>  }

the patch is correct, but the commit message could be a little bit more
verbose. It should explain why this fixes it.

Regards

Marcel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG is passed.
@ 2009-06-20  6:19 Vikram Kandukuri
  2009-06-19  9:36 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Vikram Kandukuri @ 2009-06-20  6:19 UTC (permalink / raw)
  To: marcel; +Cc: linux-bluetooth

Whenever the remote device sends VIRTUAL CABLE UNPLUG, the device should
be disconnected.

Signed-off-by: Jothikumar Mothilal <jothikumar.mothilal@atheros.com>
---
 net/bluetooth/hidp/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index b186768..a9f7afb 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -374,6 +374,7 @@ static void hidp_process_hid_control(struct hidp_session *session,
 
 		/* Kill session thread */
 		atomic_inc(&session->terminate);
+		hidp_schedule(session);
 	}
 }
 
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG is passed.
  2009-06-19  9:36 ` Marcel Holtmann
@ 2009-06-25  7:26   ` Jothikumar Mothilal
  0 siblings, 0 replies; 3+ messages in thread
From: Jothikumar Mothilal @ 2009-06-25  7:26 UTC (permalink / raw)
  To: Marcel Holtmann, Vikram Kandukuri; +Cc: linux-bluetooth



-----Original Message-----
From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-owner@v=
ger.kernel.org] On Behalf Of Marcel Holtmann
Sent: Friday, June 19, 2009 3:06 PM
To: Vikram Kandukuri
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG =
is passed.

Hi Vikram,

> Whenever the remote device sends VIRTUAL CABLE UNPLUG, the device should
> be disconnected.
>
> Signed-off-by: Jothikumar Mothilal <jothikumar.mothilal@atheros.com>
> ---
>  net/bluetooth/hidp/core.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
> index b186768..a9f7afb 100644
> --- a/net/bluetooth/hidp/core.c
> +++ b/net/bluetooth/hidp/core.c
> @@ -374,6 +374,7 @@ static void hidp_process_hid_control(struct hidp_sess=
ion *session,
>
>               /* Kill session thread */
>               atomic_inc(&session->terminate);
> +             hidp_schedule(session);
>       }
>  }

the patch is correct, but the commit message could be a little bit more
verbose. It should explain why this fixes it.

Regards

Marcel


Hi Marcel,
We were facing this issue while running HID BQB test cases.

There is a test case in PTS tool; PTS will send the VIRTUAL_CABLE_UNPLUG co=
mmand to IUT. IUT should disconnect the channel and kill the session when i=
t receives VIRTUAL_CABLE_UNPLUG command.
VIRTUAL_CABLE_UNPLUG is parsed by hidp.ko but it is not scheduled to do so =
(There is no schedule code). So I have added hidp_schedule to kill the sess=
ion.

I feel following description gives more information.

Bluetooth: Scheduled to kill the session whenever VIRTUAL_CABLE_UNPLUG is r=
eceived by IUT.

Thanks,
Jothi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-25  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-20  6:19 [PATCH] Bluetooth: Kill session whenever VIRTUAL_CABLE_UNPLUG is passed Vikram Kandukuri
2009-06-19  9:36 ` Marcel Holtmann
2009-06-25  7:26   ` Jothikumar Mothilal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.