All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/15] net: sun8i-emac fixes and cleanups
@ 2020-07-06  0:40 Andre Przywara
  2020-07-06  0:40 ` [PATCH 01/15] net: sun8i-emac: Bail out on PHY error Andre Przywara
                   ` (16 more replies)
  0 siblings, 17 replies; 20+ messages in thread
From: Andre Przywara @ 2020-07-06  0:40 UTC (permalink / raw)
  To: u-boot

Hi,

while looking at several U-Boot network drivers in the past year, I
typically compared them to the sun8i-emac driver, as a kind of personal
reference. While doing so, I figured that there are quite some things
broken in here, and other things are not so nice.
This series attempts the fix those shortcomings.
Fix-wise we get proper handling of PHY failures (try without a
cable connected), support for external RMII PHYs (as seen on the
Pine64-non-plus model), and more future-proof internal PHY handling.
The rest of the patches are cleanups, which fix things that are wrong,
but we get away with so far, for one or another reason.
This also cleans up a good part of the cache maintenance. There is more
to be done (and I have patches for that), but that requires to drop
the overzealous alignment checks in cache_v7.c first, which is part of
another, upcoming series.

A git repo with those patches can be found here:
https://github.com/apritzel/u-boot/commits/sun8i-emac-cleanup

Please have a look and send comments!

Cheers,
Andre

Andre Przywara (15):
  net: sun8i-emac: Bail out on PHY error
  net: sun8i_emac: Don't hand out TX descriptor too early
  net: sun8i_emac: Simplify mdio_read/mdio_write functions
  net: sun8i_emac: Remove pointless wrapper functions
  net: sun8i_emac: Name magic bits and simplify read-modify-write calls
  net: sun8i_emac: Improve cache maintenance on RX descriptor init
  net: sun8i_emac: Reduce cache maintenance on TX descriptor init
  net: sun8i_emac: Drop unneeded cache invalidation before sending
  net: sun8i_emac: Wrap and simplify cache maintenance operations
  net: sun8i_emac: Fix overlong lines
  net: sun8i_emac: Fix MAC soft reset
  net: sun8i_emac: Simplify and fix error handling for RX
  net: sun8i-emac: Make internal PHY handling more robust
  net: sun8i-emac: Lower MDIO frequency
  sunxi: Pine-H64: Explicitly enable PHY regulator

 configs/pine_h64_defconfig |   1 +
 drivers/net/sun8i_emac.c   | 458 +++++++++++++++++--------------------
 2 files changed, 208 insertions(+), 251 deletions(-)

-- 
2.17.5

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-07-11 23:53 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06  0:40 [PATCH 00/15] net: sun8i-emac fixes and cleanups Andre Przywara
2020-07-06  0:40 ` [PATCH 01/15] net: sun8i-emac: Bail out on PHY error Andre Przywara
2020-07-06  0:40 ` [PATCH 02/15] net: sun8i_emac: Don't hand out TX descriptor too early Andre Przywara
2020-07-06  0:40 ` [PATCH 03/15] net: sun8i_emac: Simplify mdio_read/mdio_write functions Andre Przywara
2020-07-06  0:40 ` [PATCH 04/15] net: sun8i_emac: Remove pointless wrapper functions Andre Przywara
2020-07-06  0:40 ` [PATCH 05/15] net: sun8i_emac: Name magic bits and simplify read-modify-write calls Andre Przywara
2020-07-06  0:40 ` [PATCH 06/15] net: sun8i_emac: Improve cache maintenance on RX descriptor init Andre Przywara
2020-07-06  0:40 ` [PATCH 07/15] net: sun8i_emac: Reduce cache maintenance on TX " Andre Przywara
2020-07-06  0:40 ` [PATCH 08/15] net: sun8i_emac: Drop unneeded cache invalidation before sending Andre Przywara
2020-07-06  0:40 ` [PATCH 09/15] net: sun8i_emac: Wrap and simplify cache maintenance operations Andre Przywara
2020-07-06  0:40 ` [PATCH 10/15] net: sun8i_emac: Fix overlong lines Andre Przywara
2020-07-06  0:40 ` [PATCH 11/15] net: sun8i_emac: Fix MAC soft reset Andre Przywara
2020-07-06  0:40 ` [PATCH 12/15] net: sun8i_emac: Simplify and fix error handling for RX Andre Przywara
2020-07-06  0:40 ` [PATCH 13/15] net: sun8i-emac: Make internal PHY handling more robust Andre Przywara
2020-07-06  0:40 ` [PATCH 14/15] net: sun8i-emac: Lower MDIO frequency Andre Przywara
2020-07-11  9:27   ` Jagan Teki
2020-07-11 23:53     ` André Przywara
2020-07-06  0:40 ` [PATCH 15/15] sunxi: Pine-H64: Explicitly enable PHY regulator Andre Przywara
2020-07-06 12:10 ` [PATCH 00/15] net: sun8i-emac fixes and cleanups Maxime Ripard
2020-07-07 13:59 ` Amit Tomer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.