On Tue, 6 Nov 2007, Daniel Drake wrote: > Oliver Neukum wrote: > > Am Dienstag 06 November 2007 schrieb Daniel Drake: > >> Oliver Neukum wrote: > >>> Is bcdDevice present without CONFIG_SUSPEND? Which attributes are > >>> present? > > > > Looks like a failure in drivers/usb/core/sysfs.c::usb_create_sysfs_dev_files() > > Can you put printks there to show where it fails? > > Done. It fails here: > > retval = add_power_attributes(dev); > if (retval) > goto error; > > add_power_attributes returns -2. > > Digging further, inside add_power_attributes(), the first call to > sysfs_add_file_to_group() returns -2. The second one is therefore not > attempted. Ah, okay. This is a known problem, a configuration-related issue. The PM core doesn't create a device's /sys/.../power subdirectory unless CONFIG_PM_SLEEP is set. In fact it should be created whenever CONFIG_PM is set. I haven't had time to write a patch for this yet. Do you want to try? Alan Stern _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm