Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp663669lqo; Wed, 8 May 2024 10:50:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEr1auTHiqa+zFwPy/xbRYWIVy7YYWJV5r6cZ0EsMSnGV1mDGwvlEmC9V7MKa5Baa8b+h3tic8c9YpX+9nba+1bze3o8oNNNoYUWbeww== X-Google-Smtp-Source: AGHT+IHfbXjV/YwY1SxT4xLvuDT487utzCD56dz/byBleh/gPJvnFm92xjemHKm8xwnxPxVA8NSp X-Received: by 2002:a17:906:3953:b0:a59:9af5:2c97 with SMTP id a640c23a62f3a-a59fb95579emr216538266b.25.1715190610528; Wed, 08 May 2024 10:50:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715190610; cv=pass; d=google.com; s=arc-20160816; b=bjXQsAJnYZWAydyr3rheaKIvG/Ku/8Y92qffBLQbJg0JgW9UGc8iEL5vUP4S5IHWzw N/ME0QopBkfJpLVLnYdBlrYzUkTtvuGzdsbNSmtrR5SOO6Fbbzy7VSriyuyuhvaqccsO XggXJw/3JdRAMhc0qEa7reKu/pFTGEXSdCBTd192Ns0cU36dfTBkEoisA7k3//VIa+hn IkWirPbAumGxn841vaKqnZHkh3DnBZ2gr4CcuXf0ZxzXz+/Cf61K+FmT3fCF5+nqHV2g ecF5ruq3dBcADvNTTg5x27iYhZXPiRb4vO2shGQodQUTei/OMKyEa42P4tVBriOOlgcF iwgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=V2Q4pwpdjqg9xxAMMtcZVQYSQ96Q+Kp2F4ha6okEb84=; fh=32uOGfwjn6dMcvR04hejIGFQ8sqAtsTGYDoDgpjnGhQ=; b=lmGN+4A1j0i35m9rkWhBWIPls+wKevsh8dg0bXEa+6PrNK1ETXTzewDC4HMCjUZMWj 9VpFudNx8y8AR50WCYjeQxJKyDeV4quYCbNqWg1FO6pwNTjea1qUQH9DGLDX6AGUhAPf 8tkGIMx9Iv07XPmSZ85Ple4jFQpIJtYU26+Amxyqll/mGABlbTfcUp+T3eE/s4ozvQbl 77k3UAAdScH8qbtb+0aVRlMvNItje6pYhtQsa31C/8wYt4+h74bUZN5Lvyu+k1M6xMrr xM7V9gv2DiDqNASJGV4KnGzG1xk5Byg75dNdDzPdUWXG4QyazuZs/kkmzLpbNS9fRHkh uFww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=EXe2OJUg; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-173668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v7-20020a1709060b4700b00a59cc7a590esi3636239ejg.503.2024.05.08.10.50.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:50:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=EXe2OJUg; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-173668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz 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 14E981F220A3 for ; Wed, 8 May 2024 17:50:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC3E012E1DA; Wed, 8 May 2024 17:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="EXe2OJUg" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (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 2BFA612BF29 for ; Wed, 8 May 2024 17:49:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715190601; cv=none; b=fwCT/hGlcn8XNeVyetNtdd/Edib1k0TZafdYhX49garn16nCwWqRn8USLsp16wa5z8uIA0h9AUEct5sYjl9MVpOdtdZrcyU4I9y07B9T4mbAAeGZ38Wd9DubIAVjJmNJXGywww2Qp2Fag/R/0ITXs5myvwTMAu4U/fNSLumjM4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715190601; c=relaxed/simple; bh=V2Q4pwpdjqg9xxAMMtcZVQYSQ96Q+Kp2F4ha6okEb84=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=XxHqWwzpYrpUrEFyMYWyB87mf876LWAaztfJbBDI+A9vXC5S8DVWXXu3kUAWwdxaQkL7kxZxVVBclHhS2EUZ7QWecytAVCviTF4aCnhs/wzg2Ge/teqi0Q1FqN/0qAPwTbpFy9K2fu8U+gXja1fJXN1A5Btq6yvdytQ9AJy4pgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=EXe2OJUg; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id A47EE2C01BD; Thu, 9 May 2024 05:49:49 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1715190589; bh=V2Q4pwpdjqg9xxAMMtcZVQYSQ96Q+Kp2F4ha6okEb84=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=EXe2OJUgIDR0A/GXHnI7+K/re/H5RaiZg7ypj2E/FEa0S9/Fj7Rbe0oZuKXcvW8w6 JOxGHJP87Bf4XG3FoUFNdIiFH9HpS9YeDqfa7FhXArkmomWy7SOFBkdNAGrt3E6NHe vY+5eG+4Fjf43jgGWAMDPTiPMMjNE/9JiZhgbgYFa3sYUt/17mDtyINikp+m4Iv+Tz ltXtYS34HsWH5RKc8ZGZBS32vwEypsZjTePspzZOiRfqbY5IzPVefiZp+o/5117OHK jLawqAMe22A8lFIkZHDXoMz66zq65eyoWRBsrnTEdNMwgGyCGCTcq4Vf2YDNmZ3TR7 24eCNYlRBnMfQ== Received: from svr-chch-ex2.atlnz.lc (Not Verified[2001:df5:b000:bc8::76]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 09 May 2024 05:49:49 +1200 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) by svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8:f753:6de:11c0:a008) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1544.11; Thu, 9 May 2024 05:49:49 +1200 Received: from svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 9 May 2024 05:49:49 +1200 Received: from svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567]) by svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567%15]) with mapi id 15.02.1544.011; Thu, 9 May 2024 05:49:49 +1200 From: Chris Packham To: "jdelvare@suse.com" , "linux@roeck-us.net" , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" CC: "linux-hwmon@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] hwmon: (adt7475) Add support for configuring initial PWM duty cycle Thread-Topic: [PATCH 2/2] hwmon: (adt7475) Add support for configuring initial PWM duty cycle Thread-Index: AQHaoWn5Wh+pud+mHku8vdrDvQZJzLGM1D2A Date: Wed, 8 May 2024 17:49:49 +0000 Message-ID: <7cb45e90-659e-4caa-8e10-be52e1c969c6@alliedtelesis.co.nz> References: <20240508170544.263059-1-chris.packham@alliedtelesis.co.nz> <20240508170544.263059-3-chris.packham@alliedtelesis.co.nz> In-Reply-To: <20240508170544.263059-3-chris.packham@alliedtelesis.co.nz> Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.4 cv=MfrPuI/f c=1 sm=1 tr=0 ts=663bbb3d a=Xf/6aR1Nyvzi7BryhOrcLQ==:117 a=xqWC_Br6kY4A:10 a=oKJsc7D3gJEA:10 a=IkcTkHD0fZMA:10 a=TpHVaj0NuXgA:10 a=gnXwXUZvAAwXd9gAzRcA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-SEG-SpamProfiler-Score: 0 DQpPbiA5LzA1LzI0IDA1OjA1LCBDaHJpcyBQYWNraGFtIHdyb3RlOg0KPiBCeSBkZWZhdWx0IHRo ZSBQV00gZHV0eSBjeWNsZSBpbiBoYXJkd2FyZSBpcyAxMDAlLiBPbiBzb21lIHN5c3RlbXMgdGhp cw0KPiBjYW4gY2F1c2UgdW53YW50ZWQgZmFuIG5vaXNlLiBBZGQgdGhlIGFiaWxpdHkgdG8gdGFr ZSBhbiBpbml0aWFsIFBXTQ0KPiBkdXR5IGN5Y2xlIGFuZCBmcmVxdWVuY3kgdmlhIGRldmljZSBw cm9wZXJ0aWVzLg0KPg0KPiBTaWduZWQtb2ZmLWJ5OiBDaHJpcyBQYWNraGFtIDxjaHJpcy5wYWNr aGFtQGFsbGllZHRlbGVzaXMuY28ubno+DQo+IC0tLQ0KPiAgIGRyaXZlcnMvaHdtb24vYWR0NzQ3 NS5jIHwgNTYgKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKys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