Re: lsusb misreports SuperSpeed MaxPower

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

 



> Patches are always gladly accepted.
> 
> thanks,
> 
> greg k-h

I am not competent to fix this.  Above function dump_device has
struct libusb_device_descriptor *descriptor, while dump_config has
struct libusb_config_descriptor *config.  Maybe if dump_config could 
access descriptor->bcdUSB, then lsusb.c line 418 could be changed to:
	printf("    MaxPower            %5umA\n",
	       config->MaxPower * (descriptor->bcdUSB >= 0x0300 ? 8 : 2));

My intention was to point-out this flaw.  I hope someone else will like 
to write the solution.  Thank you, Greg, for your work, and thank you to 
whomever patches this minor flaw.
matson
--
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