Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp474626lqe; Sat, 6 Apr 2024 08:47:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqxSotCRR/KhOdzdyNKKes/HR6XlLivuez+dlmze3XD65vQxdRe8IfS+EeJYV5gsFwR3xfzF/oZyRhceCTx71XezLQSJGMa4YPqiqsDA== X-Google-Smtp-Source: AGHT+IFibItSSXz4FjLbgp2Bg2CFxeIkF+L/z85ThoBIolyD6CuTB7zX7a4LmcJsl9WZzlkTk+bJ X-Received: by 2002:a05:6a00:991:b0:6eb:2b:43b4 with SMTP id u17-20020a056a00099100b006eb002b43b4mr5634551pfg.27.1712418427731; Sat, 06 Apr 2024 08:47:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712418427; cv=pass; d=google.com; s=arc-20160816; b=KnVC+SU8NmptXHu+MIhplimlfTwHv90cUCrw6Aw/hq7y+NOAqttBLdLCggVFSw4X0v iFc0q7jN1/aGP1kC2qkoJ3+g7ONCa+Db6KDqHDsvryCCVtmghi6smmrugMFgHcF4S1eC MfOo11S+9uD/llMymvZfjdrPgiZFRzc0Y72+UHBiTpR0aSq3DXozmVlpUrlrSzTRudlQ stXOOWiH4UTxuR9Kp0Goiit8M+kceZ2dTdbx1zQPby2Y01DYIN8vSN+b5q1GW2feYR0Q TbEp9Af+2mKmKqCQ/wgywQDMC/DFHLM2octj00qbE/87+1gOJ2fmzkTPRyhnNXRzYTj4 Zmbg== 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=n6HQXb4xtpdq5Rj31fj8wDK6uVqiTgreF0WN/CsGRu8=; fh=2viuRUgo78uGjR/xbgoNFkpDY7iph07pvf9jEfh2nT0=; b=u+VDx8N/JomDGru0ZH0i7YUGhSZniaqy/oW6fYk2PTwyA5wnmM2HxuHhEke8tywIkX UZzs/0sHMV4HPeOH6yqq6p6OVWkIDDGfVmeW2OcQdA89qv+h057wZRB7zUKbALPrsu92 5FIxmQhqyq5YANYTGNzoxOs0birkuNQUdoor2Qbc0BLrTqmg5DYHHUISsBsWbPzHP7CU 7OTCePYdHwLHSL8q8O171RTmWiefdh/ofApnlHVPb8ivJeHz2yu9qEQdqZtemhRqxxG4 H0B3n+ibNBCXZd8Z79ZSwj4JRAmGbrQCKVeOlExWT4tVKPFSWZRcE72L4L+nlkQXHqeb DxbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PH8beJvJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f8-20020a056a001ac800b006e749161d4bsi3288264pfv.397.2024.04.06.08.47.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 08:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133986-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=@kernel.org header.s=k20201202 header.b=PH8beJvJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133986-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 65CF9B21A07 for ; Sat, 6 Apr 2024 15:46:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BE8A381A4; Sat, 6 Apr 2024 15:46:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PH8beJvJ" 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 A3DD838FA5; Sat, 6 Apr 2024 15:46:46 +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=1712418406; cv=none; b=MbocLYEUuLlaZ8TBSeH0/v10s84oPcampZx5qkD9eEe6a/coNHEA6uYD0SNRAxaAzhzoHeuCCJLhidvAV8ztjCODHAe3oE5p3aTdNM8DlfG7YSRb0WrnmkT2LarDfA6vRBGOyst2T9oqOd8HJGMPzaJIEAVfuf7njlpYcBlmry4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712418406; c=relaxed/simple; bh=AduoKm/UmGHvrrIH2O3jYTpeQVXIbbUL7w25qENLi68=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kfKIkjUUYE60ekl5KdQd+YFGBrlGEzgNsj9Y59GRVmT0LQ58c/DmTFK7wAwzTCUUh7cvNqiluejTaCX7/4VEQWra6m1AS8aGM8S5jQJ7x0h5Um6n6YzTyUM1NGgnqrdSx7CJbmCYicA+yQlaS2UE1sGiJg60eFY77eNKAVH4+yM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PH8beJvJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2DD4C433F1; Sat, 6 Apr 2024 15:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712418406; bh=AduoKm/UmGHvrrIH2O3jYTpeQVXIbbUL7w25qENLi68=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PH8beJvJ3ggS32MNcSmFjLO6h19KDkT/zvwS7+65RYW//MKzcE73CzdlHYA9cqHbX NI4ujxlq3WoWIPRbenPWvIEV1OQT05Cqj4sSDbHwWdUTkctlmIuWHCIcbVT69g8s4n qc6RolkuApZGRrVb3j5i1dBTnNVPq4Tu5U/nNSMBmLmm8J8EZP5l9q3iea56bUMerL Bs/+iDoS2/LCfqh4/2QAeqjLZxv2Bw8N6/9iY9l+kTYYDCDOv+8svyMhn5wJ5Sujj+ u6BBsLLu4RDpcQ39zgmnELqYwH9IGcuWwLjLsH4HvA/lSvZC/9w54lfe1zDhNRztbJ nUYv9ZwVCJSyw== Date: Sat, 6 Apr 2024 16:46:33 +0100 From: Jonathan Cameron To: Nuno =?UTF-8?B?U8Oh?= Cc: Ramona Gradinariu , linux-kernel@vger.kernel.org, nuno.sa@analog.com, linux-iio@vger.kernel.org Subject: Re: [PATCH v2 1/1] iio:imu: adis16475: Fix sync mode setting Message-ID: <20240406164633.76e3601b@jic23-huawei> In-Reply-To: <00ed6785db2b43ec3727f42c71dc2c8dd1b627f1.camel@gmail.com> References: <20240405045309.816328-1-ramona.bolboaca13@gmail.com> <20240405045309.816328-2-ramona.bolboaca13@gmail.com> <00ed6785db2b43ec3727f42c71dc2c8dd1b627f1.camel@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=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 05 Apr 2024 09:02:33 +0200 Nuno S=C3=A1 wrote: > On Fri, 2024-04-05 at 07:53 +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 > > --- =20 >=20 > Not sure there was a reason to drop my tag... Anyways: >=20 > Reviewed-by: Nuno Sa Missing -S on b4 maybe? A special parameter I save just for you Nuno ;) Applied to the fixes-togreg branch of iio.git and marked for stable. Thanks, Jonathan >=20 > > changes in v2: > > =C2=A0- added u16 value to call __adis_update_bits to fix build error > > =C2=A0drivers/iio/imu/adis16475.c | 4 +++- > > =C2=A01 file changed, 3 insertions(+), 1 deletion(-) > >=20 > > diff --git a/drivers/iio/imu/adis16475.c b/drivers/iio/imu/adis16475.c > > index 01f55cc902fa..060a21c70460 100644 > > --- a/drivers/iio/imu/adis16475.c > > +++ b/drivers/iio/imu/adis16475.c > > @@ -1289,6 +1289,7 @@ static int adis16475_config_sync_mode(struct adis= 16475 > > *st) > > =C2=A0 struct device *dev =3D &st->adis.spi->dev; > > =C2=A0 const struct adis16475_sync *sync; > > =C2=A0 u32 sync_mode; > > + u16 val; > >=20 > > =C2=A0 /* default to internal clk */ > > =C2=A0 st->clk_freq =3D st->info->int_clk * 1000; > > @@ -1350,8 +1351,9 @@ static int adis16475_config_sync_mode(struct adis= 16475 > > *st) > > =C2=A0 * I'm keeping this for simplicity and avoiding extra variables > > =C2=A0 * in chip_info. > > =C2=A0 */ > > + val =3D ADIS16475_SYNC_MODE(sync->sync_mode); > > =C2=A0 ret =3D __adis_update_bits(&st->adis, ADIS16475_REG_MSG_CTRL, > > - ADIS16475_SYNC_MODE_MASK, sync->sync_mode); > > + ADIS16475_SYNC_MODE_MASK, val); > > =C2=A0 if (ret) > > =C2=A0 return ret; > >=20 > > -- > > 2.34.1 > > =20 >=20