Remove unnecessary locking left over from earlier code
as it's done in musb_gadget_wakeup(). Also show debug
information for unhandled wake events to allow debugging
SRP.
Signed-off-by: Tony Lindgren <tony@atomide.com>
status = 0;
goto done;
default:
+ DBG(2, "Unhandled wake: %s\n", otg_state_string(musb));
goto done;
}
}
}
-/* Called during SRP. Caller must hold lock */
+/* Called during SRP */
void musb_g_wakeup(struct musb *musb)
{
musb_gadget_wakeup(&musb->g);
const char *buf, size_t n)
{
struct musb *musb=dev_to_musb(dev);
- unsigned long flags;
unsigned short srp;
if (sscanf(buf, "%hu", &srp) != 1
return -EINVAL;
}
- spin_lock_irqsave(&musb->lock, flags);
if (srp == 1)
musb_g_wakeup(musb);
- spin_unlock_irqrestore(&musb->lock, flags);
return n;
}