[libhid-discuss] libhid broken in 2.6.26 kernel works in 2.6.25.15
amruth
amruth_pv at yahoo.com
Wed Aug 20 00:51:31 UTC 2008
Thanks Charles for the info.
Any idea about broken pipe error.
I see hid working perfectly until 2.6.25.15 but broken in 2.6.26
I have also observed some of my applications is broken in 2.6.26 kernel.
I know that until 2.6.25.15 everything works but broken afterwards.
Is this API changed anyway in 2.26.2 or the bytes reading is changed
This call is being done in hid_preparation.c
byte const BUFLEN = 9;
#define USB_TIMEOUT 10000
#define USB_ENDPOINT_IN 0x80
int len = usb_control_msg(hidif->dev_handle,
USB_ENDPOINT_IN+1,
USB_REQ_GET_DESCRIPTOR,
(USB_DT_HID << 8) + 0, hidif->interface,
(char*)buffer, BUFLEN,
USB_TIMEOUT);
I get broken pipe error when I tried to get descriptors.
hid_force_open failed
TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB
device 001/002[0]...
USB error: error sending control message: Broken pipe
Can anybody please let me know what has changed in 2.6.26 kernel.
Thanks
Amruth p.v
--- On Tue, 8/19/08, Charles Lepple <clepple at ghz.cc> wrote:
> From: Charles Lepple <clepple at ghz.cc>
> Subject: Re: [libhid-discuss] libhid broken in 2.6.26 kernel works in 2.6.25.15
> To: amruth_pv at yahoo.com
> Cc: "libhid-discuss List" <libhid-discuss at lists.alioth.debian.org>
> Date: Tuesday, August 19, 2008, 7:08 PM
> On Aug 19, 2008, at 7:23 PM, amruth wrote:
>
> > I am trying to use libhid for my device. I found out
> that libhid is
> > not compatible to latest libusb-1.0.
> > I tried to compile and build using the latest libusb
> library, but I
> > seeing lot of errors during building.
>
>
> libhid is only known to work with libusb-0.1 at this time.
>
> --
> Charles Lepple
More information about the libhid-discuss
mailing list