Lack of power management on the mdm6600 driver causes it to sometimes
open with a bad port after USB re-unemeration. WARN_ON_ONCE instead of
BUG_ON.
Change-Id: Iae6c7aa2c1f2b30ff879a1b744a5efeef01664f9
Signed-off-by: Nick Pelly <npelly@google.com>
dbg("%s: port %d", __func__, port->number);
- BUG_ON(modem->port != port);
+ WARN_ON_ONCE(modem->port != port);
modem->tiocm_status = 0;
if (port->number == MODEM_INTERFACE_NUM) {
- BUG_ON(!port->interrupt_in_urb);
+ WARN_ON_ONCE(!port->interrupt_in_urb);
rc = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
if (rc) {
dev_err(&port->dev,