From: Andrew Lunn <andrew@lunn.ch>
To: Hayes Wang <hayeswang@realtek.com>
Cc: kuba@kernel.org, davem@davemloft.net, netdev@vger.kernel.org,
nic_swsd@realtek.com, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/2] r8152: set bp in bulk
Date: Wed, 26 Jul 2023 10:39:13 +0200 [thread overview]
Message-ID: <0c42418b-7271-415d-991a-a4564cb3fad5@lunn.ch> (raw)
In-Reply-To: <20230726030808.9093-419-nic_swsd@realtek.com>
> - 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
next prev parent reply other threads:[~2023-07-26 8:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 3:08 [PATCH net-next v2 0/2] r8152: reduce control transfer Hayes Wang
2023-07-26 3:08 ` [PATCH net-next v2 1/2] r8152: adjust generic_ocp_write function Hayes Wang
2023-07-26 8:36 ` Andrew Lunn
2023-07-26 9:50 ` Hayes Wang
2023-07-26 3:08 ` [PATCH net-next v2 2/2] r8152: set bp in bulk Hayes Wang
2023-07-26 8:39 ` Andrew Lunn [this message]
2023-07-26 9:50 ` Hayes Wang
2023-07-29 1:10 ` [PATCH net-next v2 0/2] r8152: reduce control transfer patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0c42418b-7271-415d-991a-a4564cb3fad5@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=hayeswang@realtek.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®