Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp2208798rba; Sun, 24 Mar 2024 06:40:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPW73Sn3epXtEw9S9mmJwoULhYSPLkCDtqtxV2w3kyxLDIbZmwpFNUyWg6N3PfLeXh4b4BTBJe7n0Q6uKy3mKUv0XTl0ZlZe07CbdXmA== X-Google-Smtp-Source: AGHT+IFKEaayluuQMz6kKXzYnKn6KnHrDfAljgya2+J8XX7B5j70dVBSFNvqEPSdR0fWxc8v9d4A X-Received: by 2002:a05:6a20:5482:b0:1a3:b173:1a97 with SMTP id i2-20020a056a20548200b001a3b1731a97mr5609670pzk.1.1711287604111; Sun, 24 Mar 2024 06:40:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711287604; cv=pass; d=google.com; s=arc-20160816; b=RqEybXUXYD6eHJcWU5LaMJTB3q0xG4P0aPhmCJ9/vtKItEu7y6hE2qt/u1pYd2VlJF GClsH29DvMDxyXYJHfTKBYgkcxxNQTSWpXhVcJm7l7M5hpS3532u3H3pY/08eBx4yxH8 7tZg5EU1P4CqRH3v+9JPTqVqi8FDfMd2XD8c1aPyeIfrtMgwCfOHRPlwl2pxTbd4xtwa jc6oTMEqYq4nBrRLy7WD2zhLdE9YGBnZXXWCl2e3K8gg8weDXjrFUr/Jnk9+TgfbeUpZ BK4C9+goKL7Iuiaem7FkWctaWXPE82sTbVMpvAPqIsdIKNnbMzOBr2BgBoFLXQUkpw+y CIew== 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=CpQYhEEyOIvRzLg8D38Yii6MmgT5nzsZ7x5w2nRV8q4=; fh=aO7VwMzXorvFb/cjS7UqKL2BI3mnI34qIdePd4Zg25U=; b=ioK0lEfT0bXLjdiHEU8opEoCOMQ0nm/z/iRASvWLNpB99E/f0TqLhrvSb0WOxTGoj5 AfHLVkshtfdW5QK84KScyOG6+JZS970vIfVjJVrkPq6QvabAMEM1HQrUqz4BR9ztbhce KFs3J8/yWd/ujk8N3IzkOjBvHUsCLoT8ItYBA3w1bN+SBKgH/CEH2gSuvOyhzTMw0XnY WHIy2Pjxnz6ar5UsNWDqUE3QwPX+s80BvyHCytStrjnd15+BjY01qQpZXgk9pHyn0jQY VymbjEGij42CIBej4FUsSdRE4gwOvkGyh4GiuZsAvtlI3NwtDkcydZB7UBK3Hilzhly5 LOhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FLWBkroE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112681-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j5-20020aa78dc5000000b006ea871c00e5si3363524pfr.83.2024.03.24.06.40.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 06:40:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FLWBkroE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112681-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9D8432811FF for ; Sun, 24 Mar 2024 13:40:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2805717C71; Sun, 24 Mar 2024 13:39:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FLWBkroE" 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 47A701A38DA; Sun, 24 Mar 2024 13:39:55 +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=1711287596; cv=none; b=kq9FyO9Tb1xo/ZiOZng2kEqwJMX/IOuP+RvzXajope9m3CKRd3OsgNy3ZtlAzHXDBfrOIJ4V6WGI5ZEYHTLsoBjXS4nXFRZ1XOgmgtyUJqXCrgi21yW+IZ82FPjEgEEusLB7vF0pkNs5HNfOD+cEQdWuD9QSXbRUOzg634bFef8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711287596; c=relaxed/simple; bh=YKFMBj2kiq7RfXQL4DsoVd4QBUTciDzc2eqHAYf/zTs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SwOsMzdzI3KV3sYiYckm/RQS+H/OXi+5/7gdlAaiLTKzKBu3hCMayZbiOZTrQM2WBDs7zBZPfSwcpaEtmiAwNv1RoQkVIrULhFB1HlpDnan9Ok9vh+6xuqUB8kBI2uTLSpC2BbyR5ROvQZDz+UGPgF70KDb42ThSlB0/D1SCGrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FLWBkroE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59737C433C7; Sun, 24 Mar 2024 13:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711287595; bh=YKFMBj2kiq7RfXQL4DsoVd4QBUTciDzc2eqHAYf/zTs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FLWBkroEr5q7ie8g4JwhZgqGyM2SuqtY5pdEgO3ZRrwL+UjO22QAsXtL+1DYBU6rd XAV8Wo2Ut7j4Tf3DaZYaGMkmdjtfXQAltOoN8fQFSqp6jR0BKAnCKqbxbQUxNgYlP1 /nu/1rMNq93308Gi9BHZQxzOkmxjrjGtDP+skx8U31as5c1AEsHMGrOW4SJMlRearL r3e7iicuodnKc7L2XwtcgdF1EEzwDBwW0p49615zolZ+KTxuNLOwgCTJ2K+YKZcp4j akRx3DXfoluWFJ60Brj56ilGUyWTzwfvdzchWOFD+T3KAKdeMbE0e9fTnwzi8FqgSg jZcgViXP7JhLQ== Date: Sun, 24 Mar 2024 13:39:41 +0000 From: Jonathan Cameron To: Lothar Rubusch Cc: lars@metafoo.de, Michael.Hennerich@analog.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, eraretuya@gmail.com Subject: Re: [PATCH v3 0/6] iio: accel: adxl345: Add spi-3wire feature Message-ID: <20240324133941.26814432@jic23-huawei> In-Reply-To: <20240323122030.21800-1-l.rubusch@gmail.com> References: <20240323122030.21800-1-l.rubusch@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 Sat, 23 Mar 2024 12:20:24 +0000 Lothar Rubusch wrote: > Pass a function setup() as pointer from SPI/I2C specific modules > to the core module. Implement setup() to pass the spi-3wire bus > option, if declared in the device-tree. > > In the core module, then update data_format register > configuration bits instead of overwriting it. The changes allow > to remove a data_range field, remove I2C and SPI redundant info > instances and replace them by a common info array instance. > > Signed-off-by: Lothar Rubusch That patch break up seems reasonable (one minor request for a split in the relevant patch), but normal convention would be do do refactoring first, then functionality at the end. Also removal stuff and group, before adding things. So roughly speaking reorder as > iio: accel: adxl345: Make data_format obsolete > iio: accel: adxl345: Remove single info instances > iio: accel: adxl345: Group bus configuration > dt-bindings: iio: accel: adxl345: Add spi-3wire > iio: accel: adxl345: Pass function pointer to core > iio: accel: adxl345: Add the spi-3wire Thanks, Jonathan > --- > V1 -> V2: split into spi-3wire and refactoring > V2 -> V3: split further, focus on needed changesets > > Lothar Rubusch (6): > iio: accel: adxl345: Pass function pointer to core > iio: accel: adxl345: Make data_format obsolete > iio: accel: adxl345: Add the spi-3wire > iio: accel: adxl345: Remove single info instances > iio: accel: adxl345: Group bus configuration > dt-bindings: iio: accel: adxl345: Add spi-3wire > > .../bindings/iio/accel/adi,adxl345.yaml | 2 + > drivers/iio/accel/adxl345.h | 13 ++++- > drivers/iio/accel/adxl345_core.c | 48 +++++++++++++++---- > drivers/iio/accel/adxl345_i2c.c | 22 +++------ > drivers/iio/accel/adxl345_spi.c | 32 ++++++------- > 5 files changed, 75 insertions(+), 42 deletions(-) >