Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1344584rdg; Fri, 11 Aug 2023 19:56:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGI86KnC/opvEpsRL6/tM12bynwrFlL5UwdmQpbS6vZ+B++8E73lg4FPiMznNJaY6uoVeDp X-Received: by 2002:a05:6808:144d:b0:3a7:1e3e:7f97 with SMTP id x13-20020a056808144d00b003a71e3e7f97mr5989489oiv.4.1691808984374; Fri, 11 Aug 2023 19:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691808984; cv=none; d=google.com; s=arc-20160816; b=TQz69nSFs27TgqlotXpjClsGRC3nILHRWe62Dr2FwOzuhKhoi8wFs192u/ZeZ6/p53 1apkcMtkmrwI7eoDbnfRwQFPPqec+AlVWRdER1CZx/DY3+zEYRcgmg9HRG7IAChlih8Y 7siI0WIhHMWAUMSfIY0OxuGd3mtx/VnIkOXsdFC2VR3k+jnXUFGDA6dPHsg0ns3NZ/E3 qYvAtAIp+UWJBXmzYlssQ2l6GDt2+OV8aj2qd0f8CrhkuV9kIXrdFw9JWz+8FHztJFHU PzBcMniQj9g0KmDQG4/+u2wTkcHbrL+i9GQ9ToKaEDjeGem5z1GpaUELgsDpNOG51siT Q9hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=0Ixs6AdLK1B3Fwl3osyXFwc/OBOt29nLXJPzkMkgqfA=; fh=BmgVDoOqE1vPGL7oIUmKeG1ABJhiQNeH/TQL5BRmqcA=; b=MMCYOR3uH6Us2tUF4F4z+deSO5Yn4oANg9SI7Wue37zt/10+/wL8MFzjr5OCjC5CxI xu3DSZGtnaNXsQL2XjGntUzZreznUHnzr8M9dJsQkwJbyPlBvpCB8RLGXwCOD5xufYlI GU45oGmokYP2OALsMm9vWmtZjRTdpwUAURA43FChBK+ARyrDTYdLAuGxsIW5TAKl/AF0 L5z5gkQm0iwdVR75URD39D/j0ZFSsnZS8rGqtnCL4JKVAdS3DExbhcM12LLQETwbpkct T6m2mm7rxAxwZVU2EFY/G4krhe6Ygi86Wtw5iHE8oJxY36TxPp0ywF3dWD7LGvXpWiKj 6wUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=TqL2ZGwE; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a634e50000000b005648d3f2031si4177835pgl.362.2023.08.11.19.56.12; Fri, 11 Aug 2023 19:56:23 -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=@broadcom.com header.s=google header.b=TqL2ZGwE; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236224AbjHKXyZ (ORCPT + 99 others); Fri, 11 Aug 2023 19:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234177AbjHKXyY (ORCPT ); Fri, 11 Aug 2023 19:54:24 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1229B171D for ; Fri, 11 Aug 2023 16:54:24 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1bc7b25c699so18221375ad.1 for ; Fri, 11 Aug 2023 16:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1691798063; x=1692402863; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=0Ixs6AdLK1B3Fwl3osyXFwc/OBOt29nLXJPzkMkgqfA=; b=TqL2ZGwE9l6SU5vzf7fhWIzFm7BK8wfNK4tsZG6K49AmFl+/zAmMtMI0N/Nx3Vhcta k+NWovyOWUJQS3IVSus31zSouEAUs6FhZF++PSSW6Je3kBbud1WKvF9BNWz2gGTRH3Ou HKxKX1F1lJ3xzcpE8FA9RDjAXiM5IGo57LJDM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691798063; x=1692402863; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0Ixs6AdLK1B3Fwl3osyXFwc/OBOt29nLXJPzkMkgqfA=; b=XT73uBH+Qt++F99hDEdtUJhukXeaD9+PouHLxg80yd43xJDUrHhows0VhbGeYg7xnH /wBjdzI6ote9UUx8xRQqRwsJeUxVz27xQAwwGf01Eu3rShgKUBV9LQY/fCY0bIZQsEfM 4Oe7TknkBGYUH+/HtYHL4Y4/h0Vf6wWL1R5iXuCZlZ+S1y8FEbGsEtKiYDhhFO4jF487 JxJ+1OrX/fHwxbcRY6TK0xNWEK8zeBw6KSZCgPsA2UPQlXtV/pQsRH7wKArNZE09IBQ1 xqx+gAhvd2vTcAPBytKobqPHKE2OCoNQODmoC/EMMReCqsAFls/zqux1mUYRiJKjr1HD Ju3Q== X-Gm-Message-State: AOJu0Ywc8WOjFE2oXCApHqhIfd9g6Dxomv+UEQ+fWKDeaEF+Pzbm5tEW kvvj66fNlaxmyQspeAe1lXG8jw== X-Received: by 2002:a17:903:181:b0:1bd:b8c8:98fc with SMTP id z1-20020a170903018100b001bdb8c898fcmr3237236plg.14.1691798063486; Fri, 11 Aug 2023 16:54:23 -0700 (PDT) Received: from ?IPV6:2607:fb91:ae9:9152:61f0:1e0:65f1:ffd5? ([2607:fb91:ae9:9152:61f0:1e0:65f1:ffd5]) by smtp.gmail.com with ESMTPSA id i4-20020a1709026ac400b001b8062c1db3sm4486602plt.82.2023.08.11.16.54.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Aug 2023 16:54:22 -0700 (PDT) Message-ID: <73951864-6632-1a67-5c7e-a96586429429@broadcom.com> Date: Fri, 11 Aug 2023 16:54:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] net: phy: broadcom: stub c45 read/write for 54810 To: Justin Chen Cc: netdev@vger.kernel.org, Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , open list References: <1691796578-846-1-git-send-email-justin.chen@broadcom.com> <87e4f794-669f-8d43-793c-b8c1878cbd15@broadcom.com> From: Florian Fainelli In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000a024800602ae6e69" X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 --000000000000a024800602ae6e69 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/11/2023 4:47 PM, Justin Chen wrote: > On Fri, Aug 11, 2023 at 4:40 PM Florian Fainelli > wrote: >> >> >> >> On 8/11/2023 4:29 PM, Justin Chen wrote: >>> The 54810 does not support c45. The mmd_phy_indirect accesses return >>> arbirtary values leading to odd behavior like saying it supports EEE >>> when it doesn't. We also see that reading/writing these non-existent >>> MMD registers leads to phy instability in some cases. >>> >>> Signed-off-by: Justin Chen >> >> Thanks for submitting this fix, I would be tempted to slap a: >> >> Fixes: b14995ac2527 ("net: phy: broadcom: Add BCM54810 PHY entry") >> >> so we get it back ported to stable trees where appropriate. It is not >> clear whether we should return -EINVAL vs. -EOPNOTSUPP which may more >> clearly indicate the inability to support MMD registers? > > Hmm agreed EOPNOTSUPP seems better here. Will submit v2 with fixes tag > if there are no objections to this patch. Since this is a fix, you will want to use [PATCH net] as the subject prefix per: https://www.kernel.org/doc/Documentation/networking/netdev-FAQ.txt and wait 24hrs in case someone provides additional review that you can incorporate in your v2. -- Florian --000000000000a024800602ae6e69 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQeQYJKoZIhvcNAQcCoIIQajCCEGYCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3QMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEd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