Re: [PATCH] usb: phy: generic: Handle late registration of gadget

From: Felipe Balbi
Date: Tue Mar 01 2016 - 06:41:11 EST



Hi,

Maarten ter Huurne <maarten@xxxxxxxxxxxxxx> writes:
> It is possible for the VBUS detect GPIO interrupt to occur before
> nop_set_peripheral() is called, in which case otg->gadget is NULL.
>
> Signed-off-by: Maarten ter Huurne <maarten@xxxxxxxxxxxxxx>

wonder if it would be best to guarantee this doesn't happen in the first
place, but I guess that would be too complex anyhow. I'll apply this as
is for now.

--
balbi

Attachment: signature.asc
Description: PGP signature