Messages in this thread | | | Date | Wed, 26 Jul 2023 10:39:13 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH net-next v2 2/2] r8152: set bp in bulk |
| |
> - ocp_write_word(tp, type, PLA_BP_0, 0); > - ocp_write_word(tp, type, PLA_BP_1, 0); > - ocp_write_word(tp, type, PLA_BP_2, 0); > - ocp_write_word(tp, type, PLA_BP_3, 0); > - ocp_write_word(tp, type, PLA_BP_4, 0); > - ocp_write_word(tp, type, PLA_BP_5, 0); > - ocp_write_word(tp, type, PLA_BP_6, 0); > - ocp_write_word(tp, type, PLA_BP_7, 0); > + generic_ocp_write(tp, PLA_BP_0, BYTE_EN_DWORD, bp_num << 1, bp, type); > > /* wait 3 ms to make sure the firmware is stopped */ > usleep_range(3000, 6000);
How much time do you save compared to this 3ms - 6ms sleep?
Andrew
| |