66b353cd9537fc031b387c03040d3b92dcc6 parent 6986a978eec70c867717fe6bee736f0bd1db1508 author Alan Stern 1209584239 -0400 committer Greg Kroah-Hartman 1210784426 -0700 USB: create attributes before sending uevent This patch (as1087d) fixes a long-standing problem in usbcore: Device, interface, and endpoint attributes aren't added until _after_ the creation uevent has already been broadcast. Unfortunately there are a few attributes which cannot be created that early. The "descriptors" attribute is binary and so must be created separately. The power-management attributes can't be created until the dev/power/ group exists. And the interface string can vary from one altsetting to another, so it has to be created dynamically. Signed-off-by: Alan Stern Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman  ÑA›œ!x