mbox series

[net-next,0/2] net: dsa: mv88e6xxx: Improve indirect addressing performance

Message ID 20220126231239.1443128-1-tobias@waldekranz.com (mailing list archive)
Headers show
Series net: dsa: mv88e6xxx: Improve indirect addressing performance | expand

Message

Tobias Waldekranz Jan. 26, 2022, 11:12 p.m. UTC
The individual patches have all the details. This work was triggered
by recent work on a platform that took 16s (sic) to load the mv88e6xxx
module.

The first patch gets rid of most of that time by replacing a very long
delay with a tighter poll loop to wait for the busy bit to clear.

The second patch shaves off some more time by avoiding redundant
busy-bit-checks, saving 1 out of 4 MDIO operations for every register
read/write in the optimal case.

Tobias Waldekranz (2):
  net: dsa: mv88e6xxx: Improve performance of busy bit polling
  net: dsa: mv88e6xxx: Improve indirect addressing performance

 drivers/net/dsa/mv88e6xxx/chip.c |  8 ++++----
 drivers/net/dsa/mv88e6xxx/chip.h |  1 +
 drivers/net/dsa/mv88e6xxx/smi.c  | 32 ++++++++++++++++++--------------
 3 files changed, 23 insertions(+), 18 deletions(-)