From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hershberger Date: Thu, 3 Dec 2015 13:00:35 -0600 Subject: [U-Boot] [PATCH v3 12/14] net: gem: Move driver to DM In-Reply-To: References: <3846048879467c3510abb54b930cdc05772d469e.1449154075.git.michal.simek@xilinx.com> <63575ac3262c5e42ba10190d44c73f34748eac58.1449154075.git.michal.simek@xilinx.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Thu, Dec 3, 2015 at 12:57 PM, Simon Glass wrote: > > On 3 December 2015 at 07:48, Michal Simek wrote: > > > > - Enable DM_ETH by default for Zynq and ZynqMP > > - Remove board_eth_init code > > - Change miiphy_read function to return value instead of error code > > based on DM requirement > > - Do not enable EMIO DT support by default > > > > Signed-off-by: Michal Simek > > --- > > > > Changes in v3: > > - Add remove function reported by Bin Meng > > > > Changes in v2: > > - Remove accidentially added mmc code > > - Sort dm.h header > > - add platdata_auto_alloc_size > > - Read iobase from pdata instead of via gev_get_addr > > - Check positive return value from fdtdec_lookup_phandles instead of -1 > > > > arch/arm/Kconfig | 2 + > > board/xilinx/zynq/board.c | 13 --- > > board/xilinx/zynqmp/zynqmp.c | 25 ------ > > drivers/net/zynq_gem.c | 179 ++++++++++++++++++++++++++---------------- > > include/configs/zynq-common.h | 6 -- > > include/netdev.h | 2 - > > 6 files changed, 112 insertions(+), 115 deletions(-) > > Reviewed-by: Simon Glass > > We really need to get that PHY interface moved to DM! I made efforts in that direction months ago, but found that it is very messy to not first move all drivers to phylib, and then from phylib to DM. To support all 3 is just gross and unwieldy. -Joe