Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5464514rwb; Tue, 1 Aug 2023 03:05:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJ3M1yt9qkHhHpca/mnlxoeh6TKxHyhgIwUoYNnhgkem8IYwrqZgtkAOI+c90s8HQl/stc X-Received: by 2002:a17:902:b60a:b0:1b8:9b1d:9e24 with SMTP id b10-20020a170902b60a00b001b89b1d9e24mr11565554pls.22.1690884332122; Tue, 01 Aug 2023 03:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690884332; cv=none; d=google.com; s=arc-20160816; b=Zp17phQvGY9VId8cxidDs1NPREAJeR23O89SbtjegtX4aBFj9KVtf2CZUQtFxqU9q6 u3VquFZfBra7kuXRG1qemHiS04huNznp323wtxFnN0/gRimPZQZ7bK6ra6E936YH1A3U BwAN+J+SrC25v7QtSzlE+Jscc2DmVIUqsFrDttkjdGmkcGMqa6E6Ohi3nIkHBSS5mA3e y5vomluK8eX4Q44cYBDnKp+TD5Ff3+rytQyi13Jf0sPFalwJCOlKRu0QLT9d/c2xgP59 TRag1zUpAl328N5Mgq+Zz4lHJfMXWrHmW/4QqtXV+twgUgeXRmNwpF0uSCriYIVKWkkD vv2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lhIx8Z9MwkPqQs5KNClXE/7bclgPKWKNOBpbSuG3HUs=; fh=/WEjfy3xA/leUZh/eirmTxCXFggxWEOvwne0q1TMJDg=; b=0ju3ixfGJ1mxl5QbAZ6cNglT0Zoiiruue26IPioC0vvi3Y3NXmDA8oiAo+iFc+tLSC u58Rf6ZZzVyY1nPINqyA6YFjYLGm2Lzj5NSmnKfftpandC9R3CuMA79IytYy857BTy9G 5UnfLJgBB5HGiqKqgK/KcT6RKWEH1ZjO5vi8ubSrDuvZ1UYHBYaB9S80XSSWuADt4FfV ANkosM80WwQNTY0394nYfi0PUC3uQPZUVl9AroDqWCE6Y9DB1vDsfiVH5+fzhU2Qp7ad QOLrViBtKGFjHhPBrEr2N4FhtnhMEi0lIUpMy6h8SjRbvqW/nK9DJmo1X4PVWah6xkCl by6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HugPMt4B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a17090301cf00b001b7fa4d1a7esi9237242plh.507.2023.08.01.03.05.10; Tue, 01 Aug 2023 03:05:32 -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=pass header.i=@lunn.ch header.s=20171124 header.b=HugPMt4B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232174AbjHAJEB (ORCPT + 99 others); Tue, 1 Aug 2023 05:04:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232675AbjHAJDN (ORCPT ); Tue, 1 Aug 2023 05:03:13 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54028E49; Tue, 1 Aug 2023 02:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=lhIx8Z9MwkPqQs5KNClXE/7bclgPKWKNOBpbSuG3HUs=; b=HugPMt4B3WtcqYeQYGV8zc3Zav uZI5gFoXcfkGPrHC5gtDNedNxETtR4oj5N3xU4KNz55V/x518v+q+pkL9D80sm4ubrMsBrGCM/Bqe jveeu8PfGnp/o7VdTm4Pmm6OLuGtVyVj4MxDR11CfMFEXKi8ckWt7XKHomI8AZSjZ2Ek=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qQlGr-002mUP-Qn; Tue, 01 Aug 2023 11:02:25 +0200 Date: Tue, 1 Aug 2023 11:02:25 +0200 From: Andrew Lunn To: Mark Brown Cc: Jassi Brar , Ilias Apalodimas , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ard Biesheuvel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] net: netsec: Ignore 'phy-mode' on SynQuacer in DT mode Message-ID: <5823fe1b-c994-4ad5-945c-f82500a0843b@lunn.ch> References: <20230731-synquacer-net-v3-1-944be5f06428@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731-synquacer-net-v3-1-944be5f06428@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Mon, Jul 31, 2023 at 11:48:32AM +0100, Mark Brown wrote: > As documented in acd7aaf51b20 ("netsec: ignore 'phy-mode' device > property on ACPI systems") the SocioNext SynQuacer platform ships with > firmware defining the PHY mode as RGMII even though the physical > configuration of the PHY is for TX and RX delays. Since bbc4d71d63549bc > ("net: phy: realtek: fix rtl8211e rx/tx delay config") this has caused > misconfiguration of the PHY, rendering the network unusable. > > This was worked around for ACPI by ignoring the phy-mode property but > the system is also used with DT. For DT instead if we're running on a > SynQuacer force a working PHY mode, as well as the standard EDK2 > firmware with DT there are also some of these systems that use u-boot > and might not initialise the PHY if not netbooting. Newer firmware > imagaes for at least EDK2 are available from Linaro so print a warning > when doing this. > > Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver") > Signed-off-by: Mark Brown Reviewed-by: Andrew Lunn Andrew