Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1146669rdb; Wed, 6 Dec 2023 09:46:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEinYLAG3jDG20OHRp7gKdRrJumOuP76AtOcfueuUAnub0VzpmlbcihPsGhxHzFQfgiSWsa X-Received: by 2002:a17:902:9f96:b0:1d1:d7b2:23f2 with SMTP id g22-20020a1709029f9600b001d1d7b223f2mr764440plq.74.1701884772825; Wed, 06 Dec 2023 09:46:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701884772; cv=none; d=google.com; s=arc-20160816; b=M/S9/M9S6s1pBV4+deoLrQb/VIjSB4czIVnrcCKRTNow/mJn3j6Szk6MQTdXUipFQS 6CslDCL6gpDJC7geoajyQ+bu1OrY9cPmfDDxh0zrZeAfZaQbaAEDT0lBRqTSFzEZBn9G rIVt2zidMIlr0vxi6KClRtjJcJYSHerCv7xrFtEBAdWjdKfTTJoG6Jq2hHvv8q/AxA1+ X4Y9N9+lDRHE5YJAozMCZ9rS3stEmHmIdsffC2aSc5XWE/5Ib/+V/MNydCVbMj7OJboF qESW24I4BYiCQbT3IbdoCrD6uezj6V41JwrSzLZsRZOqw6yfe+lihRTqHNClye91oUsO h6hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=DJlYTZcHkWlecmEECESOvmOVh1uColA3jqMdTOQJMdc=; fh=bZCQVUhx0p3CWpXsPLfcyi5JFxA6fsmEiN6Ien8ESkw=; b=DkqmWlyoysahAWVh7oaZVvj+9NobHRf1E2+d0FVFbAHzzUrxftLzz4vQGPbo3oSxTK +lPeUmu2syCiG/b1pehovcZEH9Q2l3bWVfbiW0GV712EHUtqBkpPH7dzqUOHFgpzmpgT dfDYj4b8xNfv0d9aWXcogWHGdXW+En/HHS7HBNqCH+XxEj+CCVdpeoAOMQSYf6oDykVb QD3zpgvgPkbON4IvM5kYyi1mn5WHTJZfWeIFmMRoGbjvkIyaDw3XUQ24lqKFMLTEz3Vb AcPnA/+uZC15b6S00Xo1zMMwVlgjf7tfPcqkXGTG3LQqKzd9yW2o4Lc8LNl6BuRlWRt9 Bn3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r5aspjRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l9-20020a170903120900b001d06819a68esi143516plh.134.2023.12.06.09.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 09:46:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r5aspjRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 184C0807D92C; Wed, 6 Dec 2023 09:45:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230164AbjLFRo4 (ORCPT + 99 others); Wed, 6 Dec 2023 12:44:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjLFRoy (ORCPT ); Wed, 6 Dec 2023 12:44:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60196D46 for ; Wed, 6 Dec 2023 09:45:00 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09B16C433C7; Wed, 6 Dec 2023 17:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701884700; bh=c62MJPU3LWesp61kfHoQtJ5bG1ANKAKahi1+gxMsJV4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=r5aspjRw8Rlvjs6c8+jncK8NtSzup0/O7zTHTEAcEW7txJRfe7N3ZVtH25fAxZzbm MU/UMbiPazp94YUGyQ+aD7SEYumme4Mh2ugMWV35CBHSU3NX4Jk1IQbq+o/ehvH5AN t3BHTtnsgb6osvj/I4EaP9PYeCtEeBvuhStznsvgzRY1fKFzvq4TgZ/WQIDTtLmWyE fHPPz9HT7xX5tWRUC821Ea61pxviclEJ0fHva85aGhQQxwQ+kFQD2bfAAv3aUuvLyf Oc3ok0HxFAtY4zbEdCJcXbqFlpNNxv5nNrv/r3Rfeot82vkdZGAGR40jz6XPkWQy8e o+zUmTOI+lVsQ== Date: Wed, 6 Dec 2023 17:44:51 +0000 From: Jonathan Cameron To: Petre Rodan Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Lars-Peter Clausen , Andy Shevchenko , Angel Iglesias , Matti Vaittinen , Andreas Klinger , Rob Herring , Krzysztof Kozlowski Subject: Re: [PATCH v7 2/2] iio: pressure: driver for Honeywell HSC/SSC series Message-ID: <20231206174451.301b1cd2@jic23-huawei> In-Reply-To: <20231204194401.20891-2-petre.rodan@subdimension.ro> References: <20231204194401.20891-1-petre.rodan@subdimension.ro> <20231204194401.20891-2-petre.rodan@subdimension.ro> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 09:45:15 -0800 (PST) On Mon, 4 Dec 2023 21:43:59 +0200 Petre Rodan wrote: > Adds driver for digital Honeywell TruStability HSC and SSC series > pressure and temperature sensors. > Communication is one way. The sensor only requires 4 bytes worth of > clock pulses on both i2c and spi in order to push the data out. > The i2c address is hardcoded and depends on the part number. > There is no additional GPIO control. > > Datasheet: > https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/trustability-hsc-series/documents/sps-siot-trustability-hsc-series-high-accuracy-board-mount-pressure-sensors-50099148-a-en-ciid-151133.pdf [HSC] > Datasheet: > https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/trustability-ssc-series/documents/sps-siot-trustability-ssc-series-standard-accuracy-board-mount-pressure-sensors-50099533-a-en-ciid-151134.pdf [SSC] > Signed-off-by: Petre Rodan One trivial comment from me to add to what Andy covered. > +/* /** Looks to be valid kernel-doc. Might as well mark it as such. > + * hsc_measurement_is_valid() - validate last conversion via status bits > + * @data: structure containing instantiated sensor data > + * Return: true only if both status bits are zero > + * > + * the two MSB from the first transfered byte contain a status code > + * 00 - normal operation, valid data > + * 01 - device in factory programming mode > + * 10 - stale data > + * 11 - diagnostic condition > + */