# Re: \[PATCH 00/16\] HID: uhid: User-space HID I/O driver

- List: linux-input
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-input/2012/06/8919694/t

## Re: \[PATCH 00/16\] HID: uhid: User-space HID I/O driver

- From: Joao Paulo Rechi Vita \<hidden\>
- Date: 2012-06-14 22:05:18 
- Message: https://ratatoskr.run/linux-input/2012/06/8919694.md

```text
On Mon, Jun 11, 2012 at 11:40 PM, Joao Paulo Rechi Vita
[ref] wrote:
> On Mon, Jun 11, 2012 at 2:56 PM, David Herrmann
> [ref] wrote:
>> Hi Joao
>>
>> On Mon, Jun 11, 2012 at 4:46 PM, Joao Paulo Rechi Vita
>> [ref] wrote:
>>> On Sun, Jun 10, 2012 at 10:16 AM, David Herrmann
>>> [ref] wrote:
>>>> This adds a new low-level HID driver that allows user-space to implement the
>>>> transport-layer. This is needed by HOGP (HID over Gatt on Bluetooth Low Energy).
>>>> There is already an implementation of HOGP, see the
>>>> linux-bluetooth@vger.kernel.org mailing list for this.
>>>>
>>>> I've split this into multiple patches to make review easier. This patchset is
>>>> already working for several months for the HOGP developers but there may still
>>>> be some issues with it. Please review.
>>>>
>>>> The uhid_*() functions implement the basic module functionality. The
>>>> uhid_char_*() functions handle character-device related functionality. The
>>>> uhid_dev_*() functions handle the uhid-device object and the uhid_hid_*()
>>>> functions are HID-callbacks.
>>>>
>>>> I am open for any suggestions.
>>>>
>>>
>>> Hello David,
>>>
>>> I've noticed one regression from the patch you've sent without Feature
>>> Reports support to the one with Feature Reports support (which was the
>>> previous patch, before the split) with the events coming from the char
>>> device. The event_type values we're all coming out of its enum type
>>> range. Have you tested this lately, with this new patch? I'll apply
>>> and test it right now.
>>
>> I don't understand. What do you mean with "are all coming out of its
>> enum type range"? Are the type values incorrect and not the ones
>> defined in uhid.h?
>>
>
> Exactly, the "event_type" field if of type "enum uhid_event_type",
> which ranges from 0 to 10. The values coming from the char device are
> numbers with around 10-12 digits.
>

(sorry, I forgot to cc the list on the original response)

I've tested this new version split in several patches. Input reports
support works fine, but the event_type value is still broken. This is
a minor issue IMO, since it just affects output and feature reports
support, which is not completed implemented in the userspace side of
HoG yet. I don't see a problem in having the series integrated
upstream and we fix this problem later on.

-- 
João Paulo Rechi Vita
Openbossa Labs - INdT
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```

## Re: \[PATCH 00/16\] HID: uhid: User-space HID I/O driver

- From: David Herrmann \<hidden\>
- Date: 2012-06-16 12:44:32 
- Message: https://ratatoskr.run/linux-input/2012/06/8919700.md

```text
Hi Joao

On Fri, Jun 15, 2012 at 12:05 AM, Joao Paulo Rechi Vita
[ref] wrote:
> On Mon, Jun 11, 2012 at 11:40 PM, Joao Paulo Rechi Vita
> (sorry, I forgot to cc the list on the original response)
>
> I've tested this new version split in several patches. Input reports
> support works fine, but the event_type value is still broken. This is
> a minor issue IMO, since it just affects output and feature reports
> support, which is not completed implemented in the userspace side of
> HoG yet. I don't see a problem in having the series integrated
> upstream and we fix this problem later on.

I tested the full patchset again to be sure and it works fine here.
Can you describe your problem in more detail? You applied the full
patchset, right? And all the events work except the FEATURE request?
What isn't working exactly here? Do you never receive the feature
request? What does the "type" field say exactly? What do you expect it
to report? Please describe the whole test-case you run as I cannot
follow.

Regards
David

> --
> João Paulo Rechi Vita
> Openbossa Labs - INdT
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
