]> git.karo-electronics.de Git - linux-beck.git/commit
usb: phy: generic: Handle late registration of gadget
authorMaarten ter Huurne <maarten@treewalker.org>
Sun, 28 Feb 2016 15:34:16 +0000 (16:34 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:47 +0000 (15:14 +0200)
commit2eafe93b92921308b624466b4c8a99bd1ace6e4f
treecdbe0aac33f1d5ac233a30def2d49bc89c3f22e2
parentcff5638ef7852196879f9687e70d49ea291bbb33
usb: phy: generic: Handle late registration of gadget

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>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/phy/phy-generic.c