Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6055682rdb; Thu, 14 Dec 2023 07:15:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1soABFlIcomfvwjzhHz0Ppt5KLLJMJOkEp02/6s13g5wZC+wB0Y2F/g9k1s5ggO2GlCw3 X-Received: by 2002:a17:903:22c7:b0:1cf:e9b5:90ee with SMTP id y7-20020a17090322c700b001cfe9b590eemr14000902plg.24.1702566955538; Thu, 14 Dec 2023 07:15:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702566955; cv=none; d=google.com; s=arc-20160816; b=jY/soYs5IGEJ04NAKgbwauKoCP37GWRQIc3P+J4tRyMQRpaUqA8gtX5uRAK4c/wkU9 mXffHEbFoa+/j8pnRHDADiN88+C4cMbxkxCaQCh+uS/B11cSbnIm/E9p9lT3kt/6PVWh 5+IPcPuA0V78h4jNCKZtKaF6a14TI0QIn/42ESScAEGmKJRTQL7jUvgSedPQdgQJjtt+ 7ONP/6M6n02F1x+vyKW962duBiAsoU0mmLWgsxvZupY0181z61iezV/whIpotlVNd01X +TSBzpbUOiq2YvkanrOORWAMvZ9YHHGbYcq8XBsfG7wuorHYNYX8KZTEjrQmJ9OyIP5+ yOEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=7fgmF837E/uNu2Txy17or72EnElLYhEPnc49U6CGCsg=; fh=waOIP2gjjMzk0YLKSM7cF/UKvETUEckxXpqFTSdUL9s=; b=oNS+wYut3u4EFIamFmnNc9GmYkMy27SMUmzXoxS80LtpUues+tkD3RmoEwru0jON/j JNUMgVJHIWmu9KKUkwxuNMsdAM0x/jshmXo9AQsg3p7vULQ5G82ed/tgR931U0WRAu+U yOe0f3ctHgVyB8PxWlfSFBdaeZhvWlnj2c8Fojahm3Kb4DZLpG/EVcT/VpV5k/Fa05Kf Pug3T3HbUPflpaHhb0Bn4SKnk2FcLd8NVBO0SwGubkMzWIt1Nih870BfnPm00e41ycHD qrC0uN0wEHQ5aknUrdHfBtKss9QpxuU0bjyUb8qwdG3vQW4VMS+MvRHhHroKEhpG4ZTg cMHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Rc1Evnrs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id t9-20020a170902e84900b001d09711b7b7si11575652plg.334.2023.12.14.07.15.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 07:15:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Rc1Evnrs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D0C7F8068599; Thu, 14 Dec 2023 07:15:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbjLNPO7 (ORCPT + 99 others); Thu, 14 Dec 2023 10:14:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbjLNPOm (ORCPT ); Thu, 14 Dec 2023 10:14:42 -0500 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58F0F170E; Thu, 14 Dec 2023 07:14:22 -0800 (PST) Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6da2e360861so299520a34.1; Thu, 14 Dec 2023 07:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702566861; x=1703171661; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=7fgmF837E/uNu2Txy17or72EnElLYhEPnc49U6CGCsg=; b=Rc1EvnrshddnAYJJWUo0EbayWilZNx9bTyimLQatlKikEghuJYm4cxtxSxVTiIogh6 SzpF9UA6BYXPAGmcfsiyp1VhfF5wzioQ+Yy6qMjLgwxxKt8KCFSi1sCbpnGPHGMY2sQh Vbv8PXMBqr84OsDlyH6QPsApGN46cF9GfmJpMjyXkOlfNp+KOS1Zia3ForAv1Pw98yxD wF0dIsuM+yyQ68YObDoaJdxDVfvFbq+4q2CN16CXDciIztHYuCpxmpLQIAMa0C+uMkno a8Be1hPHH5QrMrwzmhYURKtlAatxw0C9n7dsA8VvGIo8ssfE0Qm/2pO7O+BKiBZamj1o 4ywg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702566861; x=1703171661; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7fgmF837E/uNu2Txy17or72EnElLYhEPnc49U6CGCsg=; b=vfqKul2T6XAr+p3sVb41Dz/oDZujuTGRUOLu7/fmOwRhgmE+T5J3blCdp1rq4g2WLr G9RoY3BQiaIef1G5RtfNTHaJ4sSF1hMZGyq1wAZzhBVvbTN3dcva4JdyceiXMSvGKUjf z8kIoPWq6k8KFp6q1Ntyl1WE39L82+UPtGZezlfbUD2iJiseI7euH1zrgJo6MxS4lt8/ d5bVzIhGcEhf68/3yz3DfK+dNgt0Elkelde3AlqwZZ4ie7+aGfb0qjGfCAmG/tlmgj5G jXgV8oF4YhcRqwvHWHK3UG3qTeJ9y5ZcaQ4r34mz3Sasz8iHSTr/xfOHOGE1ztwzVwhJ zFQw== X-Gm-Message-State: AOJu0Yx1gymyRML/zGkwQJ9oLoDzb8WVrcHYnUH+nTum3DykH0Ojqnq2 50cF9NwfvjSVW4Bo7iCWNcA= X-Received: by 2002:a05:6808:130c:b0:3b8:6ae0:8aef with SMTP id y12-20020a056808130c00b003b86ae08aefmr5333292oiv.9.1702566861562; Thu, 14 Dec 2023 07:14:21 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id v21-20020a4a3155000000b0059069b4442esm3508510oog.5.2023.12.14.07.14.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Dec 2023 07:14:20 -0800 (PST) Sender: Guenter Roeck Message-ID: <937db277-1d3d-459a-a597-475bdc0229fe@roeck-us.net> Date: Thu, 14 Dec 2023 07:14:18 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] hwmon: max31827: Compatible for adaq4224 Content-Language: en-US To: Daniel Matyas Cc: Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20231214143648.175336-1-daniel.matyas@analog.com> <20231214143648.175336-3-daniel.matyas@analog.com> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+Apm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PTqQcIaG/edgKVTUjITfA7AJMKLQHgp04Vylb+G6jocnQQX JqvvP09whbqrABEBAAHCwWUEGAECAA8CGwwFAlVcpi8FCRmg08MACgkQyx8mb86fmYHNRQ/+ J0OZsBYP4leJvQF8lx9zif+v4ZY/6C9tTcUv/KNAE5leyrD4IKbnV4PnbrVhjq861it/zRQW cFpWQszZyWRwNPWUUz7ejmm9lAwPbr8xWT4qMSA43VKQ7ZCeTQJ4TC8kjqtcbw41SjkjrcTG wF52zFO4bOWyovVAPncvV9eGA/vtnd3xEZXQiSt91kBSqK28yjxAqK/c3G6i7IX2rg6pzgqh hiH3/1qM2M/LSuqAv0Rwrt/k+pZXE+B4Ud42hwmMr0TfhNxG+X7YKvjKC+SjPjqp0CaztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20231214143648.175336-3-daniel.matyas@analog.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Dec 2023 07:15:17 -0800 (PST) On 12/14/23 06:36, Daniel Matyas wrote: > Compatible string "adi,adaq4224_temp" is accepted in device tree. > When this string is seen in the device tree, the name of the device > changes to "adaq4224_temp" and the default configuration of max31827 > is loaded. > > This modification was requested by the costumer, so that whenever one customer > analyzes the available devices, one can know for sure, that max31827 is > part of the adaq4224. > There is (officially) no such chip. I have no idea if this is a new chip or something else, and I have no idea how it relates to max31827. Either case, the "_temp" in the chip name doesn't make sense to me. > Signed-off-by: Daniel Matyas > --- > drivers/hwmon/max31827.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c > index db93492193bd..c3500a5b2c29 100644 > --- a/drivers/hwmon/max31827.c > +++ b/drivers/hwmon/max31827.c > @@ -48,7 +48,7 @@ > #define MAX31827_M_DGR_TO_16_BIT(x) (((x) << 4) / 1000) > #define MAX31827_DEVICE_ENABLE(x) ((x) ? 0xA : 0x0) > > -enum chips { max31827 = 1, max31828, max31829 }; > +enum chips { max31827 = 1, max31828, max31829, adaq4224_temp }; > > enum max31827_cnv { > MAX31827_CNV_1_DIV_64_HZ = 1, > @@ -592,6 +592,7 @@ static const struct i2c_device_id max31827_i2c_ids[] = { > { "max31827", max31827 }, > { "max31828", max31828 }, > { "max31829", max31829 }, > + { "adaq4224_temp", adaq4224_temp }, > { } > }; > MODULE_DEVICE_TABLE(i2c, max31827_i2c_ids); > @@ -620,6 +621,9 @@ static int max31827_init_client(struct max31827_state *st) > res |= FIELD_PREP(MAX31827_CONFIGURATION_TIMEOUT_MASK, !prop); > > type = (enum chips)(uintptr_t)device_get_match_data(dev); > + if (type == adaq4224_temp) { > + dev->driver->name = "adaq4224_temp"; > + } > No, sorry, we don't make such changes. The driver has a fixed name which is independent of the device connected to it. Guenter