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=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham 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 94288C433B4 for ; Mon, 19 Apr 2021 12:05:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C36261245 for ; Mon, 19 Apr 2021 12:05:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238882AbhDSMFx (ORCPT ); Mon, 19 Apr 2021 08:05:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:54866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238738AbhDSMFv (ORCPT ); Mon, 19 Apr 2021 08:05:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 74B6C61166; Mon, 19 Apr 2021 12:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618833920; bh=+b1WKx4MukOzkhHiwYuqIuZtx0jeGf2zDOKr1YWDxIA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G4SgE1AZK6IasuSx4M9pq1uJokcN0Lt++zhLxb7Tei1kgkEpSJjWiK5xBcziCNjEm 5hpa+nZsHnLlNUokod2lzfg5FnOyAA+KdW85euI/xqi44pjf8iFDeU9SWrH8veO8QF 3UD9O6qbBExFqqourm70Zoj/8vhLaLnD2LAymczs= Date: Mon, 19 Apr 2021 14:05:18 +0200 From: Greg KH To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: stable@vger.kernel.org, andrew@lunn.ch, davem@davemloft.net, kabel@kernel.org Subject: Re: [PATCH] net: phy: marvell: fix detection of PHY on Topaz switches Message-ID: References: <16187482432842@kroah.com> <161874858144103@kroah.com> <20210418131344.21024-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: <20210418131344.21024-1-pali@kernel.org> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Sun, Apr 18, 2021 at 03:13:44PM +0200, Pali Rohár wrote: > commit 1fe976d308acb6374c899a4ee8025a0a016e453e upstream. > > 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 > Signed-off-by: David S. Miller > [pali: Backported to 5.4 version] > --- > This patch is backported to 5.4 version. Tested on Turris Mox with Topaz switch. What about a 5.10 version? thanks, greg k-h