From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C1EFC433ED for ; Tue, 13 Apr 2021 13:26:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DDEBA61369 for ; Tue, 13 Apr 2021 13:26:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240792AbhDMN1H (ORCPT ); Tue, 13 Apr 2021 09:27:07 -0400 Received: from uho.ysoft.cz ([81.19.3.130]:58193 "EHLO uho.ysoft.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231697AbhDMN06 (ORCPT ); Tue, 13 Apr 2021 09:26:58 -0400 Received: from [10.0.29.110] (unknown [10.0.29.110]) by uho.ysoft.cz (Postfix) with ESMTP id 25268A0955; Tue, 13 Apr 2021 15:26:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1618320390; bh=JBTZkRH+RisXWx6nb2B/Jz3vzcdT8S+CK2Nlb/trwwU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fDNYc/sn18JNbd4wl+nJBN+9syzSMLuMxv0uAfWXqKhSPINkK6KIyTAwVqt4rbx0/ HbkKOsjLx74vz2T/iz7y9MtZbeSwxp2ahwrNegB7haJZVWZBjeHR6dNoq+FCV7IU0e HmNJ9hGqv1UTa6erFlSmf8IItTNmrqp4LlGqdWUs= Subject: Re: Broken imx6 to QCA8334 connection since PHYLIB to PHYLINK conversion To: Andrew Lunn Cc: Jonathan McDowell , Florian Fainelli , David Miller , netdev@vger.kernel.org References: <9fa83984-f385-4705-a50f-688928cc366f@ysoft.com> From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= Message-ID: Date: Tue, 13 Apr 2021 15:26:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 13. 04. 21 14:44, Andrew Lunn wrote: > On Tue, Apr 13, 2021 at 09:09:37AM +0200, Michal Vokáč wrote: >> On 12. 04. 21 16:14, Andrew Lunn wrote: >> The FEC does not have PHY and is connected to the switch at RGMII level. >> Adding the fixed-link { speed = <1000>; full-duplex; }; subnode to FEC >> does not help. > > If the FEC does not have a PHY, it should not have a > phy-handle. Instead, you need a fixed-link. > > What is currently happening is that both the switch and the FEC are > trying to connect to the same PHY. Probably the switch does its > connection first and succeeds. When the FEC tries to connect, the PHY > is in use, so an error is returned. > > By providing a fixed-link, instead of a phy-handle, a simulated PHY is > generated, which the FEC can connect to. That was it, thanks a lot Andrew! I will send a patch ASAP. Michal