diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2022-09-08 19:32:55 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2022-09-08 19:32:55 +0000 |
commit | ed96ce18f9b6c6f137f8ff94740c0232416193b2 (patch) | |
tree | 98ab857883d4becaf858d0cc279a02b1e4e8e49b /sys/dev | |
parent | 0b45e7dabbc0827a513569a37caa4d0b5c4ba7a0 (diff) |
There is no need to uncomment the clock gating exit/enter gadget functions,
since we define them void anyway.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/dwc2/dwc2_coreintr.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/usb/dwc2/dwc2_coreintr.c b/sys/dev/usb/dwc2/dwc2_coreintr.c index 98eb7f1a860..93090703e78 100644 --- a/sys/dev/usb/dwc2/dwc2_coreintr.c +++ b/sys/dev/usb/dwc2/dwc2_coreintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2_coreintr.c,v 1.13 2022/09/08 19:18:46 mglocker Exp $ */ +/* $OpenBSD: dwc2_coreintr.c,v 1.14 2022/09/08 19:32:54 mglocker Exp $ */ /* $NetBSD: dwc2_coreintr.c,v 1.8 2014/04/04 05:40:57 skrll Exp $ */ /* @@ -441,15 +441,13 @@ STATIC void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) if (ret) dev_err(hsotg->dev, "exit partial_power_down failed\n"); - call_gadget(hsotg, resume); } -#if 0 + /* Exit gadget mode clock gating. */ if (hsotg->params.power_down == DWC2_POWER_DOWN_PARAM_NONE && hsotg->bus_suspended) dwc2_gadget_exit_clock_gating(hsotg, 0); -#endif } else { /* Change to L0 state */ hsotg->lx_state = DWC2_L0; @@ -567,11 +565,8 @@ STATIC void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) * If neither hibernation nor partial power down are supported, * clock gating is used to save power. */ -#if 0 if (!hsotg->params.no_clock_gating) dwc2_gadget_enter_clock_gating(hsotg); -#endif - break; } /* |