Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1092148rdb; Fri, 16 Feb 2024 05:17:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVFwD5dR8MwslR+lfTPHRR0QFRhvRifHL7XFk8s4clWWv1FlQkizyvb7S9OcGIXKP1T1e/PlR3eAMwqRFOAb8ON5M+37qgmZEP6T/Vaw== X-Google-Smtp-Source: AGHT+IEtcKx6/RpWC8vpSdGrE0kEBAB61iuIqQ9O9mknHTo2rGmItqTK1ONLNE6pbyyv2618bv/b X-Received: by 2002:a17:906:a8c:b0:a3d:14d0:f253 with SMTP id y12-20020a1709060a8c00b00a3d14d0f253mr3442462ejf.9.1708089461359; Fri, 16 Feb 2024 05:17:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708089461; cv=pass; d=google.com; s=arc-20160816; b=QuqdtP2y+3ogZ5zN8xFQDFZprr8Igjxg1fBVYu35RGJE0d+/oXZVw8Q9v0Pubefhn7 hahAswHFeNPyfM6G+hP8kwkYTUeHIaVS/q4gNrKFoCYm7h2eJ9Yq4CrlT5HVuBrhj7Fc 5PqtnGYdQQXNM42YhiMoTV25N2H/y65OIT5VTMUCfA+UsDWD/6kc3EyLr+KYNAaXUAqw PPTx8sBpRh2vJ9/veKFHkK6muz51tbyXQ3CPYWg9yBopL0/+8+4W3TH+B6z3/IwPjuZ5 SovmwlHew07/o5ZT0mOfpZKLtaQ7h7rFzt6oRjgmdC0gePmTjuKkd2thfIZuYUFALlwc s47A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=G+EwUJXq9ne8/6p3nugqpVSj9CZDkrSPl/hpKNLwZP8=; fh=d0Eef/VHZ/k4k25aOh1CDY0vQUqPwnqlJvUv9ClMT60=; b=N+/c/e/HbX4JK6UVkLuBTeVR9cH4WysYJcLrPtp1xraV/5Io9V/BUDy/uR0zVNHs5M J2pR/QXE1IYDE5ZILG9cnsnbV2UEJ80xCIiuy2iYJEGi7I15i2qx2ZWIWMvk5orzmkQK QazJfWusrXaI5iwxt3mOapYMxUrF12RXXEs1TlTtJ07uhOjox+HMd6Px/q+U7NgcDO2G ml1J6xYazvJJXWaq+IM9SRvOtRnTZVJn4Rt+ugKX/519Y69HAek8+pfc0Lv2cTKfzAzI 512OePprVIoaiw4tMqnFwcPXnqP002np2iJeg7BcFk7hvRKe4NecP6dCDuVQnLIyXA1P 155g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UDm3bOiY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a16-20020a170906245000b00a3d35dc1932si1664705ejb.856.2024.02.16.05.17.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 05:17:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68629-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=@kernel.org header.s=k20201202 header.b=UDm3bOiY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 1CE5D1F25BEB for ; Fri, 16 Feb 2024 13:17:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3558129A79; Fri, 16 Feb 2024 13:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UDm3bOiY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 05F3C1E4A0; Fri, 16 Feb 2024 13:17:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708089454; cv=none; b=VteWeCr2We/p1uzRMl7rZK4yS2ptb2YwDCwUgDlzxp6V+9BKmhi0s99oR5DcYdFAWilXNQFYodj++dZZPQlZ3LnhRsjHHzEMAasmxrqpOiJ4MEhVx1fQPJMaWcdcJt6e+bcW+dpCVbxy4nHJhTBWjAN/Fb1FfqymxeS0Wn+bGsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708089454; c=relaxed/simple; bh=AVfeqQmabhCsEwDXgdtcghK9DNj+wvmCdcJSg6+5wys=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MmGfnCGTYibZfMXzBoy6sjOrh98lyxX6wwvvIHL4A/m/hTRirjd8N13YhoTjU/mRuLhT/ifN7C82OsM/30Y7qML6bn914N08gIdlWhbeEAknhb8LCc8x4QJOOl/1gan5WLdJcwKGY23+FBG3LUxFGv8doVgSssIsaUe6Tp1vGq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UDm3bOiY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A48BC433C7; Fri, 16 Feb 2024 13:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708089453; bh=AVfeqQmabhCsEwDXgdtcghK9DNj+wvmCdcJSg6+5wys=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UDm3bOiYZsFxCXXc+P0xuyh3cp5zEz0unbQ6MzRKkTJvMXLOnamzjt3RoMs2N+ToJ Nw3ac4JqW7sF63R1HcPZWnALdh/wkZndr5iRaddG0tmBotF5GHdI9sGMFQhss4Alfy iMh1y4aGB3gzljMPGVdAnKOdt237oZYGEJRYt9Msf/PCXFXQs1CJN0v9mu9BgIXApn nfmYLlxndNek6efeIaaukFgOGIinmuplZgNM45GSPEYyhFPdmvrXiBXyeIaDIvRBX+ vL89hxVAnVS2CU5Cfrwk1xTsHM7FeY4LxjQtXxu5TzSqSdIEGrOAUKpBZjigtu8U7g 3xdRUUVJkDoug== Date: Fri, 16 Feb 2024 13:17:21 +0000 From: Jonathan Cameron To: Dimitri Fedrau Cc: Lars-Peter Clausen , Li peiyu <579lpy@gmail.com>, Nuno Sa , Javier Carrasco , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/3] iio: humidity: hdc3020: add threshold events support Message-ID: <20240216131721.745f039e@jic23-huawei> In-Reply-To: <20240214085350.19382-1-dima.fedrau@gmail.com> References: <20240214085350.19382-1-dima.fedrau@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Wed, 14 Feb 2024 09:53:42 +0100 Dimitri Fedrau wrote: > Based on Fix: > a69eeaad093d "iio: humidity: hdc3020: fix temperature offset" in branch > fixes-togreg This applies fine independent of that (they will meet each other upstream!) so I'll take this via my tree now rather than waiting to get that dependency after a pull request / rebase. It will also actually get built in next where the missing Kconfig / Makefile fix is in place. Applied to the togreg branch of iio.git. Normally I'd push it out as testing but given I haven't yet queued anything up today and this won't get built until it hits next I've pushed it out as togreg directly after a quick local build test. Thanks, Jonathan > > Changes in V2: > - Fix alphabetical order of includes(Christophe) > - Fix typo: change varibale name "HDC3020_R_R_RH_THRESH_LOW_CLR" to > HDC3020_R_T_RH_THRESH_LOW_CLR to match variable name pattern(Christophe) > - Add constants HDC3020_MIN_TEMP and HDC3020_MAX_TEMP for min/max threshold > inputs (Christophe) > - Change HDC3020_MIN_TEMP to -40, as stated in the datasheet(Javier) > > Changes in V3: > - drop u8 register pairs and switch to 16bit defines(Jonathan) > - create helper functions to avoid code duplication(Jonathan) > - Add interrupt bindings in example > - use the decimal part for setting thresholds(Javier) > - use return in switch cases hdc3020_read_thresh(Jonathan) > - fix interrupt handler:(Jonathan) > - return IRQ_HANDLED when we get a read back failure > - take the timestamp into a local variable > - fix multiline comments(Jonathan) > - use fixed value "hdc3020" instead of dev_id in probe > - clear interrupt after registering the interrupt handler > - remove interrupt polarity > > Changes in V4: > - fix commit message of patch "iio: humidity: hdc3020: switch to 16bit > register defines". (Jonathan) > - add missing include in bindings example. (Javier, Rob) > - added copyright information > > Dimitri Fedrau (3): > iio: humidity: hdc3020: switch to 16bit register defines > dt-bindings: iio: humidity: hdc3020: add interrupt bindings in example > iio: humidity: hdc3020: add threshold events support > > .../bindings/iio/humidity/ti,hdc3020.yaml | 3 + > drivers/iio/humidity/hdc3020.c | 445 ++++++++++++------ > 2 files changed, 312 insertions(+), 136 deletions(-) >