Commit ffcdc18d authored by Vikram Pandita's avatar Vikram Pandita Committed by Greg Kroah-Hartman
Browse files

USB Core: hub.c: prevent re-enumeration on HNP

Patch is to prevent the OTG host of doing 3 times enumeration of
device when the Host suspends for HNP.  The error code used in
this case is ENOTSUPP.
Signed-off-by: default avatarVikram Pandita <>
Acked-by: default avatarAlan Stern <>
Acked-by: default avatarDavid Brownell <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent b29dbbd8
......@@ -1443,7 +1443,7 @@ int usb_new_device(struct usb_device *udev)
if (err < 0)
dev_dbg(&udev->dev, "HNP fail, %d\n", err);
err = -ENODEV;
err = -ENOTSUPP;
goto fail;
......@@ -2582,7 +2582,7 @@ loop:
if (status == -ENOTCONN)
if ((status == -ENOTCONN) || (status == -ENOTSUPP))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment