Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5834776rwi; Sun, 23 Oct 2022 12:57:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49Xx/7RQiBeYJhBy231ms8PB2vNo4YlTkt2PyIkxlBkE/QWxtHllIKh0pAn4MAf8OxfYIR X-Received: by 2002:a05:6402:5252:b0:461:bdb2:6aad with SMTP id t18-20020a056402525200b00461bdb26aadmr2425218edd.404.1666555071216; Sun, 23 Oct 2022 12:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666555071; cv=none; d=google.com; s=arc-20160816; b=Mjla+7VgUMgn9PeI13aawXeK11rylQXCMYYA6fvwlE3RawO943AaIIdDT15txlHFrX tfH6mxAaiN6O/ofsTi6HhK/Axf/kSZChoxV6rPCwtmdvSuOr75MhgzPMao00f3BFeAO+ xrMq6OfQo2d7Ux6CD+8+4a5zqUibD/KfJy9SvOkTSZe9dVAji2pMw9lztS7JPHWpQC0L 4OjAsTHXqWxQ7wbzSm+Px5vieyUJmX6JzdxsnxcFoGuGbE+l48lUZH1mU0pZ8AMnJTL2 fhVbqpLk5dnjh1s85WMvPYQ7qiNgWL+944c93GCo1YU4sYCspr+L6hw+UtB92tGmqw+D SSPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=r4YvaDhwEy5iYQJBIxEJxOJo3WiVpsAeeBn6dAp5NRs=; b=mpzg916Ek5nw3loxXbXFtn3T/fQSZ/vTQLTwp1OZHyDfxl3rN1LJD5thP97xfVcCCy EOiBMckU8+ahhyxGkbuGSQRStDKsRJoQF1aO0EBGx7qUIT5QwXoAb5Nt/aZiUlx3zt/D 1NjFLD4CNQor+EeEn4SVEbFmNhXyeWKZqAotUF002iTIeRgPQNqWIrBlArvks98VnWjA +TRlObIB86spEHe2szw0xbU+4TuoWb+vgAjoFpmJ55ZlBVOqiO3uAyW4CmeFjNHEM4BP Evuud9JoszPQvmWpHVNLBuEmR3DNtnlaWMpDPN13HLv2dYyIyjtSMY3XfwniQbzJotXA PqYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZS24O87P; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l26-20020a17090615da00b00741a18d4a5asi21176549ejd.994.2022.10.23.12.57.26; Sun, 23 Oct 2022 12:57:51 -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=@gmx.net header.s=badeba3b8450 header.b=ZS24O87P; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229783AbiJWTWT (ORCPT + 99 others); Sun, 23 Oct 2022 15:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbiJWTWR (ORCPT ); Sun, 23 Oct 2022 15:22:17 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59F4631FB5; Sun, 23 Oct 2022 12:22:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666552897; bh=2jJEvmHSP6qPd7XxMz1AxdJbkheHxQEUt+1NyVik1qw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ZS24O87PTKbDXd1ulCGQiI3NI14Se4l1Qw/O+11MQrW3roytC3pjbDL4gHm/91Fzn NdboUlmOuKjtcJf/ASI8F9HpIOSHmBOxo/1UEhEIeW32SS4a2iwcd6eBDQLlwuZFNd mz3wQoL9sAapY57xGnlrhucG/dGSQ7epUXgh74+I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [80.245.79.234] ([80.245.79.234]) by web-mail.gmx.net (3c-app-gmx-bs01.server.lan [172.19.170.50]) (via HTTP); Sun, 23 Oct 2022 21:21:37 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Frank Wunderlich Cc: "Russell King (Oracle)" , 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: Aw: Re: Re: [PATCH v2] net: mtk_sgmii: implement mtk_pcs_ops Content-Type: text/plain; charset=UTF-8 Date: Sun, 23 Oct 2022 21:21:37 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:wnlv6cT7DXECeaYmAyNFfLMpT8nVTt9ODcAJNv437ha20MFzbjN+Dt/birFLYC0Qzrh3n eIEUhh4j9jBPcBOIJE0jXkXXVYYu3H+3uyUH8uxlcKcUgKIwW9XMGz25i+rtreTo3Z2b0E6CQTkN 0yj0LrIXd3v9oBQeuEgYldLLF5+a5gtE6yhnzf1BVJgprHq+xaGWNX0WlFlVz1K+117tFjS9YYV7 WcIwOpfQXOU3uaQcpgKhjRWNaykut341YA9UC1RqQmDV5kmz7Ud/oi1gTaJmJMRaEItmI9bvOtk9 iM= X-UI-Out-Filterresults: notjunk:1;V03:K0:X0wHvMwV6ZE=:mSau9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UlS8gd4bgYeLproxGvCMzfH9AA1TC7PSw8B9 mVr4ObNX0FgKUvVmOXnSK1HpMUIijGMsU0ogfYhMjzGBi5WMjdz1gk7zKWB/qWdC2h4D79gd/ onaPzYd7Ny00uc5oYTNZBLbf51yFDs3L8m8T+Oh7NlJ0pfdOTWWYqRKXKS4frJ9Tuu+HgydZu kS2ZSqrklyYruwYAnXrhSnbV6VDGn/l/SyjsdrVtzLuoJdUD0orXriYxswVWDFRbgbBOD82WX 8+LcsKVw Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 > Gesendet: Sonntag, 23. Oktober 2022 um 21:03 Uhr > Von: "Frank Wunderlich" > if you fix this typo you can send the patch and add my tested-by: > > regmap_read(mpcs->regmap, SGMSYS_SGMII_MODE, &val); > - if (interface =3D =3D=3D PHY_INTERFACE_MODE_SGMII) > + if (interface =3D=3D PHY_INTERFACE_MODE_SGMII) > val |=3D SGMII_IF_MODE_BIT0; > else > val &=3D ~SGMII_IF_MODE_BIT0; > > should i send an update for my patch including this: > > state->duplex =3D DUPLEX_FULL; > > or do you want to read the duplex from the advertisement like stated bef= ore? > > regmap_read(mpcs->regmap, SGMSYS_PCS_CONTROL_1, &bm); > regmap_read(mpcs->regmap, SGMSYS_PCS_CONTROL_1 + 8, &adv); > > phylink_mii_c22_pcs_decode_state(state, bm >> 16, adv >> 16); with the phylink-helper it works too https://github.com/frank-w/BPI-R2-4.14/commits/6.1-r3-sgmii2 regards Frank