Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1776348pxy; Thu, 29 Apr 2021 14:28:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmQiI0KoRle0TqDC/6if99m63vecvn/OD2jBBFqQRjrHRVHmxL8A3K7nYwjBnECk0RPPuf X-Received: by 2002:aa7:df0b:: with SMTP id c11mr1954690edy.288.1619731699280; Thu, 29 Apr 2021 14:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619731699; cv=none; d=google.com; s=arc-20160816; b=H5iqnV2mmIes0kT6Kxtnb4p3oRDFn8jyPWt4U/rfEtX8svyDKZmXnz3mwXj6ozyyaM v5fbo4dKY784B5n7YKVVXcDubPoSK7GO7DPCmAkNue9CmgFvierOJhfXZybezsCkkFvr xzNLcd1QaGpGGUjMrflFFQuxl2Xmv0aBnW3CwKrDesJkEG3zZtuh5qirfG0elVQ8ZJ24 B64j2VH/P42ULV4YVTC4c0qjAff13atdRY7x7gZ6tzKLain+29ao4XS2ax5BcAmC7ZbL BkSpDBMrW2J5S0ApERVValteOk9lzp8AVfZvuftaMKDCe5JeLfxg4fddEZU9df5Ap3tk yRXg== 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; bh=q4E0kRnDeVa28b6F5svb8yuJ6ec20WGV6wPheXPZa10=; b=xEoCyWStSMmp03ZdEYp9eZi7AWqvtW3eUfrCxalyPzA3hfFDqsIWuf2VGFb43MB1K1 7tv4paJJ8jgoRdJvHW2VNervux+fGsUrrrRDmQjcATNZF9I5CAudP6ED45z3JjMlV38z AX12y2p+IEHYhizX9Ei0FXlH/HIAaP6kM7difEWOnvZWnVN21+8qzCkHp+kSIHGsJfe8 l8yUeP1wocioXzFVYlrAYCeSCdKlvZ17LkJL1ETTqcM39Dyo2zjQ/T4qNG1YUjtT80B2 xkbaLKBNKjHITMC9pasD98cCOQ9lpJqb2xrK51n55IAuBk3SxvejmIN3P1K3/eXGawj+ 7GkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si3775500eds.603.2021.04.29.14.27.54; Thu, 29 Apr 2021 14:28:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237192AbhD2V1P (ORCPT + 99 others); Thu, 29 Apr 2021 17:27:15 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46716 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233293AbhD2V1P (ORCPT ); Thu, 29 Apr 2021 17:27:15 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lcEAg-001iK5-7t; Thu, 29 Apr 2021 23:26:06 +0200 Date: Thu, 29 Apr 2021 23:26:06 +0200 From: Andrew Lunn To: DENG Qingfang Cc: "David S. Miller" , Florian Fainelli , Heiner Kallweit , Jakub Kicinski , Landen Chao , Matthias Brugger , Russell King , Sean Wang , Vivien Didelot , Vladimir Oltean , Rob Herring , Linus Walleij , Greg Kroah-Hartman , Sergio Paracuellos , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-staging@lists.linux.dev, devicetree@vger.kernel.org, netdev@vger.kernel.org, Weijie Gao , Chuanhong Guo , =?iso-8859-1?Q?Ren=E9?= van Dorst , Frank Wunderlich , Thomas Gleixner , Marc Zyngier Subject: Re: [PATCH net-next 1/4] net: phy: add MediaTek PHY driver Message-ID: References: <20210429062130.29403-1-dqfext@gmail.com> <20210429062130.29403-2-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210429062130.29403-2-dqfext@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 02:21:27PM +0800, DENG Qingfang wrote: > Add support for MediaTek PHYs found in MT7530 and MT7531 switches. > The initialization procedure is from the vendor driver, but due to lack > of documentation, the function of some register values remains unknown. > > Signed-off-by: DENG Qingfang Reviewed-by: Andrew Lunn > + > + /* Enable HW auto downshift */ > + phy_modify_paged(phydev, MTK_PHY_PAGE_EXTENDED, 0x14, 0, BIT(4)); As a follow up patch, you could add support for controlling this via a PHY tunable. Andrew