Messages in this thread | | | From | Felipe Balbi <> | Subject | Re: [PATCH] usb: phy: generic: Handle late registration of gadget | Date | Tue, 01 Mar 2016 13:40:22 +0200 |
| |
Hi,
Maarten ter Huurne <maarten@treewalker.org> 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@treewalker.org>
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 [unhandled content-type:application/pgp-signature]
| |