From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Behun Date: Mon, 20 Apr 2020 11:36:41 +0200 Subject: [PATCH u-boot-marvell 09/11] net: mvneta: add PHY support In-Reply-To: <20200419154850.25868-10-marek.behun@nic.cz> References: <20200419154850.25868-1-marek.behun@nic.cz> <20200419154850.25868-10-marek.behun@nic.cz> Message-ID: <20200420113641.47aaef42@nic.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de There is some code repetition in patches 7, 8, and 9. I am thinking about perhaps creating a helper function generic_phy_begin() which would call generic_phy_init() generic_phy_set_mode() generic_phy_power_on() and generic_phy_end() generic_phy_power_off() generic_phy_exit()