From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a3-smtp.messagingengine.com (fhigh-a3-smtp.messagingengine.com [103.168.172.154]) (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 83430376BCC for ; Tue, 17 Mar 2026 16:33:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.154 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773765216; cv=none; b=ou/A3TxvkixkKIkw7HdUSotb8Uz/AuYZipkPvTB8OQ/DJOWP7BIaBl/iMlVS3lLAh6P3efqs1asfYuEtzd2L0QCzdEVzZvCqg0fjtqVl8ik8hUjL9u4vNtaCAl9CbhS5mzUSJATzzkxJ2NoaKM2u7uzMKuF0T0nWJ4nQFTt4IIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773765216; c=relaxed/simple; bh=U06W9qx2yxe4I4rWXhJNkuERNXmG75ZCzvKbbPiCk+I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xb7NZoUfZrlByfi5aGVhkHwOHyOgmGQWSSysg8iQAoB1Ts+3ku3oTq2WXtVmnTz6JrdjCPTmpTR3r/SLSql021CL4NuoVsDfOFn1xIuoiTOgP2UVbURu4OnvRFHXk4RNhJff2iQpQIczHrTVqSAWLzZwQ7e7HLzNnXvZdOaIod4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=pTnBX+aL; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=rAWHtRhz; arc=none smtp.client-ip=103.168.172.154 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="pTnBX+aL"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="rAWHtRhz" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 9EABA14000BE; Tue, 17 Mar 2026 12:33:29 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Tue, 17 Mar 2026 12:33:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1773765209; x=1773851609; bh=SSLYqYLx7+ n7Z0JXA2O6XisSJW6wdXE89jwL1yjenOY=; b=pTnBX+aLL5DhazRPNGaYv/kkWp SwCzNquYT683vHTIDDhgzgszT6SjeOGXCuxT4wA2bwgvh4tEAOKoi3FIpy7HKDGa KAv+Pm3lBoPHshbRc5FNTtCQzU3tWnRBSKQiGxM342rDIaN8pyDruFWBuih7YWZA BIMhkKc7MJrHqt5qzF538L94kbAhh66e5CHeXY4KkSoQPxPFm+6DIvx1AiiAprGx ps1R3ohJdGk0Vez0DYiOkUpZ1d+eRXMaUMtx6TSaKWsz+3L4MaZl0l2knyqk1sFB sdhr+LVtEXz3Y0Fzq/z8NfimD68s4IJZ/GWbYhsKoHbnL3EY2Ahaw1KIM55w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1773765209; x=1773851609; bh=SSLYqYLx7+n7Z0JXA2O6XisSJW6wdXE89jw L1yjenOY=; b=rAWHtRhzsS8FAPzvo7P+OTpaKdaeK54b+hAX2TcJCnOboL6T+hQ WXgFuXhuBTRrs+Q+juRF90Dx+6Pv2EfG63YyLp/xmj0/ehG05p9R4i8jQXPLXROA qvtTn+TrIjfN3bvGIw7uPq/B5bNHhk6T+AtnbkP4wIn7MP/H3H5xQITIfX6IYtno DE8BNklGzCBArcyDVgPGrutfrpnOPoJgYO53bQAG8Wn7S6hioSz7GmafbNtPrmWW p9Ti6YvaV/ATb8nc/SfhQLLY860tm65qIaDtM8OlisGoYxVtmAR9/xnM8zOraAMF x6IUN/wKFEJuYl5uCKaE7e3nLZVqlEMSFcw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeftddujeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghgucfm jfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvdevvd eljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrd gtohhmpdhnsggprhgtphhtthhopeekpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehinhhvrdhgihhtqdgtohhmmhhithesthgukhdrtghomhdprhgtphhtthhopehsthgrsg hlvgesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjvggrnhdqsggrphht ihhsthgvrdhmrghnvgihrhholhesthgukhdrtghomhdprhgtphhtthhopehjohhnrghthh grnhdrtggrmhgvrhhonheshhhurgifvghirdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 17 Mar 2026 12:33:28 -0400 (EDT) Date: Tue, 17 Mar 2026 17:33:25 +0100 From: Greg KH To: inv.git-commit@tdk.com Cc: stable@vger.kernel.org, Jean-Baptiste Maneyrol , Jonathan Cameron Subject: Re: [PATCH 6.1.y] iio: imu: inv_icm42600: fix odr switch when turning buffer off Message-ID: <2026031722-capacity-compactly-7cef@gregkh> References: <2026031739-putdown-harmony-6f22@gregkh> <20260317153124.522408-1-inv.git-commit@tdk.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260317153124.522408-1-inv.git-commit@tdk.com> On Tue, Mar 17, 2026 at 03:31:24PM +0000, inv.git-commit@tdk.com wrote: > From: Jean-Baptiste Maneyrol > > ODR switch is done in 2 steps when FIFO is on : change the ODR register > value and acknowledge change when reading the FIFO ODR change flag. > When we are switching odr and turning buffer off just afterward, we are > losing the FIFO ODR change flag and ODR switch is blocked. > > Fix the issue by force applying any waiting ODR change when turning > buffer off. > > Fixes: ec74ae9fd37c ("iio: imu: inv_icm42600: add accurate timestamping") > Signed-off-by: Jean-Baptiste Maneyrol > Cc: stable@vger.kernel.org > Signed-off-by: Jonathan Cameron > --- > drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c > index 32d7f8364230..f29c3e8531e6 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c > @@ -377,6 +377,7 @@ static int inv_icm42600_buffer_predisable(struct iio_dev *indio_dev) > static int inv_icm42600_buffer_postdisable(struct iio_dev *indio_dev) > { > struct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev); > + struct inv_icm42600_timestamp *ts = iio_priv(indio_dev); > struct device *dev = regmap_get_device(st->map); > unsigned int sensor; > unsigned int *watermark; > @@ -398,6 +399,8 @@ static int inv_icm42600_buffer_postdisable(struct iio_dev *indio_dev) > > mutex_lock(&st->lock); > > + inv_icm42600_timestamp_apply_odr(ts, 0, 0, 0); > + > ret = inv_icm42600_buffer_set_fifo_en(st, st->fifo.en & ~sensor); > if (ret) > goto out_unlock; > -- > 2.25.1 > > No git id :(