Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp304440rdb; Thu, 1 Feb 2024 08:59:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPCUss5jfg0yiOoqIMk2gQRIQpgcG9t/YVVYG0OG1PXqBg/nN4jWckdtI7MvDgflqBHzu0 X-Received: by 2002:a17:903:32d1:b0:1d9:327b:4bce with SMTP id i17-20020a17090332d100b001d9327b4bcemr5067692plr.27.1706806781027; Thu, 01 Feb 2024 08:59:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706806781; cv=pass; d=google.com; s=arc-20160816; b=lJ7qE5qkHnGG+Ms8EhKE89/McsiPwhAyFo7jJS73QSTnXhnMB8ywcQZU+doRyiWvqb GShU4j9q4UIzk/8x0Tb0wWUok9+hIjWFr/yW0Z5WyjcULKgZWpbsaQ97z94G+4PBnjby 3xjHnJHgs8EtfMqJ1zVet9SCcXvFzvkeveQnSvYsPcsyqOw2KKfbPYViqfrJwdvvoxAU iMAF53IGJ44x3ny0WuYmy4CUxLn4nJZTkK7k7ZL4zKEziVYCb9MfYVVb6GBuaH9P5lCY PPhxHRSrYA4ZMsQNLlaj/hv8BdrVLg+PMRdkCAjFVNQsMlILCPYPa8AwP2crBHow4NZG Eeig== 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=WRONz3zs2Ye8kp8mlNb2mkGa+oDmC9gtz59sMXR+/Aw=; fh=1aGqtQxXzP+2LLcf5P5HkMsgbSvva30hYdnXNkVvoPg=; b=jwyyz7DryoHGZZn09KchxGQaKSSYGMsV4GA+IE/BrkHHj7atVMnsoqFi1PbGRPD25B FYG/Az2CL1MtVb3tynhWjKFtIz9fnLliIo+QZJewTcRdRTwqnhA7uC/8EuqF4KZBgHl2 vZ6qhLdfQPT5W9RAhx4ZlDxih7z9PJukk8IxV1hGMH/H0aOJHYhzt7TgMLvYPiNmWb2c 3FG+03PKUluUCUdjTxeU1uQrlfiiKcCHpGnIJhfS6XjqM9I2VobCtOhv1z2UGqBtjleU xbz5MzmPkg86mBf9AukChHWdUltK4apy4fjdpa4ys8ZC4BV5rj8ODysiqpvX977ZQjFZ TbuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="memqZ//+"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCUl69lpzMPT/Rs6+WkCfN/TiFxVUKS5iGBbqoTG4v9Lr9zEp+0jqHANFWws+mfGfRm1xmwM8/EFPX1Ftis4agc+FIIjNxE5+cE3ua0/NQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l20-20020a170902d05400b001d94e75cd40si60914pll.442.2024.02.01.08.59.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:59:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="memqZ//+"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 79D36295974 for ; Thu, 1 Feb 2024 16:56:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2011A1F60F; Thu, 1 Feb 2024 16:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="memqZ//+" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72271468C; Thu, 1 Feb 2024 16:56:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706806575; cv=none; b=DkDtSzLCyJrO+De1cpWOhwW7fKiDZ7l6b3vQ28PXvuf9SY3Umc5+C/WqAGwmXVhs/ZJhjfZdq/ClSPRbDp/ewJg+IxMnl4gnYDASqTZhHihyXClAYFXIoOmjnoWNPvX3BUYc0vTmGP9qCKIFDnltKOXcjxgj3fDDCRTaugETpRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706806575; c=relaxed/simple; bh=z3Remv4QfHt/lpAm+q6drL+AsGVbzUcUothMsaLNhTM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C3gadKLrRiw0yQXgt0m4m1iVFdrfXtxwvf8/KEwVFkdKkGGZF0vvDjPFU7igDXTEVx8FSMuPhGal1f6cFKRpKXp+B0ATRKdqgMfdmCmcjxpNSFlbQYmvSwRu2DD+TwpcJBdmzm1vbG3iDIAF4LvIpWiwiRxgG3MTtPG6DMHh2qw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=memqZ//+; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33b0e5d1e89so811062f8f.0; Thu, 01 Feb 2024 08:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706806571; x=1707411371; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WRONz3zs2Ye8kp8mlNb2mkGa+oDmC9gtz59sMXR+/Aw=; b=memqZ//+/GIPJydCbOq8OdYi+Lksvq5kWAaDqpiCbeLyvFCd86JcoawneAxshEg3Y4 XPJW44tqBm3ILm4Vp6s2lkGyIv9bkS9LvleXTbE+rlPB7CPZARYcYPKHJXiFKKzWSvBZ BAcbj1DkAcoyrUozri9BcKmcNnzG9XZoCHTfHHhswaVr2fF2ss38oCiO8OvN+HBoj8JA buoxLhakKMP6z8bD84J/qoHEDYTc6zjU5pUW0V7e05ZDZvIqnAyvcyBxTutjZpjyl4jr s8g6M6w2eOLyeB3PU5LSAKNoh/KVdLgZvhR66sYJkknNBrvcxFqekbY4fgzRbEhcfaUm 6Xug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706806571; x=1707411371; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WRONz3zs2Ye8kp8mlNb2mkGa+oDmC9gtz59sMXR+/Aw=; b=lXxPj+RRrZqfCNnxqgdjJH18AMjEuirlH+jgEUVENYCvi6Gd+LZrSk0q6iTJWxwkz0 IcRBe/v/w7miCEzARvyPQDfJalSBEOikvPz55LwQZ6mSDE4/niECLxfJQAA2lMPPzS8f WzxaBp/nt85zJXxFHwkWxhs/1E+/1fQ/cz9bnWtcIdQzEkgtAUJr7v07bGUdQnIScUjb lP12HWba02yLrZeA+Q9/fCoQaLhE2ktqVUwY1V/inT11UqLiqaM2ekoyyeMlmXXPcugP Cw+jZu+WIE+sxt5HYcXLUSS58TOqNW98HBueL8API9THli0ZlfA8u+eE161xMffiBVVd 94HQ== X-Gm-Message-State: AOJu0YxnGTKuz32+QmuSKk5OHETQVqRrmukEHlyfiw9J4m0t3JIR4W5e Ieq+AjPxDQdfvW+ZesPJGjwT/DAoVA0bD2piKNyZjXu1F+kHpQvY X-Received: by 2002:a5d:64e2:0:b0:33b:17c5:f25a with SMTP id g2-20020a5d64e2000000b0033b17c5f25amr1723832wri.64.1706806571598; Thu, 01 Feb 2024 08:56:11 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVeIhYc1bdHcoOq49k918ll9ufcHPwUS1uMRPCBVPg6NM0QHqmbl/8a0+Kc5D+nxToRxKb/os+NbNRaE3FUHYWb/AeDqmke6MYZm6AArQbY7vrqUj7uLw3vNSWx6DFnLUgeNkGzW2Ao9uLsQnWudVBvld+j30BEGZ2MuXDbFtxUTqRjKHi9RC704VM2/KdUOy3ZupHBL3YzIwvpQgO1f13eeixA8M0n3RAPQuyEqNV93YVjbDzeGvziclROkPQIo5M09LswlYi3yzOJnQ6sFvZYxGjG9mRMaJyNVS4S2wxF2fYiz521256/m6G9gEcqYIpHPBF3IFZbGsNq99Lz0nVA2S+xk7zuOjBL6gmHAglKGZ15hyiFj3FAJm9i9nQrXIlz2g== Received: from debian ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id ba15-20020a0560001c0f00b0033ae54cdd97sm14380311wrb.100.2024.02.01.08.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:56:11 -0800 (PST) Date: Thu, 1 Feb 2024 17:56:09 +0100 From: Dimitri Fedrau To: Andrew Lunn Cc: Guenter Roeck , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jean Delvare , 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: <20240201165609.GE48964@debian> References: <20240122212848.3645785-1-dima.fedrau@gmail.com> <20240122212848.3645785-9-dima.fedrau@gmail.com> <88a60be9-083b-4618-845c-6983bcad3540@roeck-us.net> <20240201162349.GC48964@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: Am Thu, Feb 01, 2024 at 05:47:21PM +0100 schrieb Andrew Lunn: > On Thu, Feb 01, 2024 at 05:23:49PM +0100, Dimitri Fedrau wrote: > > Am Thu, Feb 01, 2024 at 05:39:25AM -0800 schrieb Guenter Roeck: > > > On 2/1/24 05:27, Andrew Lunn wrote: > > > > > > +#ifdef CONFIG_HWMON > > > > > > > > > > HWMON is tristate, so this may be problematic if the driver is built > > > > > into the kernel and hwmon is built as module. > > > > > > > > There should be Kconfig in addition to this, e.g. > > > > > > > > config MAXLINEAR_GPHY > > > > tristate "Maxlinear Ethernet PHYs" > > > > select POLYNOMIAL if HWMON > > > > depends on HWMON || HWMON=n > > > > help > > > > Support for the Maxlinear GPY115, GPY211, GPY212, GPY215, > > > > GPY241, GPY245 PHYs. > > > > > > > > So its forced to being built in, or not built at all. > > > > > > > > > > Even then it should be "#if IS_ENABLED(HWMON)" in the code. > > > > > > > > If using "#if IS_ENABLED(HWMON)" do I have to add the dependency in > > the KConfig file ? When looking at other PHY drivers, they do. > > Please follow what other drivers do. Its easy to break the build, > resulting is undefined symbols. What we have now works. Sure.