Re: Autosuspend and unbound interfaces

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

 



On Tue, 4 May 2010, Rob Duncan wrote:

> 
> On May 4, 2010, at 6:49 AM, Alan Stern wrote:
> 
> > Do you remember to write "auto" to the power/control file?
> 
> I'm using usb_enable_autosuspend(), but explicitly writing "auto" doesn't seem to do anything.  When I read the file I see that its contents are "auto".
> 
> > 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().
> 
> Embarrassingly, it turns out that I have been looking at the wrong place in the sysfs tree.  I was looking at the interface level instead of the device level; I do see the the autosuspend file there.
> 
> But I still do not see my driver suspend entry point being called.

You will have to do some debugging to find out why your driver isn't 
getting suspended.  A good place to start is in 
drivers/usb/core/driver.c:autosuspend_check().

By the way, does the power/wakeup attribute file for your device 
contain "enabled"?

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