Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp165430rdb; Thu, 1 Feb 2024 05:23:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdrYG5tMDAnjU+yEpFiIO2gIoMgk59KR9DMPfoIAuu9CGjAodfCS3T2tH1Eq6uIHhNZfG7 X-Received: by 2002:a17:906:f9d6:b0:a36:47d8:f929 with SMTP id lj22-20020a170906f9d600b00a3647d8f929mr3364480ejb.65.1706793831485; Thu, 01 Feb 2024 05:23:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706793831; cv=pass; d=google.com; s=arc-20160816; b=ozH1b1lpHBEQK9EY+S4cxMinGIsJidQTWixQ6xAml01wSRFLw4HFdnzMOf+uU+3xfO Ve5hev1JtXtrXHW5AgUAtsDLVezsqWqMSY6CcjGJCoiTLSzfiKLqgv4vQEu7V2ZFcrzo V46glVlk7YNpn1/j6XDk4YPA/RRrqb15avFDUuYjm80AisuEwC37IpGCdjh1/yCHQlf9 hnoZbKbcAC3tIXqaVAVtnOC9W4PbWaDwCmz+Kgqb1H7nWo75FiwUawD2ipKaRABymE8N g10zFFUSX2GWUxMO3IWh8P2dtB6BWHz5ygqI2M3MwXFUzWLJ6WZ1Fi3Bl8qH0b2XQ5DB TLvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kLRyFqez982lPckWXQj/NwGeBDgZ8+2imJpiNJYpFj0=; fh=EMmcjVuKJNEVM1x3p+z23ibjXRENbNAmUBk4mGrSrng=; b=nF+QReIgjIaeKhfc8LJ/NPmZE8OUTCAeJKFLI/kPfJnxrjpO0+U0SiisqNKVG4NDmD 5c9L3+6u28Jcnl1AT2O8DmD3XPtuz57mss/3n+06EJAHyLThH6FbPEcJlGbjPogquNZc s8mEDPGXXHDDBQD3UEk2eiPWVvQUjGXsuQa2lbjfpG3EgVpoPFSNoQ7IVUId341Gr1/x jT0fRGcYtaJK2czax9jEqq+TjKxE5HVwPkFg8+h1XYEnmiCthrRcT60Xg9FBpZabekQA NMNtEu62/MMQTf3zqkF6WbzV3yMaPVEidlXY9buryzzOhAMmwNOTESodqxlrqCQjnSpz eUrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=y63Gy8Rz; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-48227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=1; AJvYcCUJA4uUs1yxk0kVtjvCiYHMBF3uwGnnlf+m643H6G0+sBQhjAtiIBmHsDFmHMoxNJIlA+MNLsOnsaPKk7m1/Sm1wAQrTemvmtmYwe7gaA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b1-20020a1709063ca100b00a35e4d44001si3566187ejh.280.2024.02.01.05.23.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 05:23:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=y63Gy8Rz; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-48227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3B7BA1F2244E for ; Thu, 1 Feb 2024 13:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3832D5CDD6; Thu, 1 Feb 2024 13:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="y63Gy8Rz" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE9925CDC4; Thu, 1 Feb 2024 13:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706793808; cv=none; b=sj4pGi8AVh+DP6cKmOJcEbrMH2w8jMkQfGWMv6qlLD5OC4X6waJS1Xy+ZF6B8JDIL90t7tLS8pvAozFs4g6zBivVbmrSIimzoIU6xvNLt1JaB+R2f/R47FVCdnhle5GqYbSNeOSheMKF1ALFnryFC/9p3SgWbe8hXxDvkdRscAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706793808; c=relaxed/simple; bh=3+x2EsXavQCIPebwcAOQUOLpFvb0FfdGkO6b1Hxf+2g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i9A7CaKn4Qp966tEpgWP9yoBQ+I9sKX4UOpoc21nnmZotxAggB9QqHmK4HcC4/4S7zbB2yNdfp/65khpwMTa+q24NgV5RTG8TITkL+h0gSHr4oNlN28JQyn5/CcVVFiq8a2qUpC/tVYKOq1c9buNm5sGgSRR66sW9u/2J5a48nI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=y63Gy8Rz; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=kLRyFqez982lPckWXQj/NwGeBDgZ8+2imJpiNJYpFj0=; b=y63Gy8RzuZglUXnHCGw1Fa7aPE bY7p/1wK+aQ/foxrGxt7VbFyrAzwx2DgrZQNP/6k+FkWuJ7Ox0A+jNRp7e4mN3h1RWT+a6c57CfoS xTU9YUN9hq02TjPRgzqwf5AAKaI4MvW5C9YHTmTFEVcgtlbYNSpMd+EOIhlVPtlxbLZw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rVX2B-006fzU-K6; Thu, 01 Feb 2024 14:23:15 +0100 Date: Thu, 1 Feb 2024 14:23:15 +0100 From: Andrew Lunn To: Dimitri Fedrau Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jean Delvare , Guenter Roeck , Stefan Eichenberger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH v5 net-next 08/13] net: phy: marvell-88q2xxx: add support for temperature sensor Message-ID: References: <20240122212848.3645785-1-dima.fedrau@gmail.com> <20240122212848.3645785-9-dima.fedrau@gmail.com> <65071184-428b-4850-9e0c-baaa73513c6d@lunn.ch> <20240201071137.GA41347@debian> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201071137.GA41347@debian> > Anyway it's wrong. I couldn't find a good solution to use the temperature > interrupt. Will have a look into this, and probably figuring out how to > do so. But it won't be part of this patch series. I don't know of any PHY driver you can follow, those that do have a temperature sensor just report the temperature and don't do anything in addition. You might need to look at thermal zones, and indicate there has been a thermal trip point. That could then be used by the thermal subsystem to increase cooling via a fan, etc. In theory, you could also make the PHY active to thermal pressure, by forcing the link to renegotiate to a lower link speed. If you decide to go this route, please try to make is generic to any PHY. But its going to be quite a disruptive thing, the link will be lost of a little over a second... Andrew