Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2625273pxy; Mon, 3 May 2021 04:36:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1eIalFfwvSAfjvLp9GanBofRT8Q5d8LeZScsgLsViWifV4pUGi/fprJQ0wEZpcxmbD6cl X-Received: by 2002:a17:906:2596:: with SMTP id m22mr16485738ejb.175.1620041802757; Mon, 03 May 2021 04:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620041802; cv=none; d=google.com; s=arc-20160816; b=nKiiu7FvthmadeChIoaTsgUM84afLuLM0jSRTfoHNVJcMcXv+Ag9DQ/sR/Kqd9JLUA y78ZyM04dPap21GCezUidgw65FmHv5VbNLBU+3xwfkXuzEuNNPjDVS6qtnhNMJCwct9F 76P3WCdRJDy0j4jxo4ZMfhwKxMrzGJJLzir+gU76CDCA3PRf88RUWPP0xegiTsp/Wlit owagTbggMAnwgt32mjtR1UIk24lq5Sfx3W3pcXpoJdwcgaPt5wlgSiFiJLzLf1QHsL+0 Ct+12wgrOdXRQlXAOn8LuGirA/DT/8kyoAe2pOE7QLc16el5XOhhbjSPgNzfXJjUW402 /jkQ== 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; bh=FoGKIKZ5jQny5Udae/I8qDQy0etmLTXSKtnIBRvUSaU=; b=Eq/hZEcnh392JQXH5uRWTgjajYQVBNZM1at1o7STWni5NTn1uXw/tCCw8BFjkghYKw NvVHijZP/CKPik5Q0zma6z5zdsV3uzhn3uoRiUpY5tLlDTUfpOMq9BiCFXWhRMErytq9 JEfUA/alNhlulhvUTUlxAxcRS4yfO1pGl+Rd0mamN225NDUhPwj5f2z0lZxdbaQLmTqC WxVIRH3aXfkvRTO3IMsKwqmPfau/aRc/w8iwPlNj4eomZ4P5KcQllR0p82bCKOGgS1Qe uNqhHT4auBH+7n8nNHwrb5rXFjLjwYD64jEvYay0nDk+g5+VqdmvVaWWG5r6XeY+KJFf hulQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si8577587edw.528.2021.05.03.04.36.19; Mon, 03 May 2021 04:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233426AbhECKuc (ORCPT + 99 others); Mon, 3 May 2021 06:50:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:47054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbhECKua (ORCPT ); Mon, 3 May 2021 06:50:30 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A4153610A5; Mon, 3 May 2021 10:49:35 +0000 (UTC) Date: Mon, 3 May 2021 11:50:26 +0100 From: Jonathan Cameron To: Tomasz Duszynski Cc: , , , , Subject: Re: [PATCH v3 0/3] iio: sps30: add support for serial interface Message-ID: <20210503115026.06ee3d04@jic23-huawei> In-Reply-To: <20210503060014.7632-1-tomasz.duszynski@octakon.com> References: <20210503060014.7632-1-tomasz.duszynski@octakon.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 May 2021 08:00:11 +0200 Tomasz Duszynski wrote: > One can communicate with sensor either over i2c or serial interface. > This series add support for the latter. And in order to do that existing > codebase needs to be separated into core and interface specific > components. I've taken the view the dt binding change is trivial enough I don't 'need' to wait for Rob to take a look (though of course any comments are welcome!) As such, I've applied the series to the togreg branch of iio.git and pushed it out as testing for the autobuilders to see if we missed anything. Thanks, Jonathan > > v3: > - add i2c device matching based on id table > - constify structure > - rephrase comment regarding reading serial number > - check serial number length > > v2: > - simplify Kconfig by hiding core component selection > - export symbols as GPL compatible > - drop excessive ops wrappers > - rework ops to use __be32 > - rework polling for measurements, sensor produces measurements within > 1s so instead of polling just wait 1s > - simplify frame ready condition (serial) > - don't mix char with unsigned version > - calculate checksum during frame validation (serial) > - uncomment return status in frame validation (serial) > - pass part name to probe instead of KBUILD_MODNAME > > Tomasz Duszynski (3): > iio: sps30: separate core and interface specific code > iio: sps30: add support for serial interface > dt-bindings: iio: chemical: sps30: update binding with serial example > > .../iio/chemical/sensirion,sps30.yaml | 7 +- > MAINTAINERS | 2 + > drivers/iio/chemical/Kconfig | 27 +- > drivers/iio/chemical/Makefile | 2 + > drivers/iio/chemical/sps30.c | 269 ++--------- > drivers/iio/chemical/sps30.h | 35 ++ > drivers/iio/chemical/sps30_i2c.c | 258 +++++++++++ > drivers/iio/chemical/sps30_serial.c | 431 ++++++++++++++++++ > 8 files changed, 804 insertions(+), 227 deletions(-) > create mode 100644 drivers/iio/chemical/sps30.h > create mode 100644 drivers/iio/chemical/sps30_i2c.c > create mode 100644 drivers/iio/chemical/sps30_serial.c > > -- > 2.31.1 >