From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0624FC55185 for ; Wed, 22 Apr 2020 19:15:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE2E22075A for ; Wed, 22 Apr 2020 19:15:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgDVTP3 (ORCPT ); Wed, 22 Apr 2020 15:15:29 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:38404 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbgDVTP3 (ORCPT ); Wed, 22 Apr 2020 15:15:29 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 63B70120ED56D; Wed, 22 Apr 2020 12:15:28 -0700 (PDT) Date: Wed, 22 Apr 2020 12:15:27 -0700 (PDT) Message-Id: <20200422.121527.1094957328830405366.davem@davemloft.net> To: michael@walle.cc Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk Subject: Re: [PATCH net-next v3 2/3] net: phy: add Broadcom BCM54140 support From: David Miller In-Reply-To: <20200420182113.22577-2-michael@walle.cc> References: <20200420182113.22577-1-michael@walle.cc> <20200420182113.22577-2-michael@walle.cc> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 22 Apr 2020 12:15:28 -0700 (PDT) Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org From: Michael Walle Date: Mon, 20 Apr 2020 20:21:12 +0200 > The Broadcom BCM54140 is a Quad SGMII/QSGMII Copper/Fiber Gigabit > Ethernet transceiver. > > This also adds support for tunables to set and get downshift and > energy detect auto power-down. > > The PHY has four ports and each port has its own PHY address. > There are per-port registers as well as global registers. > Unfortunately, the global registers can only be accessed by reading > and writing from/to the PHY address of the first port. Further, > there is no way to find out what port you actually are by just > reading the per-port registers. We therefore, have to scan the > bus on the PHY probe to determine the port and thus what address > we need to access the global registers. > > Signed-off-by: Michael Walle Applied.