* Re: [PATCH] hid/hid-sony: fix sony_set_operational_bt [not found] ` <1272578374-9250-1-git-send-email-ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org> @ 2010-04-29 23:23 ` Bastien Nocera [not found] ` <1272583410.2582.441.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Bastien Nocera @ 2010-04-29 23:23 UTC (permalink / raw) To: Antonio Ospite Cc: linux-input-u79uwXL29TY76Z2rM5mHXA, linux-bluetooth-u79uwXL29TY76Z2rM5mHXA On Thu, 2010-04-29 at 23:59 +0200, Antonio Ospite wrote: > Don't send the report type as part of the data, this prevents the > controller from going into the operational state at all. > > This is completely equivalent to what the code originally meant to accomplish: > as per in net/bluetooth/hidp/core.c::hidp_output_raw_report(), by using > HID_FEATURE_REPORT here, what will be actually sent is > (HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE) which is exactly 0x53. > > Signed-off-by: Antonio Ospite <ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org> My mistake there. I should have tested the patch at run-time, and not trusted my copy-paste skills :( Signed-off-by: Bastien Nocera <hadess-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <1272583410.2582.441.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: [PATCH] hid/hid-sony: fix sony_set_operational_bt [not found] ` <1272583410.2582.441.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2010-05-03 15:19 ` Jiri Kosina 0 siblings, 0 replies; 3+ messages in thread From: Jiri Kosina @ 2010-05-03 15:19 UTC (permalink / raw) To: Bastien Nocera Cc: Antonio Ospite, linux-input-u79uwXL29TY76Z2rM5mHXA, linux-bluetooth-u79uwXL29TY76Z2rM5mHXA On Fri, 30 Apr 2010, Bastien Nocera wrote: > > Don't send the report type as part of the data, this prevents the > > controller from going into the operational state at all. > > > > This is completely equivalent to what the code originally meant to accomplish: > > as per in net/bluetooth/hidp/core.c::hidp_output_raw_report(), by using > > HID_FEATURE_REPORT here, what will be actually sent is > > (HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE) which is exactly 0x53. > > > > Signed-off-by: Antonio Ospite <ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org> > Signed-off-by: Bastien Nocera <hadess-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org> Applied, thanks. -- Jiri Kosina SUSE Labs, Novell Inc. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] hid/hid-sony: fix sony_set_operational_bt @ 2010-04-30 19:53 Antonio Ospite 0 siblings, 0 replies; 3+ messages in thread From: Antonio Ospite @ 2010-04-30 19:53 UTC (permalink / raw) To: linux-input; +Cc: Antonio Ospite, cbe-oss-dev, linux-bluetooth, hadess Don't send the report type as part of the data, this prevents the controller from going into the operational state at all. This is completely equivalent to what the code originally meant to accomplish: as per in net/bluetooth/hidp/core.c::hidp_output_raw_report(), by using HID_FEATURE_REPORT here, what will be actually sent is (HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE) which is exactly 0x53. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> --- As this change makes sony_set_operational_bt work while it was non working before, it might be good to have it in 2.6.34. Thanks, Antonio Ospite http://ao2.it drivers/hid/hid-sony.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 7502a4b..402d557 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -76,7 +76,7 @@ static int sony_set_operational_usb(struct hid_device *hdev) static int sony_set_operational_bt(struct hid_device *hdev) { - unsigned char buf[] = { 0x53, 0xf4, 0x42, 0x03, 0x00, 0x00 }; + unsigned char buf[] = { 0xf4, 0x42, 0x03, 0x00, 0x00 }; return hdev->hid_output_raw_report(hdev, buf, sizeof(buf), HID_FEATURE_REPORT); } -- 1.7.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-03 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1272578374-9250-1-git-send-email-ospite@studenti.unina.it>
[not found] ` <1272578374-9250-1-git-send-email-ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>
2010-04-29 23:23 ` [PATCH] hid/hid-sony: fix sony_set_operational_bt Bastien Nocera
[not found] ` <1272583410.2582.441.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-05-03 15:19 ` Jiri Kosina
2010-04-30 19:53 Antonio Ospite
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).