Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4495885rwd; Sun, 11 Jun 2023 08:37:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BYZCy1LEfXZoHHwPip/r+0P8u37gorB8Ri+LC964z2c93paLsR3htRivtRzvAPlpXfI3Z X-Received: by 2002:a17:90b:34c:b0:255:614a:7fae with SMTP id fh12-20020a17090b034c00b00255614a7faemr6430554pjb.20.1686497879675; Sun, 11 Jun 2023 08:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686497879; cv=none; d=google.com; s=arc-20160816; b=uRLjaPL31WDCuVKpDQgYLW3GqMpC99L+SM71JwFsTjti6BicSFn6zk94XKsPaICQYB joNOV09vzRsDtxDh+6t2+SUMxfXmclfVPwLzOHw45UBM5A7RGzMZgxke6NGTW0P/0DI1 3QFDRqLDThi7Jfsqm46sgAdlGDoSOuyGeCVknbsU1L6Bt/dDMkBvnlsoT0uDiH/cS0wq c0sniRuLq7yH6AXgCG2rvyRSENnrI+XsRTcgcTno42zPUrqnmmkEdq9YzvlRbDB/7Wfq P05lC+MwRNglROMH5Y0LFlrdX7gTT/TSh9EsuIgO2MRhoHTWpyT2b0tQRwxRgO5q4f17 69Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EfX/L4Fy1RcnPk5WiE18CBTlWc+r/Yn54ffIp8up1lQ=; b=yMpQLBuK1k6sy8WPJqmL4D1avXFTzr2UozqWBE/0HJW4kMqMeaszjoYquIa02zkM1j a4gjIYIJ0tD6WfkM8FiFuM3voUhbcIl3np/rRJvXkruwEDHcSbeuSPaNoxKomS057Wgi dUJ1mNb8O7qTYIYsb7nV0u0OxA6cWTUVn1dZbmHka3N53m/zUfENVBK89GBod3iRGJa3 ab0x4gKwiUO2hoSQl4LtkTwkdBBMptsk8/1p65wOrcptYp/iqF1QsywkavJVxJeSgdMd CKFpgEf66aoWLuZ9G5ruDXg2p0ZdsbNuapnDSpikkkGtYHGsTDIFrl485QAMU6WOrudB sZlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=0+2m53I0; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oj3-20020a17090b4d8300b0025b8a96a363si2240694pjb.90.2023.06.11.08.37.47; Sun, 11 Jun 2023 08:37:59 -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=@lunn.ch header.s=20171124 header.b=0+2m53I0; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229993AbjFKPRQ (ORCPT + 99 others); Sun, 11 Jun 2023 11:17:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjFKPRO (ORCPT ); Sun, 11 Jun 2023 11:17:14 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 838E219A; Sun, 11 Jun 2023 08:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=EfX/L4Fy1RcnPk5WiE18CBTlWc+r/Yn54ffIp8up1lQ=; b=0+2m53I0Dpa9UbAQ3ro08HdbyJ w3wP+kv4elCcvsFslP1aswyo38nCIkUiozO71TcMnbDoIUt5OTtFRmPTALXQymVT3+bJLIAXH3jhr b0HaduN0C++CdXQWY1bUQ+5W6K2WbaNNkF3ACYWDoHU7OQ6sRT0rHDNHaPOrX+jeJFTo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q8MoK-00FVig-Js; Sun, 11 Jun 2023 17:16:56 +0200 Date: Sun, 11 Jun 2023 17:16:56 +0200 From: Andrew Lunn To: Daniel Golle Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , Matthias Brugger , SkyLake Huang , Qingfang Deng , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Russell King , Heiner Kallweit Subject: Re: [PATCH net-next v5] net: phy: add driver for MediaTek SoC built-in GE PHYs Message-ID: <3c1aee38-3e8d-48ea-955b-995c9ec83cfb@lunn.ch> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, T_SCC_BODY_TEXT_LINE 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 On Sun, Jun 11, 2023 at 12:48:10AM +0100, Daniel Golle wrote: > Some of MediaTek's Filogic SoCs come with built-in gigabit Ethernet > PHYs which require calibration data from the SoC's efuse. > Despite the similar design the driver doesn't share any code with the > existing mediatek-ge.c. > Add support for such PHYs by introducing a new driver with basic > support for MediaTek SoCs MT7981 and MT7988 built-in 1GE PHYs. > > Signed-off-by: Daniel Golle Reviewed-by: Andrew Lunn > +static void mt798x_phy_eee(struct phy_device *phydev) > +{ > + phy_modify_mmd(phydev, MDIO_MMD_VEND1, > + MTK_PHY_RG_LPI_PCS_DSP_CTRL_REG120, > + MTK_PHY_LPI_SIG_EN_LO_THRESH1000_MASK | > + MTK_PHY_LPI_SIG_EN_HI_THRESH1000_MASK, > + FIELD_PREP(MTK_PHY_LPI_SIG_EN_LO_THRESH1000_MASK, 0x0) | > + FIELD_PREP(MTK_PHY_LPI_SIG_EN_HI_THRESH1000_MASK, 0x14)); Does this PHY have SmartEEE? Where the PHY itself does EEE without the help of the MAC? At some point we would like to properly support that, but first we need to sort out the mess MAC/PHY EEE is in. Andrew