# Re: \[RFC 0/1\] User-space I/O driver for HID subsystem (Bluetooth-LE HIDP)

- List: linux-bluetooth
- 3 messages, 3 authors
- Page: https://ratatoskr.run/linux-bluetooth/2012/03/8919085/t

## Re: \[RFC 0/1\] User-space I/O driver for HID subsystem (Bluetooth-LE HIDP)

- From: Joao Paulo Rechi Vita \<hidden\>
- Date: 2012-03-16 17:50:16 
- Message: https://ratatoskr.run/linux-bluetooth/2012/03/8919085.md

```text
Hello David,

On Fri, Mar 16, 2012 at 11:53 AM, David Herrmann
[ref] wrote:
> Hi
>
> I have hacked together a small driver which allows user-space I/O drivers to
> provide HID devices. This is needed for Bluetooth-Low-Energy HID devices as the
> Bluetooth-LE protocol is parsed in user-space.
>
> I have only compile-tested this driver, I haven't run it yet. It's just an
> proposal how this could be implemented. It should also work as hint to the BT-LE
> developers how such an interface will look-like.
>

First of all, thanks for your effort. I haven't looked at the code
yet, but thinking again about the problem and since it's very similar
to uinput, would adding another ioctl to uinput that receives the HID
descriptor and put uinput in a "HID mode" be sufficient? This way we
could increase code reuse and ease maintainance, I guess. What do you
think?


-- 
João Paulo Rechi Vita
Openbossa Labs - INdT
```

## Re: \[RFC 0/1\] User-space I/O driver for HID subsystem (Bluetooth-LE HIDP)

- From: Marcel Holtmann \<marcel@holtmann.org\>
- Date: 2012-03-16 17:58:14 
- Message: https://ratatoskr.run/linux-bluetooth/2012/03/8919086.md

```text
Hi Joao,

> > I have hacked together a small driver which allows user-space I/O drivers to
> > provide HID devices. This is needed for Bluetooth-Low-Energy HID devices as the
> > Bluetooth-LE protocol is parsed in user-space.
> >
> > I have only compile-tested this driver, I haven't run it yet. It's just an
> > proposal how this could be implemented. It should also work as hint to the BT-LE
> > developers how such an interface will look-like.
> >
> 
> First of all, thanks for your effort. I haven't looked at the code
> yet, but thinking again about the problem and since it's very similar
> to uinput, would adding another ioctl to uinput that receives the HID
> descriptor and put uinput in a "HID mode" be sufficient? This way we
> could increase code reuse and ease maintainance, I guess. What do you
> think?

I am really against this. Input subsystem and HID subsystem are two
different things. Don't try to combine them.

You would also mess up the layering here. HID uses input, but input does
not require HID.

Regards

Marcel


```

## Re: \[RFC 0/1\] User-space I/O driver for HID subsystem (Bluetooth-LE HIDP)

- From: Dmitry Torokhov \<hidden\>
- Date: 2012-03-16 18:09:07 
- Message: https://ratatoskr.run/linux-bluetooth/2012/03/8919087.md

```text
On Friday, March 16, 2012 10:57:38 AM Marcel Holtmann wrote:
> Hi Joao,
> 
> > > I have hacked together a small driver which allows user-space I/O
> > > drivers to provide HID devices. This is needed for
> > > Bluetooth-Low-Energy HID devices as the Bluetooth-LE protocol is
> > > parsed in user-space.
> > > 
> > > I have only compile-tested this driver, I haven't run it yet. It's
> > > just an proposal how this could be implemented. It should also work
> > > as hint to the BT-LE developers how such an interface will
> > > look-like.
> > 
> > First of all, thanks for your effort. I haven't looked at the code
> > yet, but thinking again about the problem and since it's very similar
> > to uinput, would adding another ioctl to uinput that receives the HID
> > descriptor and put uinput in a "HID mode" be sufficient? This way we
> > could increase code reuse and ease maintainance, I guess. What do you
> > think?
> 
> I am really against this. Input subsystem and HID subsystem are two
> different things. Don't try to combine them.
> 
> You would also mess up the layering here. HID uses input, but input does
> not require HID.
> 

Completely agree with Marcel here.

Thanks.

-- 
Dmitry
```
