Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2125CC05027 for ; Sun, 12 Feb 2023 23:23:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 987BB8574D; Mon, 13 Feb 2023 00:20:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1676244023; bh=+DvQfSlRWaqYyI1J2SmC3RRAlUgi7VLSdW0cDOt2whE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=uyKxil81MhfI/hD3gp6zyvD0mxuqj9IlmiPeM2Au8r9Dh3QIwOpCeAL7bJ/u/wyH9 dRyuhCAawq4obCIRvFXFE1os76ukYEhz172QAL4SJEkRjgGcD3XC8y4pzNXfkuBHBy 1RYZx/rUlPzPZcHvvvqmCby5gLRLyBFQSZsCGzK66IyGQy+l+cMHw83de/5cn8ogiY sa/xAFyaqgbBnxMShJ9oNPJ7C8jgOa+Ql0wWCH+BYAkcnAyIz7wHkjJyXmDw3v4JQ/ ASPpedzVSiJZehr5k+7ckor3RGc6TPnKowvwkkfzGQD3lrFW207DzXUPZCHawPtHRT ph98FPxXaBPtg== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D9EB18574D; Mon, 13 Feb 2023 00:17:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1676243876; bh=+DvQfSlRWaqYyI1J2SmC3RRAlUgi7VLSdW0cDOt2whE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HL6ytV6lsAFCH5FLHV9mHOE9uAKeLForR4f/Y2MAfSLCkz8Mx81NQrM4ARX8xMISt Og4N28pdbRXAQOlT3knyhZuQ75V0X2mB5N7er+Dz+Cw41DAe5ZErWWRXl5M4GaCHYt 9vXA/DRehE2nJjdlsNjV433m5irzOwP47vVwk6Mpl6ntBeOLPuJj8gi9Cyh06jLtoL x8g3mlamlqBnw4FTrwqZJJ0iLWvgoktqd6u/8ffqjEuvKiBJaAIyWmelb5uMB/SAHA 1Fcqh9sXkK1sPwf0vV9Fw5A0xyKZRZZjfAGoFabZN2Bo13l0qz6hleu3+k6KMNhFde Ff1eGoyI8Y90A== Message-ID: Date: Mon, 13 Feb 2023 00:17:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 02/14] net: Pull board_interface_eth_init() into common code To: Simon Glass Cc: u-boot@lists.denx.de, Ariel D'Alessandro , "NXP i.MX U-Boot Team" , Andrey Zhizhikin , Fabio Estevam , Joe Hershberger , Lukasz Majewski , Marcel Ziswiler , Michael Trimarchi , Peng Fan , Ramon Fried , Sean Anderson , Stefano Babic , Tim Harvey , Tommaso Merciai References: <20230211214729.478566-1-marex@denx.de> <20230211214729.478566-2-marex@denx.de> Content-Language: en-US From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 2/13/23 00:13, Simon Glass wrote: > Hi, > > On Sat, 11 Feb 2023 at 14:48, Marek Vasut wrote: >> >> Move the board_interface_eth_init() into common ethernet uclass code, >> since this function could be shared by multiple drivers. >> >> Signed-off-by: Marek Vasut >> --- >> Cc: "Ariel D'Alessandro" >> Cc: "NXP i.MX U-Boot Team" >> Cc: Andrey Zhizhikin >> Cc: Fabio Estevam >> Cc: Joe Hershberger >> Cc: Lukasz Majewski >> Cc: Marcel Ziswiler >> Cc: Marek Vasut >> Cc: Michael Trimarchi >> Cc: Peng Fan >> Cc: Ramon Fried >> Cc: Sean Anderson >> Cc: Stefano Babic >> Cc: Tim Harvey >> Cc: Tommaso Merciai >> Cc: u-boot@lists.denx.de >> --- >> V3: New patch >> --- >> drivers/net/dwc_eth_qos.c | 7 ------- >> net/eth-uclass.c | 7 +++++++ >> 2 files changed, 7 insertions(+), 7 deletions(-) > > Reviewed-by: Simon Glass > > Related, we do have a way of adding code to run when a device is > probed (events). Should we look at using that? Is it better or worse > than weak functions? No, the next step here would be to figure out what to do with the GPR register programming, that'd be likely syscon or similar, but that's for another series.