Re: [PATCH net-next v2 2/2] r8152: set bp in bulk

From: Andrew Lunn
Date: Wed Jul 26 2023 - 04:47:25 EST


> - 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