All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HID: bump maximum global item tag report size to 96 bytes
@ 2011-11-07 19:08 Chase Douglas
  2011-11-29  9:17 ` Henrik Rydberg
  0 siblings, 1 reply; 3+ messages in thread
From: Chase Douglas @ 2011-11-07 19:08 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input

This allows the latest N-Trig devices to function properly.

BugLink: https://bugs.launchpad.net/bugs/724831

Cc: stable@vger.kernel.org
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
---
I have no clue if this is according to spec or not. I only know that this
change makes two users' N-Trig devices work properly in the above bug.

 drivers/hid/hid-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 848a56c..6113996 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -362,7 +362,7 @@ static int hid_parser_global(struct hid_parser *parser, struct hid_item *item)
 
 	case HID_GLOBAL_ITEM_TAG_REPORT_SIZE:
 		parser->global.report_size = item_udata(item);
-		if (parser->global.report_size > 32) {
+		if (parser->global.report_size > 96) {
 			dbg_hid("invalid report_size %d\n",
 					parser->global.report_size);
 			return -1;
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] HID: bump maximum global item tag report size to 96 bytes
  2011-11-07 19:08 [PATCH] HID: bump maximum global item tag report size to 96 bytes Chase Douglas
@ 2011-11-29  9:17 ` Henrik Rydberg
  2011-11-29 15:27   ` Chase Douglas
  0 siblings, 1 reply; 3+ messages in thread
From: Henrik Rydberg @ 2011-11-29  9:17 UTC (permalink / raw)
  To: Chase Douglas; +Cc: Jiri Kosina, linux-input

On Mon, Nov 07, 2011 at 11:08:05AM -0800, Chase Douglas wrote:
> This allows the latest N-Trig devices to function properly.
> 
> BugLink: https://bugs.launchpad.net/bugs/724831
> 
> Cc: stable@vger.kernel.org
> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
> ---
> I have no clue if this is according to spec or not. I only know that this
> change makes two users' N-Trig devices work properly in the above bug.
> 
>  drivers/hid/hid-core.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
> index 848a56c..6113996 100644
> --- a/drivers/hid/hid-core.c
> +++ b/drivers/hid/hid-core.c
> @@ -362,7 +362,7 @@ static int hid_parser_global(struct hid_parser *parser, struct hid_item *item)
>  
>  	case HID_GLOBAL_ITEM_TAG_REPORT_SIZE:
>  		parser->global.report_size = item_udata(item);
> -		if (parser->global.report_size > 32) {
> +		if (parser->global.report_size > 96) {
>  			dbg_hid("invalid report_size %d\n",
>  					parser->global.report_size);
>  			return -1;
> -- 
> 1.7.5.4

I remember writing this patch as a test, but I never checked the side
effects. Jiri, perhaps you can enlighten us all on this matter?

Thanks,
Henrik


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] HID: bump maximum global item tag report size to 96 bytes
  2011-11-29  9:17 ` Henrik Rydberg
@ 2011-11-29 15:27   ` Chase Douglas
  0 siblings, 0 replies; 3+ messages in thread
From: Chase Douglas @ 2011-11-29 15:27 UTC (permalink / raw)
  To: Henrik Rydberg; +Cc: Jiri Kosina, linux-input

On 11/29/2011 01:17 AM, Henrik Rydberg wrote:
> On Mon, Nov 07, 2011 at 11:08:05AM -0800, Chase Douglas wrote:
>> This allows the latest N-Trig devices to function properly.
>>
>> BugLink: https://bugs.launchpad.net/bugs/724831
>>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
>> ---
>> I have no clue if this is according to spec or not. I only know that this
>> change makes two users' N-Trig devices work properly in the above bug.
>>
>>  drivers/hid/hid-core.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
>> index 848a56c..6113996 100644
>> --- a/drivers/hid/hid-core.c
>> +++ b/drivers/hid/hid-core.c
>> @@ -362,7 +362,7 @@ static int hid_parser_global(struct hid_parser *parser, struct hid_item *item)
>>  
>>  	case HID_GLOBAL_ITEM_TAG_REPORT_SIZE:
>>  		parser->global.report_size = item_udata(item);
>> -		if (parser->global.report_size > 32) {
>> +		if (parser->global.report_size > 96) {
>>  			dbg_hid("invalid report_size %d\n",
>>  					parser->global.report_size);
>>  			return -1;
>> -- 
>> 1.7.5.4
> 
> I remember writing this patch as a test, but I never checked the side
> effects. Jiri, perhaps you can enlighten us all on this matter?

Jiri queued this for 3.4, but in the meantime it's queued for the next
Ubuntu 11.10 kernel update. I'll be sure to relay any issues we find
back here.

-- Chase

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-29 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-07 19:08 [PATCH] HID: bump maximum global item tag report size to 96 bytes Chase Douglas
2011-11-29  9:17 ` Henrik Rydberg
2011-11-29 15:27   ` Chase Douglas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.