public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Alan Ott <alan-yzvJWuRpmD1zbRFIqnYvSA@public•gmane.org>
To: Ville Tervo <ville.tervo-xNZwKgViW5gAvxtiuMwx3w@public•gmane.org>
Cc: Jiri Kosina <jkosina-AlSwsSmVLrQ@public•gmane.org>,
	Stefan Achatz
	<erazor_de-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public•gmane.org>,
	Antonio Ospite
	<ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public•gmane.org>,
	Alexey Dobriyan
	<adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public•gmane.org>,
	Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public•gmane.org>,
	Alan Stern
	<stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public•gmane.org>,
	Greg Kroah-Hartman <gregkh-l3A5Bk7waGM@public•gmane.org>,
	Marcel Holtmann <marcel-kz+m5ild9QBg9hUCZPvPmw@public•gmane.org>,
	Stephane Chatty <chatty-rXV5z7KbLFk@public•gmane.org>,
	Michael Poole <mdpoole-IZmAEv5cUt1AfugRpC6u6w@public•gmane.org>,
	"David S. Miller" <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public•gmane.org>,
	Bastien Nocera <hadess-0MeiytkfxGOsTnJN9+BGXg@public•gmane.org>,
	Eric Dumazet
	<eric.dumazet-Re5JQEeQqe8AvxtiuMwx3w@public•gmane.org>,
	"linux-input-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<linux-input-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>,
	"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>,
	"linux-usb-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<linux-usb-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>,
	"linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>,
	"netdev-u79uwXL29TY76Z2rM5mHXA@public•gmane.org"
	<netdev-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>
Subject: Re: [PATCH v4 0/2] Get and Set Feature Reports on HIDRAW (USB and   Bluetooth)
Date: Thu, 23 Sep 2010 19:40:02 -0400	[thread overview]
Message-ID: <4C9BE552.6080404@signal11.us> (raw)
In-Reply-To: <20100923162521.GA15641@null>

On 09/23/2010 12:25 PM, Ville Tervo wrote:
> Hi Alan,
>
> On Mon, Aug 16, 2010 at 10:20:57PM +0200, ext Alan Ott wrote:
>    
>> This is version 4. Built against 2.6.35+ revision 320b2b8de12698 .
>>      
>
> I gave a try to to this patch using your test tool [1] and very old BT
> keyboard. I don't have anything else ATM to test with. Is there some BT hid
> devices which support setting and getting features?
>    

A keyboard is the only BT device I've used which has feature reports.

> Shouldn't HIDIOCSFEATURE's bt version have similar wait as HIDIOCGFEATURE to
> get report status back from the device? or is there even any status coming back
> in successful case? Sorry I'm a newbie with HID and trying to understand how
> this should work.
>
> Now it just returns num of send bytes even if the remote device returned some
> error. Which one is the expected behavior?
>    

I made it function the same as the existing hidp_output_raw_report(). 
Nothing in net/bluetooth/hidp/core.c is acked at all. I'm not sure of 
the reasons.

Jiri, Marcel, any ideas?

> Other problem is that Get report is getting now handshake from set report.
>
>
>    

Yeah, that makes sense. I hadn't considered the set_report failing. In 
that case, I guess it means we _must_ wait for an ack for sent packets.

Anyone else agree or disagree?

Alan.


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public•gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-09-23 23:40 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1276467601-9066-1-git-send-email-alan@signal11.us>
2010-06-19 17:49 ` [PATCH 1/1] Bluetooth: hidp: Add support for hidraw HIDIOCGFEATURE and HIDIOCSFEATURE Jiri Kosina
2010-06-28 11:14 ` Antonio Ospite
     [not found]   ` <20100628131437.bde782b6.ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>
2010-06-29  7:12     ` David Miller
2010-06-29  8:50       ` Jiri Kosina
     [not found]         ` <alpine.LNX.2.00.1006291047560.13809-ztGlSCb7Y1iN3ZZ/Hiejyg@public.gmane.org>
2010-06-29  9:07           ` Johan Hedberg
     [not found]       ` <20100629.001216.91341775.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2010-06-29 12:40         ` Andrei Emeltchenko
2010-07-08 21:08           ` Marcel Holtmann
2010-07-08 21:11 ` Marcel Holtmann
     [not found]   ` <1278623485.10421.73.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-07-09  3:51     ` Alan Ott
2010-07-09  8:01       ` Marcel Holtmann
     [not found]         ` <1278662497.10421.94.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-07-09 13:02           ` Alan Ott
     [not found]             ` <4C371DE8.9020002-yzvJWuRpmD1zbRFIqnYvSA@public.gmane.org>
2010-07-09 13:06               ` Marcel Holtmann
     [not found]                 ` <1278680790.10421.106.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-07-09 14:06                   ` Alan Ott
     [not found]                     ` <4C372CEE.3070109-yzvJWuRpmD1zbRFIqnYvSA@public.gmane.org>
2010-07-09 17:33                       ` Marcel Holtmann
     [not found]                         ` <1278696815.10421.137.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-07-09 18:24                           ` Alan Ott
2010-07-22 14:14                         ` Jiri Kosina
2010-07-22 15:21                           ` Marcel Holtmann
2010-07-22 16:58                             ` Alan Ott
     [not found]                               ` <4C4878C2.9000903-yzvJWuRpmD1zbRFIqnYvSA@public.gmane.org>
2010-08-10 11:46                                 ` Jiri Kosina
     [not found]                                   ` <alpine.LNX.2.00.1008101344480.29919-ztGlSCb7Y1iN3ZZ/Hiejyg@public.gmane.org>
2010-08-10 12:12                                     ` Marcel Holtmann
2010-08-16 20:20                                       ` [PATCH v4 0/2] Get and Set Feature Reports on HIDRAW (USB and Bluetooth) Alan Ott
2010-08-16 20:20                                       ` [PATCH v4 1/2] HID: Add Support for Setting and Getting Feature Reports from hidraw Alan Ott
2010-09-28 13:30                                         ` Antonio Ospite
     [not found]                                           ` <20100928153011.32750e5d.ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public.gmane.org>
2010-10-01 13:30                                             ` Jiri Kosina
2010-08-16 20:20                                       ` [PATCH v4 2/2] Bluetooth: hidp: Add support for hidraw HIDIOCGFEATURE and HIDIOCSFEATURE Alan Ott
     [not found]                                       ` <1281990059-3562-1-git-send-email-alan@signal11.us>
2010-08-23 13:00                                         ` [PATCH v4 0/2] Get and Set Feature Reports on HIDRAW (USB and Bluetooth) Jiri Kosina
2010-09-02 15:25                                           ` Jiri Kosina
2010-09-22 12:09                                             ` Jiri Kosina
2010-11-01 19:23                                               ` Jiri Kosina
     [not found]                                                 ` <alpine.LNX.2.00.1011011523150.15851-ztGlSCb7Y1iN3ZZ/Hiejyg@public.gmane.org>
2010-11-08 11:17                                                   ` Antonio Ospite
     [not found]                                         ` <1281990059-3562-1-git-send-email-alan-yzvJWuRpmD1zbRFIqnYvSA@public.gmane.org>
2010-09-23 16:25                                           ` Ville Tervo
2010-09-23 17:07                                             ` Ping Cheng
     [not found]                                               ` <AANLkTinJXYbZh_MvG81iJMu84LKBOKL3s-Gbfe77Vq7q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-23 20:16                                                 ` Przemo Firszt
2010-09-23 23:40                                             ` Alan Ott [this message]
     [not found]                                       ` <1281990059-3562-3-git-send-email-alan@signal11.us>
     [not found]                                         ` <1281990059-3562-3-git-send-email-alan-yzvJWuRpmD1zbRFIqnYvSA@public.gmane.org>
2010-09-23 11:51                                           ` [PATCH v4 2/2] Bluetooth: hidp: Add support for hidraw HIDIOCGFEATURE and HIDIOCSFEATURE Ville Tervo
2010-09-23 14:16                                             ` Alan Ott
2010-09-24 10:47                                               ` Antonio Ospite

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9BE552.6080404@signal11.us \
    --to=alan-yzvjwurpmd1zbrfiqnyvsa@public$(echo .)gmane.org \
    --cc=adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public$(echo .)gmane.org \
    --cc=chatty-rXV5z7KbLFk@public$(echo .)gmane.org \
    --cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public$(echo .)gmane.org \
    --cc=erazor_de-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public$(echo .)gmane.org \
    --cc=eric.dumazet-Re5JQEeQqe8AvxtiuMwx3w@public$(echo .)gmane.org \
    --cc=gregkh-l3A5Bk7waGM@public$(echo .)gmane.org \
    --cc=hadess-0MeiytkfxGOsTnJN9+BGXg@public$(echo .)gmane.org \
    --cc=jkosina-AlSwsSmVLrQ@public$(echo .)gmane.org \
    --cc=linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    --cc=marcel-kz+m5ild9QBg9hUCZPvPmw@public$(echo .)gmane.org \
    --cc=mdpoole-IZmAEv5cUt1AfugRpC6u6w@public$(echo .)gmane.org \
    --cc=netdev-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
    --cc=ospite-aNJ+ML1ZbiP93QAQaVx+gl6hYfS7NtTn@public$(echo .)gmane.org \
    --cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public$(echo .)gmane.org \
    --cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public$(echo .)gmane.org \
    --cc=ville.tervo-xNZwKgViW5gAvxtiuMwx3w@public$(echo .)gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox