Commit d772983d authored by Rupesh Gujare's avatar Rupesh Gujare Committed by Greg Kroah-Hartman

staging: ozwpan: Reset port configuration number.

Make sure that we reset port configuration no. when PD departs.
Signed-off-by: default avatarRupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dbd37ee5
...@@ -715,6 +715,7 @@ void oz_hcd_pd_departed(void *hport) ...@@ -715,6 +715,7 @@ void oz_hcd_pd_departed(void *hport)
hpd = port->hpd; hpd = port->hpd;
port->hpd = NULL; port->hpd = NULL;
port->bus_addr = 0xff; port->bus_addr = 0xff;
port->config_num = 0;
port->flags &= ~(OZ_PORT_F_PRESENT | OZ_PORT_F_DYING); port->flags &= ~(OZ_PORT_F_PRESENT | OZ_PORT_F_DYING);
port->flags |= OZ_PORT_F_CHANGED; port->flags |= OZ_PORT_F_CHANGED;
port->status &= ~USB_PORT_STAT_CONNECTION; port->status &= ~USB_PORT_STAT_CONNECTION;
......
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