Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2345146rwi; Fri, 21 Oct 2022 02:46:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5gUq7iIJSXgvPQUqLDsBTu7pUJ3EpnE1mznBpK7kWaKOvEGTk8J4OS3KmWLYgv5K9v8H6T X-Received: by 2002:a17:902:f78b:b0:17f:9c94:b247 with SMTP id q11-20020a170902f78b00b0017f9c94b247mr17777416pln.137.1666345592039; Fri, 21 Oct 2022 02:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666345592; cv=none; d=google.com; s=arc-20160816; b=DtTyBe0kUy6cm09O+y6Wep+7JqbyIraIVM5aTO08JZz3qpkrgYQoJD381s2R8vAcoL yYZhA1ltB7tAMRgdVlcouEU7gE55tKhHVnohEQmeVPoZAo1MPz8wOF30ePpaFzVLDTp9 a8u6lfdFIUCdZM9o+1LwyWx7Qf2U8ImrKXLrGPTzVVLtYn9ED/1qE/uzcy88v057DwH7 1w3jbEyfPXXPLjM1aMHLfZqZ8p6LzitUhg888kKooo/WY34No1FyhLmFaxMEG17ohOA6 lOTuEO7Y9DT8r50UTww5+r8mJjCUzYOHfkYhNbBzhdLLMT0Tomih7hpaOKq/SBMDM3tX YkUw== 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=4iMBphw13KTQLLQRfUG/2Q1TsUUh89Ar5EYrCCnD96k=; b=aB5uZ58CI515faL/MAIl2pZXbAoVIuc/9vW6+MqsNZuVkrBLUIpGeLC4QdpGX9l4/1 UHZiUXD3PmB4ykvQREgG3qCed3NSPmnthSXSys2CfB6voZKD9KGYyxO1ZClKLhnAGMcH aG9BTziqrbYKf5xki936H8yjqayhyLLrlpYY0BrHMlKEBkqLU08m2d0745fqEFXVKpi1 HkodJQW5nnDvmcTM59/iK4KRE1wqLvDalybAD+ALNuQswVMxL6GoC97DC5Ffe+NUeMSf v/118CQNxDf1hkACuktDU4SxdSqEvPzbQpCP3dgOsB4AqdkfiB5LJdnDYIcYcmT6WbqV womQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="wh3/gEmC"; 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 k7-20020a056a00134700b005635c47d783si26933351pfu.357.2022.10.21.02.46.20; Fri, 21 Oct 2022 02:46:31 -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="wh3/gEmC"; 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 S230445AbiJUJA4 (ORCPT + 99 others); Fri, 21 Oct 2022 05:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbiJUJAs (ORCPT ); Fri, 21 Oct 2022 05:00:48 -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 1C6E034990; Fri, 21 Oct 2022 02:00:41 -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=4iMBphw13KTQLLQRfUG/2Q1TsUUh89Ar5EYrCCnD96k=; b=wh3/gEmC9mepUk1fTEqfrqlJEy 7LxX5iGvzCultd99ss4GAQLzu47Tznnc1PQKPA+dLeQQ1U/2J0eqEGdpKKoAMVIlGBtg41DJUL7cD kcASAQQfNiEmBACrIMYPnPdNwR1cusbIry2QS08ZHAZiCmSloL5Ym4v98A+J/P1nkT590E9zRlIua 25f64/PnDS4f9cbTgmeBIOoleCgTLQcVqfoLRA/XV0olSiogHasssrNWEnijciwmDoNXVvTVafw+/ lA7mEPSANpOChXuPjPHmwwrtNfqsNiOMwW05rDG0nm9rCzYooiOCisTqROtT2k8ckMA2rME1CHzYi 1ZAZ8JSw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34854) 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 1olnt7-0008PG-Jd; Fri, 21 Oct 2022 10:00:21 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1olnt2-000421-4a; Fri, 21 Oct 2022 10:00:16 +0100 Date: Fri, 21 Oct 2022 10:00:16 +0100 From: "Russell King (Oracle)" To: Frank Wunderlich Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Alexander Couzens , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: mtk_sgmii: implement mtk_pcs_ops Message-ID: References: <20221020144431.126124-1-linux@fw-web.de> <02A54E45-2084-440A-A643-772C0CC9F988@public-files.de> <9E91B812-8687-463D-8B98-3C4BF26CBE08@fw-web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9E91B812-8687-463D-8B98-3C4BF26CBE08@fw-web.de> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Fri, Oct 21, 2022 at 10:41:22AM +0200, Frank Wunderlich wrote: > Am 21. Oktober 2022 09:24:02 MESZ schrieb "Russell King (Oracle)" : > >On Fri, Oct 21, 2022 at 08:04:51AM +0200, Frank Wunderlich wrote: > >> On my board (bpi-r3) we have no autoneg on the gmacs. We have a switch (mt7531) with fixed-link on the first and a sfp-cage on the other. Second mac gets speed-setting (1000base-X or 2500base-X) from sfp eeprom, but no advertisement from the "other end". Imho it is always full duplex. > > > >If it's a fixed link, then this function you're adding won't be called. > >It's only called for in-band mode which is exclusive with fixed-link > >mode. > > > >-- > >RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > >FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! > > Right, i get this trace for the second mac which is without fixed-link because of in-band-managed for sfp (read speed settings from sfp eeprom). So, you need to set state->duplex to DUPLEX_FULL if this is what the hardware is actually doing. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!