mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-05 05:41:43 +00:00
Add musb crash fix to sunxi64-dev
This commit is contained in:
parent
695290f761
commit
ff2bc60bf3
1 changed files with 13 additions and 0 deletions
13
patch/kernel/sunxi64-dev/sunxi-musb-fix-oops-on-unload.patch
Normal file
13
patch/kernel/sunxi64-dev/sunxi-musb-fix-oops-on-unload.patch
Normal file
|
@ -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;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue