Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp988139rwl; Wed, 5 Apr 2023 10:14:41 -0700 (PDT) X-Google-Smtp-Source: AKy350Y/kXFlhklGWRc9exiFiOy4MljlgElCDbdUsF7jmiQ6WyksMa57K24+0p82Zt1WA/RoUspL X-Received: by 2002:a17:90b:38cd:b0:234:dc4:2006 with SMTP id nn13-20020a17090b38cd00b002340dc42006mr7867306pjb.4.1680714881390; Wed, 05 Apr 2023 10:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680714881; cv=none; d=google.com; s=arc-20160816; b=fkm49hddS7G/XQiY/RHLj8J0DQVRpvv6kfwMPKbzGW6wAtFYvmqseGakKcXcZrrtpm VA6YepGVftmqZzkQPqqWAoBhL6zKaKlNWMEp7ovpMHlQ82AfdFaB39fyPq8tKreM7on9 L8I5TPSqCA3epSmlZFyA1zqI1G9TTQsSznWv4hZZdgfaJUXTaWHZJCWTSl92y8APxX9E 0fQ7fw7ABP+u9G4zdxffEO7GMkFMY9tTh/kLAS02RAtwepo8Qm2OPjHHIuJQ4nUUbBkI Wrh6O4mwy0nqBJIZ5wNiXjN7r2+9CmOZ/gIQh4WszuZzhv7mcRVEpF3gnzTe3v7hFUF1 4ZGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fXg8Mb4yOCOXyW4T6AIOqAjFd/E1fGh7oVSStyatFrU=; b=vrU3yHpCG5WlrVPcYR1A9tR73JJ8pP+47Zz/Ql64C/EPmI4PKTYhkKerOrtbG6L/tT YTTPUSHq5nDg0ps/SY/Kcq0s7MtWu8Nt/ITHDslPuI5ZxiCnZ4b4ZQfRPqXCroswtu6g rmnGwjSQJFuIP6+HbjGw2POH6LXe+7EfxIANu3Dr+eJYO0zqe9RGeq08iUif7AsWpy55 YXnE2pj3SwUGx+VBqBMvao90ACMDHZtDWe26T4GMO/CNQnaEh2hfVsnMM+w1wmhatLZP GAnZIPRuq+Y4gD3BxAqRCIU4M2izNt3vyMkQEnYN5zWd+ktrFvCalaMBUMD5DYdbGkEJ v3Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=sI1gxebU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a17090abc4100b00233e76fe27fsi1628065pjv.183.2023.04.05.10.14.22; Wed, 05 Apr 2023 10:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=sI1gxebU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbjDERJC (ORCPT + 99 others); Wed, 5 Apr 2023 13:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjDERJB (ORCPT ); Wed, 5 Apr 2023 13:09:01 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCFCEE41; Wed, 5 Apr 2023 10:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fXg8Mb4yOCOXyW4T6AIOqAjFd/E1fGh7oVSStyatFrU=; b=sI1gxebUBcKKqxgNaWbHB180aE WyuecNnx7sFIX6oa6Rc3UFJSttpR5yCk8wA+GX4Gs2/S4d8Kj5HyLJu+LG5f6hg4I1QSF85muu9Ig UoZu9oCE3QTJJttpc31MIXwfVIFa0L4sxkml8rvWaNQm56wBQk7xrXQ8q4J/STD94u0WJ3Tl5ISX3 UFLT6GIYgrg9ZSPOEBjxHynE1Lg7X5hC3jV9KQI4G8VhVZFfTE+GvpVV/CEB23IGuGcfFjbldaV3D t3HG9OuI3mZyeb0xBaN0TLlIZKYeeivLyrY4TOwFB7ey0AtPfxnfVyedE236HNPCObgbbXvKax51L jx6G4gzw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:50532) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pk6cg-0005ua-Jz; Wed, 05 Apr 2023 18:08:38 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pk6cY-0006Vl-Ur; Wed, 05 Apr 2023 18:08:30 +0100 Date: Wed, 5 Apr 2023 18:08:30 +0100 From: "Russell King (Oracle)" To: Guenter Roeck Cc: Michael Sit Wei Hong , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Ong Boon Leong , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Looi Hong Aun , Voon Weifeng , Lai Peter Jun Ann Subject: Re: [PATCH net v3 2/3] net: stmmac: check if MAC needs to attach to a PHY Message-ID: References: <20230324081656.2969663-1-michael.wei.hong.sit@intel.com> <20230324081656.2969663-3-michael.wei.hong.sit@intel.com> <5bb39f85-7ef0-4cbb-a06b-0d6431ab09b7@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5bb39f85-7ef0-4cbb-a06b-0d6431ab09b7@roeck-us.net> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 05, 2023 at 10:02:16AM -0700, Guenter Roeck wrote: > Hi, > > On Fri, Mar 24, 2023 at 04:16:55PM +0800, Michael Sit Wei Hong wrote: > > After the introduction of the fixed-link support, the MAC driver > > no longer attempt to scan for a PHY to attach to. This causes the > > non fixed-link setups to stop working. > > > > Using the phylink_expects_phy() to check and determine if the MAC > > should expect and attach a PHY. > > > > Fixes: ab21cf920928 ("net: stmmac: make mdio register skips PHY scanning for fixed-link") > > Signed-off-by: Michael Sit Wei Hong > > Signed-off-by: Lai Peter Jun Ann > > With this patch in linux-next, the orangepi-pc qemu emulation fails to > bring up the Ethernet interface. The following error is seen. > > [ 12.482401] dwmac-sun8i 1c30000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 > [ 12.487789] dwmac-sun8i 1c30000.ethernet eth0: PHY [mdio_mux-0.1:01] driver [Generic PHY] (irq=POLL) > [ 12.488177] dwmac-sun8i 1c30000.ethernet eth0: no phy found > [ 12.488295] dwmac-sun8i 1c30000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19) > > Reverting this patch fixes the problem. Please see 20230405093945.3549491-1-michael.wei.hong.sit@intel.com for the fix. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!