Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753676Ab0A3OLU (ORCPT ); Sat, 30 Jan 2010 09:11:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753630Ab0A3OLU (ORCPT ); Sat, 30 Jan 2010 09:11:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31027 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753617Ab0A3OLT (ORCPT ); Sat, 30 Jan 2010 09:11:19 -0500 Subject: Re: [PATCH 0/3] HID: make raw output callback more flexible From: Bastien Nocera To: Michael Poole Cc: Marcel Holtmann , Jiri Kosina , "Gunn, Brian" , Ping , linux-kernel@vger.kernel.org, BlueZ development In-Reply-To: <87iqakifm8.fsf@troilus.org> References: <1264783166.29532.5302.camel@localhost.localdomain> <87iqakifm8.fsf@troilus.org> Content-Type: text/plain; charset="ISO-8859-1" Date: Sat, 30 Jan 2010 14:11:03 +0000 Message-ID: <1264860663.29532.7887.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1108 Lines: 25 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? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/