Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3653909rwb; Mon, 16 Jan 2023 10:54:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXv7f8Ce+5mpAq+tqWdlClTPqWMDlzXFeA1saKNLmQs7zaYyX5lthZT07O6qs3KdF3mz25dw X-Received: by 2002:a17:906:c0c1:b0:7c4:fa17:7203 with SMTP id bn1-20020a170906c0c100b007c4fa177203mr9442ejb.63.1673895262378; Mon, 16 Jan 2023 10:54:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673895262; cv=none; d=google.com; s=arc-20160816; b=p6bc1jygKdSuUe18MYiPgPRrcHKi7po3dkUHW10d6nfZ3fbqfE5ytOmGltQWxvXbEe VTVYoGs9JS+oCYGrrAyK+e5SjUhURR4/+w5T7/FIBUFh17eJCDSPTzjdMlPHd8q0GcNn dnYhi+DITSJIN6hHThXPgFAz7pRCaz28TDY+AZ54UNuRamScifW3oF9uS2OWEYlaWJEM X8MjTUc3vtBtiX4UJLZgO9sj3z31vI2AGiHcHutCEllxZNvjI3Md4zq1dtqez1YHvsYl AMTSh1Zq2hLyZ8mjlzDwIzf8Ba5PI+p8UeCzcerc/D9AlIp48nJ8wEW45Jm/HCD47WkN hEiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:organization :subject:cc:to:from:dkim-signature; bh=q+LXchndemc/sNMv5my3g+K8PlBnxGthZAA6IpMmwiA=; b=oEIa0VE51klInYSxyTlwEMZiyg6xHL5FNg0jbs7WyWVQ6sM3cxMg8MUd3AfBHUKK6Y FN/mOauq1oHMfKS9kfwXTmQFe6ciAGv6q+bn4lJ4Z1UQyvaphqN7Pu7YCEAeMfi06hy5 TxaBE6u9CwpGlsEd6W/Aq8GoctMA6NWeoWQDW7G43G1ZRqgk6uLueX9jmNvU9oqD0A8X rsSMRqXVkLaqkZ+wJAWXR+Q0Q50Ii5vZ25saLLWOb7yu2azE+h2HE2JJ4lhGv3Dpb5ZR OCpfCtCMWc94SF/iWiExwyL0iIJ+YpRl/CZWA3MDr4Bc5hF1OG4Aswnij3OEAfdkw1Lq NZEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mork.no header.s=b header.b=e8Yw0oL3; 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=mork.no Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs1-20020a1709073e8100b0084b9b15e1cfsi21025981ejc.41.2023.01.16.10.54.09; Mon, 16 Jan 2023 10:54:22 -0800 (PST) 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=@mork.no header.s=b header.b=e8Yw0oL3; 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=mork.no Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232554AbjAPSWC (ORCPT + 52 others); Mon, 16 Jan 2023 13:22:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232646AbjAPSVY (ORCPT ); Mon, 16 Jan 2023 13:21:24 -0500 Received: from dilbert.mork.no (dilbert.mork.no [IPv6:2a01:4f9:c010:a439::d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABCB2A9B6; Mon, 16 Jan 2023 10:07:33 -0800 (PST) Received: from canardo.dyn.mork.no ([IPv6:2a01:799:c9a:3200:0:0:0:1]) (authenticated bits=0) by dilbert.mork.no (8.15.2/8.15.2) with ESMTPSA id 30GI4wtd2106436 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Mon, 16 Jan 2023 18:05:00 GMT Received: from miraculix.mork.no ([IPv6:2a01:799:c9a:3202:549f:9f7a:c9d8:875b]) (authenticated bits=0) by canardo.dyn.mork.no (8.15.2/8.15.2) with ESMTPSA id 30GI4r1d2112691 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Mon, 16 Jan 2023 19:04:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mork.no; s=b; t=1673892293; bh=q+LXchndemc/sNMv5my3g+K8PlBnxGthZAA6IpMmwiA=; h=From:To:Cc:Subject:References:Date:Message-ID:From; b=e8Yw0oL3Bdoj07I5EPWN0RnNtgxfnjEyN2O53RjXdrZNNdOxh5mNCTdBDn0A8E5gZ PyV6VlR1K79TOYCPI8YhG5oMczjyl7RuKTNq/2lPLA23919AGkvTpawLXYq8/94EF4 SMeRtHjKYK/IS53VwZK7TbhHSJDp3Dx551AaA2N8= Received: (nullmailer pid 386555 invoked by uid 1000); Mon, 16 Jan 2023 18:04:53 -0000 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= To: "Russell King (Oracle)" Cc: Frank Wunderlich , 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 Organization: m References: <87o7qy39v5.fsf@miraculix.mork.no> <87h6wq35dn.fsf@miraculix.mork.no> <87bkmy33ph.fsf@miraculix.mork.no> <875yd630cu.fsf@miraculix.mork.no> <871qnu2ztz.fsf@miraculix.mork.no> <87pmbe1hu0.fsf@miraculix.mork.no> Date: Mon, 16 Jan 2023 19:04:53 +0100 In-Reply-To: <87pmbe1hu0.fsf@miraculix.mork.no> (=?utf-8?Q?=22Bj=C3=B8rn?= Mork"'s message of "Mon, 16 Jan 2023 18:59:19 +0100") Message-ID: <87lem21hkq.fsf@miraculix.mork.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: clamav-milter 0.103.7 at canardo X-Virus-Status: Clean 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_PASS,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 Bj=C3=B8rn Mork writes: > [ 52.473325] offset:20 0x10000 Should have warned about my inability to write the simplest code without adding more bugs than characters. 20 !=3D 0x20 I hope this makes more sense: [ 44.139420] mtk_soc_eth 15100000.ethernet wan: Link is Down [ 47.259922] mtk_sgmii_select_pcs: id=3D1 [ 47.263683] mtk_pcs_config: interface=3D4 [ 47.267503] offset:0 0x140 [ 47.267505] offset:4 0x4d544950 [ 47.270210] offset:8 0x20 [ 47.273335] offset:0x20 0x31120018 [ 47.275939] forcing AN [ 47.281676] mtk_pcs_config: rgc3=3D0x0, advertise=3D0x1 (changed), link_= timer=3D1600000, sgm_mode=3D0x103, bmcr=3D0x1200, use_an=3D1 [ 47.292610] mtk_pcs_link_up: interface=3D4 [ 47.296516] offset:0 0x81140 [ 47.296518] offset:4 0x4d544950 [ 47.299387] offset:8 0x1 [ 47.302512] offset:0x20 0x3112011b [ 47.305043] mtk_soc_eth 15100000.ethernet wan: Link is Up - 1Gbps/Full -= flow control rx/tx [ 56.619420] mtk_soc_eth 15100000.ethernet wan: Link is Down [ 60.779865] mtk_sgmii_select_pcs: id=3D1 [ 60.783623] mtk_pcs_config: interface=3D22 [ 60.787531] offset:0 0x81140 [ 60.787533] offset:4 0x4d544950 [ 60.790409] offset:8 0x1 [ 60.793535] offset:0x20 0x3112011b [ 60.796057] mtk_pcs_config: rgc3=3D0x4, advertise=3D0x20 (changed), link= _timer=3D10000000, sgm_mode=3D0x0, bmcr=3D0x0, use_an=3D0 [ 60.810117] mtk_pcs_link_up: interface=3D22 [ 60.814110] offset:0 0x40140 [ 60.814112] offset:4 0x4d544950 [ 60.816976] offset:8 0x20 [ 60.820105] offset:0x20 0x31120018 [ 60.822723] mtk_soc_eth 15100000.ethernet wan: Link is Up - 2.5Gbps/Full= - flow control rx/tx Bj=C3=B8rn