From d772983d2a392a139c544a97014ed95554b09ad1 Mon Sep 17 00:00:00 2001 From: Rupesh Gujare Date: Mon, 5 Aug 2013 18:40:14 +0100 Subject: [PATCH] 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 --- drivers/staging/ozwpan/ozhcd.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2