diff --git a/repos/base-hw/src/core/include/spec/rpi/pic.h b/repos/base-hw/src/core/include/spec/rpi/pic.h index 354e8500d3..b094297c6d 100644 --- a/repos/base-hw/src/core/include/spec/rpi/pic.h +++ b/repos/base-hw/src/core/include/spec/rpi/pic.h @@ -98,32 +98,19 @@ class Genode::Usb_dwc_otg : Mmio if (!_is_sof()) return false; - static int cnt, stat_cnt, filter_cnt, trigger_cnt, kick_cnt; + static int cnt = 0; - stat_cnt++; - if (stat_cnt == 8000) { - log("kicked: ", kick_cnt, " filtered: ", filter_cnt, " triggered: ", trigger_cnt); - stat_cnt = 0; - } - - cnt++; - if (cnt == 8*20) { + if (++cnt == 8*20) { cnt = 0; return false; } - if (read()) - kick_cnt++; - if (!read() || read()) return false; - if (_need_trigger_sof(read(), read())) { - trigger_cnt++; + if (_need_trigger_sof(read(), + read())) return false; - } - - filter_cnt++; write(1);