lkml.org 
[lkml]   [2023]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2023-07-26 10:47    [W:0.119 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site