build/patch/kernel/sunxi-next/sunxi-musb-fix-oops-on-unload.patch
zador-blood-stained ebe58fcbfe Enable musb gadgets in sunxi64-next config
Host mode and device mode tested on OPi PC2
2017-10-10 15:29:17 +03:00

13 lines
393 B
Diff

diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
index c9a09b5b..dc353e24 100644
--- a/drivers/usb/musb/sunxi.c
+++ b/drivers/usb/musb/sunxi.c
@@ -297,6 +297,8 @@ static int sunxi_musb_exit(struct musb *musb)
if (test_bit(SUNXI_MUSB_FL_HAS_SRAM, &glue->flags))
sunxi_sram_release(musb->controller->parent);
+ devm_usb_put_phy(glue->dev, glue->xceiv);
+
return 0;
}