On Sun, 6 Jan 2013, Lan Tianyu wrote: > This patch is to expose usb port's pm qos flags(pm_qos_no_power_off, > pm_qos_remote_wakeup) to user space. User can set pm_qos_no_power_off > flag to prohibit the port from being power off. > @@ -165,8 +166,12 @@ int usb_hub_create_port_device(struct usb_hub *hub, int port1) > if (retval) > goto error_register; > > - pm_runtime_set_active(&port_dev->dev); > - pm_runtime_enable(&port_dev->dev); > + if (!dev_pm_qos_expose_flags(&port_dev->dev, > + PM_QOS_FLAG_NO_POWER_OFF)) { > + pm_runtime_set_active(&port_dev->dev); > + pm_runtime_enable(&port_dev->dev); > + } I don't understand this. Why does this code need to be conditional? 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