Re: [PATCH v3] HID: core: move Usage Page concatenation to Main item

2019-03-27 Thread Nicolas Saenz Julienne
Hi Oliver, thanks for the review! On Wed, 2019-03-27 at 10:35 +0100, Oliver Neukum wrote: > On Di, 2019-03-26 at 21:03 +0100, Nicolas Saenz Julienne wrote: > > --- a/drivers/hid/hid-core.c > > +++ b/drivers/hid/hid-core.c > > @@ -218,13 +218,14 @@ static unsigned hid_lookup_collection(struct > >

Re: [PATCH v3] HID: core: move Usage Page concatenation to Main item

2019-03-27 Thread Nicolas Saenz Julienne
Hi Terry, thanks for the review! On Tue, 2019-03-26 at 22:43 +, Junge, Terry wrote: > Hi Nicolas, > > This patch looks good except for one comment/question below. > > Thanks, > Terry > > On Tuesday, March 26, 2019 1:04 PM Nicolas Saenz Julienne < > nsaenzjulie...@suse.de> wrote: > > As

Re: [PATCH v3] HID: core: move Usage Page concatenation to Main item

2019-03-27 Thread Oliver Neukum
On Di, 2019-03-26 at 21:03 +0100, Nicolas Saenz Julienne wrote: > --- a/drivers/hid/hid-core.c > +++ b/drivers/hid/hid-core.c > @@ -218,13 +218,14 @@ static unsigned hid_lookup_collection(struct hid_parser > *parser, unsigned type) > * Add a usage to the temporary parser table. > */ > >

RE: [PATCH v3] HID: core: move Usage Page concatenation to Main item

2019-03-26 Thread Junge, Terry
Hi Nicolas, This patch looks good except for one comment/question below. Thanks, Terry On Tuesday, March 26, 2019 1:04 PM Nicolas Saenz Julienne wrote: > >As seen on some USB wireless keyboards manufactured by Primax, the HID >parser was using some assumptions that are not always true. In

[PATCH v3] HID: core: move Usage Page concatenation to Main item

2019-03-26 Thread Nicolas Saenz Julienne
As seen on some USB wireless keyboards manufactured by Primax, the HID parser was using some assumptions that are not always true. In this case it's s the fact that, inside the scope of a main item, an Usage Page will always precede an Usage. The spec is not pretty clear as 6.2.2.7 states "Any