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 B13FA32ABC4 for ; Thu, 26 Feb 2026 23:52:51 +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=1772149971; cv=none; b=pfrDI84LFZVLlPn7uaYzUAEkdOPcNabLfqemDtQLK8Jt/AOZ9c6djEeX/LT5izl/10xoadOVieaP7ntMIwb2Q3khNlLwLy+ahFrz8Ag6VVGRlG6N8ffJI8Znlom5jz1HxT2psSEwsSTOcOocomzv7RdwzzLWv/HZY2RJoGQK3yw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772149971; c=relaxed/simple; bh=ncG8iCmoK/OQTCaXtzeBXhJnIpY/2r8tRiYOKyj6LjQ=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=iSGW+JMeBsV8ItDuFCDvbteUsk+zU0E9QaEycYucDX2g90fd/MWmZMEvHOg1edtWXtHNv/Ndb3JTgGptHSuLAbSgTIMBoGzjqzN8xdJ/UowuzVNT9Tp/WWg6WBg6EjfL8iAp16hNQnSlN2g9vXDtL1/98q1ZH+6pDpfR7AWnRvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wHxOMwnv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wHxOMwnv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89775C116C6; Thu, 26 Feb 2026 23:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1772149971; bh=ncG8iCmoK/OQTCaXtzeBXhJnIpY/2r8tRiYOKyj6LjQ=; h=Subject:To:From:Date:From; b=wHxOMwnvSLv3sILGsFGpL9GhzyIBLSNgFod99Ow4tIWLjt3MPOCzNgt4Iec3y2BYa ZvbZPkwfW+i9JCm56Og5SM3254DYNfeRhc816LCG2JepQQbxLa4I15+DZmoKxrZF8k Upa75Hx5FsKitqf7cHIvkujm+xSDQxJyDkXoPrJY= Subject: patch "iio: gyro: mpu3050-i2c: fix pm_runtime error handling" added to char-misc-linus To: antoniu.miclaus@analog.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org From: Date: Thu, 26 Feb 2026 15:52:36 -0800 Message-ID: <2026022636-emcee-sabotage-0a00@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit This is a note to let you know that I've just added the patch titled iio: gyro: mpu3050-i2c: fix pm_runtime error handling to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-linus branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. From 91f950b4cbb1aa9ea4eb3999f1463e8044b717fb Mon Sep 17 00:00:00 2001 From: Antoniu Miclaus Date: Mon, 16 Feb 2026 11:57:55 +0200 Subject: iio: gyro: mpu3050-i2c: fix pm_runtime error handling The return value of pm_runtime_get_sync() is not checked, and the function always returns success. This allows I2C mux operations to proceed even when the device fails to resume. Use pm_runtime_resume_and_get() and propagate its return value to properly handle resume failures. Fixes: 3904b28efb2c ("iio: gyro: Add driver for the MPU-3050 gyroscope") Signed-off-by: Antoniu Miclaus Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/gyro/mpu3050-i2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/gyro/mpu3050-i2c.c b/drivers/iio/gyro/mpu3050-i2c.c index 092878f2c886..6549b22e643d 100644 --- a/drivers/iio/gyro/mpu3050-i2c.c +++ b/drivers/iio/gyro/mpu3050-i2c.c @@ -19,8 +19,7 @@ static int mpu3050_i2c_bypass_select(struct i2c_mux_core *mux, u32 chan_id) struct mpu3050 *mpu3050 = i2c_mux_priv(mux); /* Just power up the device, that is all that is needed */ - pm_runtime_get_sync(mpu3050->dev); - return 0; + return pm_runtime_resume_and_get(mpu3050->dev); } static int mpu3050_i2c_bypass_deselect(struct i2c_mux_core *mux, u32 chan_id) -- 2.53.0