From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 20 Apr 2021 10:20:54 -0400 Subject: [PATCH 3/6] net: calxedagmac: Convert to DM_ETH In-Reply-To: <20210412000455.12996-4-andre.przywara@arm.com> References: <20210412000455.12996-1-andre.przywara@arm.com> <20210412000455.12996-4-andre.przywara@arm.com> Message-ID: <20210420142054.GF1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 12, 2021 at 01:04:52AM +0100, Andre Przywara wrote: > To squash that nasty warning message and make better use of the newly > gained OF_CONTROL feature, let's convert the calxedagmac driver to the > "new" driver model. > The conversion is pretty straight forward, mostly just adjusting the > use of the involved data structures. > The only actual change is the required split of the receive routine into > a receive and free_pkt part. > Also this allows us to get rid of the hardcoded platform information and > explicit init calls. > > This also uses the opportunity to wrap the code decoding the MMIO > register base address, to make it safe for using PHYS_64BIT later. > > Signed-off-by: Andre Przywara > Reviewed-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: