Re: Autosuspend and unbound interfaces

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

 



On Mon, 3 May 2010, Rob Duncan wrote:

> My driver has (I think) all the routines and attributes that are
> needed to support runtime PM, but I'm not seeing my suspend routine
> being called.  I do have some unbound interfaces on the device; are
> they preventing my driver from being called when it is idle?

Do you remember to write "auto" to the power/control file?

> Also, and perhaps more relevantly, I have power/control and
> power/level, but no power/autosuspend in the sysfs tree for the
> device.  Is that expected?

It isn't.  In fact, I would go so far as to say it's nearly impossible
to have power/level without power/autosuspend.  Look at the code in
drivers/usb/core/sysfs.c and see what you think.  You may want to put
some debugging printk statements in add_power_attributes().

Alan Stern

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