From: David Wu Date: Sat, 9 May 2020 14:42:55 +0800 Subject: [PATCH 6/8] net: dwc_eth_qos: Split eqos_start() to get link speed In-Reply-To: References: <20200430103656.29728-1-david.wu@rock-chips.com> <20200430104423.31014-1-david.wu@rock-chips.com> Message-ID: <5fa0a9ce-74b1-cbbd-55b7-08a74f31376a@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Patrice, ? 2020/4/30 ??11:33, Patrice CHOTARD ??: > Can you explain why you are splitting this function in 2 parts and calling these parts sequentially ? For rockchip, need to obtain the current link speed to configure the tx clocks, (for example, in rgmii mode, 1000M link: 125M, 100M link: 25M, 10M link is 2.5M rate) and then enable gmac. So after the adjust_link(), before the start gamc, this intermediate stage needs to configure the clock according to the current link speed.