Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2722426lqz; Wed, 3 Apr 2024 06:55:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjC+OAHpMXqfIP+79olHp5vkm+8Bg+96E9GsF/NXUfpWXY0Nv4WHcllm4rCy/qMWeEdQ++j4JvnLtDl56BuzD9YxPIf7aoGOlfmXCPjQ== X-Google-Smtp-Source: AGHT+IFp8R4h218LJAU8BnJAjveXjMXvKEPny7lmpS7/LhxGY/aNHB+o7D29+dP48tym0gDKaYxU X-Received: by 2002:a05:6a20:1582:b0:1a3:4635:6aab with SMTP id h2-20020a056a20158200b001a346356aabmr18134646pzj.62.1712152531545; Wed, 03 Apr 2024 06:55:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712152531; cv=pass; d=google.com; s=arc-20160816; b=beFRwZbh719A7NX5kTWZK0mugylKLYXNkAdwflah7DQaZwBTr/bGoh+dndZrcWRtek hN21QWhbRC2a5HBPxNqWbVFrNqFlr2qjDAmARNzevrdGaV8+cp8sJ5oMGemPqIZTiyr6 GYoJfklfcvGwrP098EHY8Y9IZcvJcu6eelspcepz7epGfW682O9oDBDlk5lFmJFO1lGL mzcBk/CZNfQzub8sXkC33hpdpk/WuXPsfY9GmBRcgwtvXQ0Rgnc++vpAwzheiRoazVmH tJ59YVpX90OIuKHHSsPpOFru23PBvOknXsrVfNY5yZU62IDimTiBr3zvjnuiUBWA5eky 1ujQ== 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 :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:dkim-signature; bh=eQbQ3sWtqjTwtf4KGjxXKOIIihdDWIlW3qsePHEDCsQ=; fh=oXLuE7P/TDc04NEBsWgXCZvXv/6K1y6LVCTvfeTarxo=; b=fX48oLDR8RVJst8OXgjFd2RN8w7ym9ZXRoXbCzZn+WyHScAjK9dLm+U33IM++PLshj G5KERwQe7RhondfHnGw3RXbUKBnWMlTeBcOLQFN6h7BWsbF9foBv3FcXjnBv5rqV8im1 bT3R0d8CU/+Hok/YblyVUZUGbeqPipBNVrV7t0WByDAmRDXgR3N92i8P7aSyASeqbcQd t9QC2X/tWrwHwRprExW+M1iM3r+2aY7k1+1KfFWFct/uH1sD2+5xP7YK+5noeC5QOggI lM+gURk9BV4m+R/iDx1VRIkaDl36ZOPFk/jiaCsC6F3Sr3JOpVgalxmxPGbwCM9+DAbS klFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U6uUKMFm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k12-20020a63ff0c000000b005b7160263f2si2184944pgi.154.2024.04.03.06.55.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:55:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U6uUKMFm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DC022B222BA for ; Wed, 3 Apr 2024 13:36:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A567A148318; Wed, 3 Apr 2024 13:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U6uUKMFm" Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55B12146D65; Wed, 3 Apr 2024 13:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712151389; cv=none; b=tuMr3mqWr/yLVkbr9xfX3v/1/7mvGzLl2CTgUKt6H4Rb+3InNp+k9TO/vWjYxtucaqq4Hfy4yUFy0tsgPe+ddIvQchAbBCtLhxeemRNIoihhURlUltgDBpJc03LH+RGVEbXzdrApPcR1inSR2jx3npt/BLsb8rT5qjH1yTF6xCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712151389; c=relaxed/simple; bh=67RSiyH5ZhNEcNRXgJOJ6KcqQm2hSkTQG2+vbhBdG2c=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=rnsAaOPsmMi7ktdt/Flnk5RRg22LHqCeoUaIidxdDeSG8MqX593CGXimnixKf585UDumm4Xz4cZpgAQIGks+AdwhXKdOiZrecaRfY7yzJBj9SmmiYs0t5kmIjeuQoKuz+rQwYCXAWGVkXsEUp7mQU5dG0BlCWxGWOIr8JRBm+PM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=U6uUKMFm; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-3416df43cabso4470582f8f.3; Wed, 03 Apr 2024 06:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712151387; x=1712756187; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=eQbQ3sWtqjTwtf4KGjxXKOIIihdDWIlW3qsePHEDCsQ=; b=U6uUKMFm/xneSc73ifigPmpIlwU11k4oMWT/nijWy7tjaZBf0mI7BjFXb38zCW2lRi GXw7h2UcI6NzBicqZpU9yhBuvhFRzH7D8ZPra4gU3JF0pLHKwY6JCyZKcvgpOQqzIyVC l1RTyfGm6sw7246YTqe1JIWJDt644WAXfc+MTdLlq5d8gQZ/E1PK2P30FMwAj0rSUD2T KZz2NM5zqSOLcV2wOSijj1j8/19uVvFIgNNpKJ6Hy3pGeUArcvmpJTRgPU0UhlNyudbr 7G2jkrLLt+2Mh+obhJFm0D9Z5Ja6X/6aTy0TDCxoWkapJX2vbJaUYcVE4mDq+wD3WhF+ igHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712151387; x=1712756187; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=eQbQ3sWtqjTwtf4KGjxXKOIIihdDWIlW3qsePHEDCsQ=; b=GfCw2kXwczTC8AWOBnfSW4CrEiOh9yY7jCsL+VLbve5dXVhQbQev1BfWEJl6dd8d3D cs6qk3x06JxfxLmKkIfRyX8UShTtxZ7fda8WwlY0oKUXZ3tQF9Wk/YpXGy2WnhYuW4pn jIYa/pw3SVnfQpqQjstI8yIRBDnjlCu1YFmi+KjFDyqQ8hfalZysRb8LfP+Otm5MA1sm C7R3xNE7MqF5fBW39xeGA97FwsV/7VsIAdY8VTe/3MYTyShRr49YofiOCK+1B4FowSYt U43wxYW7mvvrSN73hZ1cjkwAzNy7cLrvxIgVM3r8IgCHi3muELD65BIu1Et6LF3wkZFX hpDA== X-Forwarded-Encrypted: i=1; AJvYcCXkLpu44CfTvE+SLVVwBQTK3FrOEO/T5NEAZjewqFIruoLmcgNW5CYHlZs7MqtC/oujFyhYATE7rzuM4KQdMWow+gUHnzGofYrfHAaO52tcrIQUSMNGbx+XkJfkLYjiIu7/zdvRKjKe X-Gm-Message-State: AOJu0YwLwByYMaVeXzCAm+ehUzogSKnNtliRfMlTwn6imPFJOiLC3Oij Xq4FseBmk9rbRg2M4imO5Pcjv3jCb4qKO+ylZCJ0KO74/YgvJlDIQ+m0LVsUexY= X-Received: by 2002:a5d:4e8b:0:b0:343:65a8:406d with SMTP id e11-20020a5d4e8b000000b0034365a8406dmr1948648wru.64.1712151386374; Wed, 03 Apr 2024 06:36:26 -0700 (PDT) Received: from ?IPv6:2001:a61:343e:8301:d737:22b0:7431:8d01? ([2001:a61:343e:8301:d737:22b0:7431:8d01]) by smtp.gmail.com with ESMTPSA id cs2-20020a056000088200b003418016b04csm17342603wrb.76.2024.04.03.06.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:36:26 -0700 (PDT) Message-ID: <42641ec96d5c393e4c8bfe9164b8643af2f04426.camel@gmail.com> Subject: Re: [PATCH 1/1] iio:imu: adis16475: Fix sync mode setting From: Nuno =?ISO-8859-1?Q?S=E1?= To: Ramona Gradinariu , linux-kernel@vger.kernel.org, jic23@kernel.org, nuno.sa@analog.com, linux-iio@vger.kernel.org Date: Wed, 03 Apr 2024 15:36:25 +0200 In-Reply-To: <20240403111357.1074511-2-ramona.gradinariu@analog.com> References: <20240403111357.1074511-1-ramona.gradinariu@analog.com> <20240403111357.1074511-2-ramona.gradinariu@analog.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2024-04-03 at 14:13 +0300, Ramona Gradinariu wrote: > Fix sync mode setting by applying the necessary shift bits. >=20 > Fixes: fff7352bf7a3 ("iio: imu: Add support for adis16475") > Signed-off-by: Ramona Gradinariu > --- Ups... Reviewed-by: Nuno Sa > =C2=A0drivers/iio/imu/adis16475.c | 3 ++- > =C2=A01 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/iio/imu/adis16475.c b/drivers/iio/imu/adis16475.c > index 01f55cc902fa..bd30c3469d9a 100644 > --- a/drivers/iio/imu/adis16475.c > +++ b/drivers/iio/imu/adis16475.c > @@ -1351,7 +1351,8 @@ static int adis16475_config_sync_mode(struct adis16= 475 *st) > =C2=A0 * in chip_info. > =C2=A0 */ > =C2=A0 ret =3D __adis_update_bits(&st->adis, ADIS16475_REG_MSG_CTRL, > - ADIS16475_SYNC_MODE_MASK, sync->sync_mode); > + ADIS16475_SYNC_MODE_MASK, > + ADIS16475_SYNC_MODE(sync->sync_mode)); > =C2=A0 if (ret) > =C2=A0 return ret; > =C2=A0