Message ID | 20200706004046.20842-1-andre.przywara@arm.com |
---|---|
Headers | show |
Series | net: sun8i-emac fixes and cleanups | expand |
On Mon, Jul 06, 2020 at 01:40:31AM +0100, Andre Przywara wrote: > 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! Acked-by: Maxime Ripard <mripard at kernel.org> Thanks! Maxime
Hi, On Mon, Jul 6, 2020 at 6:12 AM Andre Przywara <andre.przywara at arm.com> wrote: > > 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 Tested this on Pine64+, and it worked without any issue. Tested-by: Amit Singh Tomar <amittomer25 at gmail.com> Thanks -Amit