Re: Does larger than 32 bits report size is supported at HID?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Chen Peter-B29397,

> > On Thu, Mar 10, 2011 at 01:34:38AM +0000, Chen Peter-B29397 wrote:
> > > Hi all,
> > > 
> > > I am sorry I can't find linux-hid and linux-input ML, so I try to get a
> > 
> > help here.
> > 
> > > I have a device which follows usb-hid protocol (can be communicated by
> > 
> > WindowsXP),
> > 
> > > but it can't communicate with my linux box. The error is at below code
> > 
> > of function hid_parser_global:
> > > case HID_GLOBAL_ITEM_TAG_REPORT_SIZE:
> > > 	parser->global.report_size = item_udata(item);
> > > 	if (parser->global.report_size > 32) {
> > > 	
> > > 		dbg_hid("invalid report_size %d\n",
> > > 		
> > >       		parser->global.report_size);
> > > 		
> > > 		return -1;
> > > 	
> > > 	}
> > > 	return 0;
> > > 
> > > So my question is that does larger than 32 bits report size is
> > 
> > supported at linux HID stack?
> > 
> > > Or it is supported but I need to have a hid driver for my device?
> > 
> > Is this a "real" hid device or does it just use the "we can write a
> > driver in userspace on XP if we fake out a HID device" functionality?
> > You can find out if you are forced to load a driver for the device on
> > Windows or not.
> 
> It is one of freescale SoC's ROM

Which one? The MX28 p-o-s? Skimming through it's sources, I already used two 
puking bags, more to be filled tho.

> , it can communicate with host using HID
> protocol. After adding raw hid device support and one hid driver for fsl
> SoC's rom, it can work using hidraw interface.
> 
> Thank you!
> 
> > What type of device is this?

MX28 bootrom does this. I barely have words for the flubs I unveiled so far in 
it.

Greg, do you please have any solution for this problem? Basically, the probe of 
hid fails on the fact that the HID_GLOBAL_ITEM_TAG_REPORT_SIZE is 128, while 
right now it's capped at 96.

Shall I submit a patch that increases it to 128 maybe? Please advise. Thanks!

[...]

Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux