Re: [PATCH] fixed bug in usbsevseg using USB autosuspend incorrectly

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

 



Am Montag, 8. März 2010 15:10:28 schrieb Harrison Metzger:
> The problem was that the update_display_{visual,mode}() functions
> (which send a control msg to the actual device) checks to make sure
> mydev->shadow_power == 1, otherwise it returns immediately. The
> mydev->shadow_power variable is only set in the resume(),
> reset_resume(), and suspend() functions. So, when autosuspend is
> disabled, resume() is never called, which means mydev->shadow_power is
> still set to 0, and the update_display_{visual,mode}() functions
> simply return and do not send a msg to the device.

Wouldn't it be easier to initialize shadow_power as 1?
Is the display initially powered?

	Regards
		Oliver
--
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