Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1968469pxb; Mon, 12 Apr 2021 10:47:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsLtdF2KXHD0zEa5AYXArS2oO0Pdr/XDs6bwwucWjjRf3UQaoX7L02/itobw2knmmzKj6w X-Received: by 2002:a63:134c:: with SMTP id 12mr28126028pgt.124.1618249649761; Mon, 12 Apr 2021 10:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618249649; cv=none; d=google.com; s=arc-20160816; b=dko4rrozZgtUE9kmc5so3pwhILhyM6BB7LD2SUlO9bfhQmN1DkUt9rEPi1oe2polgE omg5MQU8k0yTIckwNqWZfDZ5lnQ8kA/CzT4o5nLPuBTxNq5mXoYNAIVxi+42+XnV4V5/ iIWKRFSxWe4kL5PUqmtcYzgsnR0vh4mLBM5lzcWH3LdCGsDxpy9nQ95qsBeZ1iUqvT3c HuMM45Sq0c2XbFwcFQn0y1eNpWJBLL+sAIi+e8n4a4Ceh7eDbUJD27PpCQX8hLU+yLi/ 7JOQhB9wnnVOvCBc5ukZ8+B4r3ORRwyYEgBOFFa81wnretr20p30AR5P29Efu7HmLZpS +OIg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aBipdoM0WOnMes2XJ4aFGaOF7k2CtGVafwhnu2eJO2Q=; b=lRDbreKW2snkw5M4Ql0zeFP4SwZt57giro56xTjtTmSgaw0AR9Lw2DoXn8mYGKaR+9 BYNyOrC01PJ1OkfslVnf3w4LYoGsp5Yw4K/pWePntC/w+4xPMt1fl9SZ1PMJegeqF5TT WQbu3SvrbR6RODHLBvfZF2q4wr+Zi3H/E2MXjdkxFnsn47u69UaQGdzJetykKrndcZ5Q Ka0/KASGtF2a2bQSxq9QtwVyIY2rgyHsqrGamWkbDLt9QBHhnnQWwXdX+uEK2PR9Keoy s54h4l2OS0Chn9EruDRWb58p9vG0RdcHc4ZWbIoevMqx8t7oT2BUJ1a3GG/mHzpGthSg yJfA== 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 lp6si97756pjb.138.2021.04.12.10.47.16; Mon, 12 Apr 2021 10:47:29 -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 S244130AbhDLRpQ (ORCPT + 99 others); Mon, 12 Apr 2021 13:45:16 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46346 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243722AbhDLRpQ (ORCPT ); Mon, 12 Apr 2021 13:45:16 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lW0cI-00GJfe-8V; Mon, 12 Apr 2021 19:44:54 +0200 Date: Mon, 12 Apr 2021 19:44:54 +0200 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Marek =?iso-8859-1?Q?Beh=FAn?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: phy: marvell: fix detection of PHY on Topaz switches Message-ID: References: <20210412121430.20898-1-pali@kernel.org> <20210412165739.27277-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210412165739.27277-1-pali@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 06:57:39PM +0200, Pali Roh?r wrote: > Since commit fee2d546414d ("net: phy: marvell: mv88e6390 temperature > sensor reading"), Linux reports the temperature of Topaz hwmon as > constant -75?C. > > This is because switches from the Topaz family (88E6141 / 88E6341) have > the address of the temperature sensor register different from Peridot. > > This address is instead compatible with 88E1510 PHYs, as was used for > Topaz before the above mentioned commit. > > Create a new mapping table between switch family and PHY ID for families > which don't have a model number. And define PHY IDs for Topaz and Peridot > families. > > Create a new PHY ID and a new PHY driver for Topaz's internal PHY. > The only difference from Peridot's PHY driver is the HWMON probing > method. > > Prior this change Topaz's internal PHY is detected by kernel as: > > PHY [...] driver [Marvell 88E6390] (irq=63) > > And afterwards as: > > PHY [...] driver [Marvell 88E6341 Family] (irq=63) > > Signed-off-by: Pali Roh?r > BugLink: https://github.com/globalscaletechnologies/linux/issues/1 > Fixes: fee2d546414d ("net: phy: marvell: mv88e6390 temperature sensor reading") > Reviewed-by: Marek Beh?n Reviewed-by: Andrew Lunn Andrew