Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5619802ybl; Tue, 10 Dec 2019 08:51:03 -0800 (PST) X-Google-Smtp-Source: APXvYqymeONJkBVdo36CidyH/EIRMVkuxIbG/XYblJ+TrjIMDWe0DZpvcm6nF83gzoGP5xJLhUCi X-Received: by 2002:a9d:624e:: with SMTP id i14mr26681107otk.371.1575996663392; Tue, 10 Dec 2019 08:51:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575996663; cv=none; d=google.com; s=arc-20160816; b=WAsxeWifgk3FSKFaXseHMjJ1RLSYJe/Ozg0SWkKqVQj8Ng6dnnSUBWYyC8C2T/Xy5U n0BvY5r76ZLRtqV+nqbluBuJMdybGdDL8lDK7pbr2aMBoj0SPC7R1vffhIsx62gI0SPe nAidJZtGoLksKyGM0lFd9iS2qmohLUGlbuTFInPXeT2f2NSJN0/WmMeU+1Cz9hM3wE5t LOk08SGwQ0pV8rGZoJiWCeYiFxhbERbhN9PQnEenYSXLrhqIsYIwL06wnKCpDFit3avM USEBb/cXCGASz1vzXSC7ixXt8uaYMCRelj5MsInL2uYrFgzcyYN4rwUvCCTCW1godfhg g4gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iOz/6/0r92zuFKGcrFy7F2rvroSXU33rpP0w5fe4E3U=; b=vn+EtS3S3azgB/fMQefrjNXz9w4fTuHbLvs8A+4M4JlsRAHo08K0P64uQBZmRz8QT6 0Z65zgewYy+vwoKAlWt6wHqsGLGz6hlu+K6MiF5rlIOYNam/raNwZzbcVZen//p3OhoR ZbCETcnxil729h5GWL/N2I9CLowMuTcxegt/gDDJmtgXt9vHFwE8lMQDHiC7yMZfDVM7 shNALQkoGdYygEK+kvstj47XJzVzt+jOC+3LZTisWQ3Wx4wUcUXljAmNGDiBhDOQW+6e kCzFxYtMkZTjfCX4h5cuNrfVU2oKtM87QtDOQGSjLsNr5zfAJJMOtWPEnhCWcLedE19J SghQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=IIdANMqM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d27si2423158otk.206.2019.12.10.08.50.49; Tue, 10 Dec 2019 08:51:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=IIdANMqM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727653AbfLJQtA (ORCPT + 99 others); Tue, 10 Dec 2019 11:49:00 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:45122 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727527AbfLJQtA (ORCPT ); Tue, 10 Dec 2019 11:49:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iOz/6/0r92zuFKGcrFy7F2rvroSXU33rpP0w5fe4E3U=; b=IIdANMqMHtcM+54gM190UsDtPk SUHzsAqkxb4XGBvxmuA1c515zloQfMWEiXz+Oj3/kwS8lswkNGoCf6E1PKE7C/RqA1LItg1GwPRMc lff4LzwcffjJCBLQcQUCjNA+XiU05arpHnchX8RWm1i6ANWPAspUmaGSYpdmNIGBx4JA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1ieigx-0005Pm-P1; Tue, 10 Dec 2019 17:48:55 +0100 Date: Tue, 10 Dec 2019 17:48:55 +0100 From: Andrew Lunn To: Landen Chao Cc: f.fainelli@gmail.com, vivien.didelot@savoirfairelinux.com, matthias.bgg@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, davem@davemloft.net, sean.wang@mediatek.com, opensource@vdorst.com, frank-w@public-files.de Subject: Re: [PATCH net-next 4/6] net: dsa: mt7530: Add the support of MT7531 switch Message-ID: <20191210164855.GE27714@lunn.ch> References: <6d608dd024edc90b09ba4fe35417b693847f973c.1575914275.git.landen.chao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6d608dd024edc90b09ba4fe35417b693847f973c.1575914275.git.landen.chao@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +static int mt7531_setup(struct dsa_switch *ds) > +{ > + /* Enable PHY power, since phy_device has not yet been created > + * provided for phy_[read,write]_mmd_indirect is called, we provide > + * our own mt7531_ind_mmd_phy_[read,write] to complete this > + * function. > + */ > + val = mt7531_ind_mmd_phy_read(priv, 0, PHY_DEV1F, > + MT7531_PHY_DEV1F_REG_403); > + val |= MT7531_PHY_EN_BYPASS_MODE; > + val &= ~MT7531_PHY_POWER_OFF; > + mt7531_ind_mmd_phy_write(priv, 0, PHY_DEV1F, > + MT7531_PHY_DEV1F_REG_403, val); > + Is this power to all the PHYs? Or just one? Andrew