From: Rupesh Gujare Date: Mon, 5 Aug 2013 17:40:14 +0000 (+0100) Subject: staging: ozwpan: Reset port configuration number. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d772983d2a392a139c544a97014ed95554b09ad1;p=linux-beck.git staging: ozwpan: Reset port configuration number. Make sure that we reset port configuration no. when PD departs. Signed-off-by: Rupesh Gujare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index d313a636f263..26eaa74e4a21 100644 --- a/drivers/staging/ozwpan/ozhcd.c +++ b/drivers/staging/ozwpan/ozhcd.c @@ -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;