From ff2bc60bf3825c7a06349a43026b48a8a9f1004f Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Sat, 14 Oct 2017 23:52:41 +0300 Subject: [PATCH] Add musb crash fix to sunxi64-dev --- .../sunxi64-dev/sunxi-musb-fix-oops-on-unload.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patch/kernel/sunxi64-dev/sunxi-musb-fix-oops-on-unload.patch diff --git a/patch/kernel/sunxi64-dev/sunxi-musb-fix-oops-on-unload.patch b/patch/kernel/sunxi64-dev/sunxi-musb-fix-oops-on-unload.patch new file mode 100644 index 000000000..ea8a1610b --- /dev/null +++ b/patch/kernel/sunxi64-dev/sunxi-musb-fix-oops-on-unload.patch @@ -0,0 +1,13 @@ +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; + } +