[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0c42418b-7271-415d-991a-a4564cb3fad5@lunn.ch>
Date: Wed, 26 Jul 2023 10:39:13 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Hayes Wang <hayeswang@...ltek.com>
Cc: kuba@...nel.org, davem@...emloft.net, netdev@...r.kernel.org,
nic_swsd@...ltek.com, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org
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
Powered by blists - more mailing lists