lkml.org 
[lkml]   [2010]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 0/3] HID: make raw output callback more flexible
FromBastien Nocera <>
DateSat, 30 Jan 2010 14:11:03 +0000
On Fri, 2010-01-29 at 19:46 -0500, Michael Poole wrote:
> > [1]: Comments on the patch at
> > http://thread.gmane.org/gmane.linux.bluez.kernel/4279 would be
> > appreciated
>
> This patch does not work for me. Before, the first time after each
> boot
> that I tried to connect to an Apple Magic Mouse, it failed with -14
> (EFAULT). With this patch, it fails with -22 (EINVAL) instead. The
> -EFAULT *was* due to hidp_parse()'s copy_from_user(). I have not
> looked
> yet to see where the -EINVAL is coming from -- would that help? (Both
> with and without your patch, the second attempt to connect works.)

I don't get -EFAULT anymore (it was failing to copy the rd_data from
user-space), but I do get -EINVALs now. I haven't investigated it
though. My guess is that the hid parser fails.

Could you compare the sizes of the data gathered in user-space?



\
 
 \ /
  Last update: 2010-01-30 15:13    [from the cache]
©2003-2010