usb: hub: Use correct reset for wedged USB3 devices that are NOTATTACHED

This patch adds a check for USB_STATE_NOTATTACHED to
the
hub_port_warm_reset_required() workaround for ports that end up
in
Compliance Mode in hub_events() when trying to decide which
reset
function to use. Trying to call usb_reset_device() with a
NOTATTACHED
device will just fail and leave the port
broken.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Acked-by:
Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman
<gregkh@linuxfoundation.org>

idea is taken here -
https://github.com/varunchitre15/thunderzap_xl/commit/5d2ddde3a88c531dc94e57b3b69b8ec5917d7527