Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1382743rdg; Fri, 11 Aug 2023 22:02:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWKYU4EZf7aXwfVYCQBFWtCxixltnE4QG6Hz0BzLlNgKigh7Levja3HRBw28FVSyFbrRql X-Received: by 2002:aa7:d1ce:0:b0:522:30cc:a1eb with SMTP id g14-20020aa7d1ce000000b0052230cca1ebmr2966312edp.0.1691816560182; Fri, 11 Aug 2023 22:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691816560; cv=none; d=google.com; s=arc-20160816; b=JBcEOJba5LHzhVXPWZhV+6VluCSihhxYu2Hdx8wI6ek/77eH6iqQjRkO5RoqbUtMn4 7IDaPGY8/T0LgkuBCjVgKaQS20u5fCgvQnBsiVjqU9GBNr6B2RXJhcvDpiSTuRFnzp4P PuPJqpU8ogYqLpryXXIXQbjqWko6aK+acx+9yFk+/7q7ITr18G8pmzJlhioG9P/Dv+K/ J0YKgJZittsNBZi9gji9LFOsTiZwgM6xEW5LBwq0n4Yw9erJjbMyXe0Olq8LvSJl931E pU4eE+w9lS7Ir02KYOylGNQb6mqew94uYy6guBhGUU11/eir/1oreZUMVA3PfFr7EWnN X8Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=c9zuLDfUrH6i3BDjEh4TTNKW+u6JnXoVJu4E2UgMNlk=; fh=L4yw/2Qjp1iKGEv0TZIzaybYCO7+FdNIu7mOJduw/BY=; b=HE6Ziw9XdqPxzB8M/8cvZLLI4SbeaitBnVbAnvkT+8qIttaGbFqFR1Ni+2h0dyCg5u 0y0IlZjtcqRSjQoJTMpFVw/4NE8CGexq+RFEPBtMWAysfGesM20H8QbYFjvjt6RU5pDb pbxE5AvFIuCtm3nx9WpYn0uKMlviy+7eQ95eYYUBarBaRyk+W8fwt/sZL0SLYh2Jjwrz /6ua4bFMCexD9DyLOXcQhDTNnJwtKB/Wq8bDld6KZy/OVcGqgTsVIzkcFPc4QJl81W71 eCEIM1z6sj9z9cdoKzHpMrfL+fW4k2gGxO51bGuG4d02iCV9ifN3EqL6YonCd7HYLBeg 4zQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=CczFAZUY; 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 w7-20020aa7cb47000000b00524e6f3255dsi938470edt.57.2023.08.11.22.02.15; Fri, 11 Aug 2023 22:02:39 -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=CczFAZUY; 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 S237371AbjHKXsS (ORCPT + 99 others); Fri, 11 Aug 2023 19:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237325AbjHKXsF (ORCPT ); Fri, 11 Aug 2023 19:48:05 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B97812112 for ; Fri, 11 Aug 2023 16:48:01 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-790930d78e8so83168939f.1 for ; Fri, 11 Aug 2023 16:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1691797681; x=1692402481; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=c9zuLDfUrH6i3BDjEh4TTNKW+u6JnXoVJu4E2UgMNlk=; b=CczFAZUYxYqLvHj6K11/jGPbP8qM363QJLhpenPyQd/XjV60fIN4Y6xZgaAMjzmzjN qf7QtVtfcI3m0dGQZqbjdA1yMHRD4gDNeZ/MmYA1wv85gwD5Ce8E4glbAvJMBs8xg4Ez ABgcdIh57C6qAta5AmnmcMdwXgObaLJtL1t+E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691797681; x=1692402481; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c9zuLDfUrH6i3BDjEh4TTNKW+u6JnXoVJu4E2UgMNlk=; b=MkHeRaKsscMi4LSCuUlRzfYjKPl1naN8SduEhxtjxTBZUNqMu5ZtHRmQxSbp/xGxWL VeQWmAxCXIbB877scwU0FgV1PXiDlsHGdSLGIQJM8e3TXD9fpTNEkb60mipnR7TbVY7m Tcj4btn/dJBKrglXHP8JJiLzaYwKJv7aVIenkRrftkgQAshOzuM6vVYDqqKOhd1AI/5Q FcZGo7qKKFSYAGAn4PssQcgTtnR4600ZxB3Z9eHXery1djoguYEPKynZEbLTW38iQidL NpS/O/H51eEtOcvFeSEELCTvCNBZNJ6CFSHkYSU8sx0eg9feAiRAV2SGreVcj/ztzkqu EvTQ== X-Gm-Message-State: AOJu0Yxv2M5atXi3fJGB8tpB7se8MswGAakVI5Nr5wM9EwPEGvtrWa6v WaJDxDWlwsjXmjkH4fTCofAvSb+84IPMG56lkyJ6ig== X-Received: by 2002:a5e:8505:0:b0:791:16ba:d764 with SMTP id i5-20020a5e8505000000b0079116bad764mr3979223ioj.16.1691797680832; Fri, 11 Aug 2023 16:48:00 -0700 (PDT) MIME-Version: 1.0 References: <1691796578-846-1-git-send-email-justin.chen@broadcom.com> <87e4f794-669f-8d43-793c-b8c1878cbd15@broadcom.com> In-Reply-To: <87e4f794-669f-8d43-793c-b8c1878cbd15@broadcom.com> From: Justin Chen Date: Fri, 11 Aug 2023 16:47:49 -0700 Message-ID: Subject: Re: [PATCH] net: phy: broadcom: stub c45 read/write for 54810 To: Florian Fainelli 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 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000d0b9b00602ae5773" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, 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 --000000000000d0b9b00602ae5773 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Aug 11, 2023 at 4:40=E2=80=AFPM 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. Thanks, Justin > -- > Florian --000000000000d0b9b00602ae5773 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQagYJKoZIhvcNAQcCoIIQWzCCEFcCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3BMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYwDgYDVR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