staging: ozwpan: Reset port configuration number.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Mon, 5 Aug 2013 17:40:14 +0000 (18:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 21:58:34 +0000 (14:58 -0700)
Make sure that we reset port configuration no. when PD departs.

Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c

index d313a63..26eaa74 100644 (file)
@@ -715,6 +715,7 @@ void oz_hcd_pd_departed(void *hport)
        hpd = port->hpd;
        port->hpd = NULL;
        port->bus_addr = 0xff;
+       port->config_num = 0;
        port->flags &= ~(OZ_PORT_F_PRESENT | OZ_PORT_F_DYING);
        port->flags |= OZ_PORT_F_CHANGED;
        port->status &= ~USB_PORT_STAT_CONNECTION;