Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 042FAC64EC7 for ; Tue, 31 Jan 2023 10:11:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231429AbjAaKKu (ORCPT ); Tue, 31 Jan 2023 05:10:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230474AbjAaKKW (ORCPT ); Tue, 31 Jan 2023 05:10:22 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 071CC4ED7 for ; Tue, 31 Jan 2023 02:10:20 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id d4-20020a05600c3ac400b003db1de2aef0so10177542wms.2 for ; Tue, 31 Jan 2023 02:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=7CdDpf2HvFlRQpQEy8BTNgrbPxxoMvWAhrZNxv0ihbw=; b=EsczMRY9pPKBmk0Uoa90CyuZBNr/wmbe8DL6DdmUKyhg9uT4jfKKwFFR/eXjWogSyS byyQ2TmNEFYrdw1gNOTj7au/GibHuX4b+usuQwoqP6zJAWmiUzHxrBvlJ+jBw1DIrYsv SNHCXPqB+idCsnYL+8IZqYaSe2HFxMEt+coR3oQHHEMG71Fob8ex995m6rbqdBo1DWBd F0h68k2qzLM3JMl+LoAUaN95pSRayhCLxjsWv+biSmsBzwzWGbZY6UmSungwu9YTmLwU kwrcT8DFMIOeGI0jbMWklUnyGTdbv6mukyK/4883jkLf5dpBeCGLnipNcMAgIa6Dkezd ldcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7CdDpf2HvFlRQpQEy8BTNgrbPxxoMvWAhrZNxv0ihbw=; b=sNDQnxrdfJQ8nTldPZAunoeuIQouINLvJKDmHm0x2BCHqFmqUtD/MLbtux8dpZuaFL RbL5aTBbZrap+drHJ33qnVdHORsQsCYLAIEazGdk9SbwvSv5Pgi/cHQ6mDrj7+IIzx3M 3gRIY3WNQrTTHDo61+xpZBfjaEJDGUDeA3vbU9TEKEVAIeJXAf1GDno1EfLiNMHcxwPb GK5Q6lv6XMY4a9mzNYxorKfhVeAtXx4LAGJhss+wKRCVqEU8q7/FOUbXSK/7JK/l+6h5 SfTbuhCcH0AW8uxT7Nk4qk9+S53LtN7ZQ6e9bEjxBH1kctoJ0Vw8GpO0Bv3MWcVRqW5u 3eLw== X-Gm-Message-State: AFqh2kqTg5WFqd1v+lVwGapyr9tC/PhvVbhkf4ATmoY7oL++85cdr1rX ypEHdjQ48gwykFdhOMAFb6oUhw== X-Google-Smtp-Source: AMrXdXthUNPuxugLmFyr20OmcGU3scVtN6peVaj9WzwNmFTstwv/1P+9kRFJRaBdgp4jtqclwOZUvw== X-Received: by 2002:a05:600c:539b:b0:3da:1bb0:4d78 with SMTP id hg27-20020a05600c539b00b003da1bb04d78mr50940932wmb.14.1675159818451; Tue, 31 Jan 2023 02:10:18 -0800 (PST) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id u9-20020a05600c4d0900b003dc54eef495sm7097981wmp.24.2023.01.31.02.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 02:10:17 -0800 (PST) References: <20230130231402.471493-1-cphealy@gmail.com> User-agent: mu4e 1.8.10; emacs 28.2 From: Jerome Brunet To: cphealy@gmail.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, neil.armstrong@linaro.org, khilman@baylibre.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, jeremy.wang@amlogic.com Cc: Chris Healy Subject: Re: [PATCH v3] net: phy: meson-gxl: Add generic dummy stubs for MMD register access Date: Tue, 31 Jan 2023 11:05:19 +0100 In-reply-to: <20230130231402.471493-1-cphealy@gmail.com> Message-ID: <1jbkmf2ewn.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 30 Jan 2023 at 15:14, Chris Healy wrote: > From: Chris Healy > > The Meson G12A Internal PHY does not support standard IEEE MMD extended > register access, therefore add generic dummy stubs to fail the read and > write MMD calls. This is necessary to prevent the core PHY code from > erroneously believing that EEE is supported by this PHY even though this > PHY does not support EEE, as MMD register access returns all FFFFs. This is definitely something that should be done, Thx ! > > Fixes: 5c3407abb338 ("net: phy: meson-gxl: add g12a support") This commit does not seems appropriate, especially since only the GXL ops are changed, not the g12a variant. This brings a 2nd point, any reason for not changing the g12 variant ? I'm fairly confident it does support EEE either. > Reviewed-by: Heiner Kallweit > Signed-off-by: Chris Healy > > --- > > Changes in v3: > * Add reviewed-by > Change in v2: > * Add fixes tag > > drivers/net/phy/meson-gxl.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c > index c49062ad72c6..5e41658b1e2f 100644 > --- a/drivers/net/phy/meson-gxl.c > +++ b/drivers/net/phy/meson-gxl.c > @@ -271,6 +271,8 @@ static struct phy_driver meson_gxl_phy[] = { > .handle_interrupt = meson_gxl_handle_interrupt, > .suspend = genphy_suspend, > .resume = genphy_resume, > + .read_mmd = genphy_read_mmd_unsupported, > + .write_mmd = genphy_write_mmd_unsupported, > }, > };