On Thu, 2 Aug 2012, Lan Tianyu wrote: > > How about if we start with only the first policy rule: Ports that can > > never have anything plugged in should be shut down automatically. > So we should add a variable for each port to record whether the port > has been ever attached with devices. When set sys file set to "auto" > these port should power off directly, right? That's not what I meant. There's no reason to keep track of whether the port has ever been attached to a device. The only ports we should power down (at least for now) are ports where it's _impossible_ to attach a device. 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