Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755772AbdCTRqO (ORCPT ); Mon, 20 Mar 2017 13:46:14 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:57280 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753946AbdCTRqL (ORCPT ); Mon, 20 Mar 2017 13:46:11 -0400 Subject: Re: [PATCH net-next] stmmac: call stmmac_init_phy from stmmac_dvr_probe To: Niklas Cassel , Joao Pinto References: <20170320172915.8313-1-niklass@axis.com> <5921fa33-5509-a158-80d6-acda7e68b418@axis.com> CC: , , , From: Joao Pinto Message-ID: Date: Mon, 20 Mar 2017 17:46:01 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <5921fa33-5509-a158-80d6-acda7e68b418@axis.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.107.19.117] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1095 Lines: 32 ?s 5:44 PM de 3/20/2017, Niklas Cassel escreveu: > On 03/20/2017 06:42 PM, Joao Pinto wrote: >> ?s 5:29 PM de 3/20/2017, Niklas Cassel escreveu: >>> From: Niklas Cassel >>> >>> It is usually possible to do >>> ethtool -s autoneg on >>> so that you trigger an autoneg before calling >>> ip link set dev eth0 up >>> >>> However, stmmac returns -EBUSY if !netif_running. >>> The only reason for this appears to be that stmmac_init_phy >>> is called from stmmac_open instead of from stmmac_dvr_probe. >>> >>> Move stmmac_init_phy to stmmac_dvr_probe so that ethool >>> works as soon as register_netdev has been called. >>> stmmac_check_ether_addr was also moved to probe, >>> so that the ordering doesn't change. >>> >>> Signed-off-by: Niklas Cassel >>> --- >> Hi Niklas, did you test this patch? > > I tested it on our hardware, but it would be nice > if you could test it on your side, since you are > using the PCI glue layer. > Ok, I can do that. As Florian stated in a past e-mail, this change might not be compatible with all setups. Joao