From nobody Sun Oct 5 07:26:03 2025 Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) (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 BA8FD285CBA for ; Fri, 8 Aug 2025 15:58:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.165.51.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754668682; cv=none; b=en9zJMAG611N3gk/EDkKqCzrgZJ2Xl0m0a+UQ+xaVfhX+lQ5i7LgEEIvunLJcD1gISTsHhiwU/YEejEI56ky2HmZhTu2++v8pKnURO+63RP0buM0p4Jrfb8y8GD4Ibvner+nuQpt7pT92JdDiBVLgTFV567mtejbuQIXa32sdFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754668682; c=relaxed/simple; bh=bg72bqTzyflyJZv1HaKyzubxfUtGoxOZtzk3iL5qQQw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=G9oSgBmW5eZ6O+dp2Iuww+Knr06jYVa7kPm4MN+cObPv3g6znflTOSnnVDJwz6Etzvb9C6N5U2bWdheOeQ3SgaJ76LNdcspQ19KVpgRT4CKmrYNWl5EiiTWGFn6CeWR4sv65FDSy6flsSAONzZpcIhD1nAymX+67sLzc/c7wTT0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=omSkU17J; arc=none smtp.client-ip=188.165.51.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="omSkU17J" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail; t=1754668670; x=1754927870; bh=pLNiFemUUUSl6LvDv6/uCzyLnyhH5smRs/HatvPcFaU=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=omSkU17JlKI3KgwwDPzljiRVkU0J4vcBq4aFPAGP4kk18Q0YeNey0xRjUyzp78WJa aVUXk/u6P0NNYM5g5BXZ/F2HYrwrZ/XFb96OCB0vR79dLBO2qY2PC6ufWoks9+FpYw 0X40uSA64TSfYIzVC1pceL16dcM0DDtrZ5/9SrJlgYCfOLqLr2JJvSZCVonkxYJhyX 97n4NEgd/L+yZTkQ4oqzi3lYNVLEKxSm2ZucSIp0SbPMPFV5l6OgTshRh3cWXfx64X mGcav0TcNnWSX839e7HOxX7pvXgmPieqCI83DBMKmjnpIbrFh/JjdzIqI+5WiOMEiU 0Dk69srXig92g== X-Pm-Submission-Id: 4bz7wD1hWYz1DDBr From: Sean Nyekjaer Date: Fri, 08 Aug 2025 17:57:42 +0200 Subject: [PATCH v2 2/5] iio: imu: inv_icm42600: Drop redundant pm_runtime reinitialization in resume 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 Message-Id: <20250808-icm42pmreg-v2-2-a480279e7721@geanix.com> References: <20250808-icm42pmreg-v2-0-a480279e7721@geanix.com> In-Reply-To: <20250808-icm42pmreg-v2-0-a480279e7721@geanix.com> To: Jean-Baptiste Maneyrol , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jean-Baptiste Maneyrol , Jonathan Cameron , Sean Nyekjaer X-Mailer: b4 0.14.2 Remove unnecessary calls to pm_runtime_disable(), pm_runtime_set_active(), and pm_runtime_enable() from the resume path. These operations are not required here and can interfere with proper pm_runtime state handling, especially when resuming from a pm_runtime suspended state. Fixes: 31c24c1e93c3 ("iio: imu: inv_icm42600: add core of new inv_icm42600 = driver") Signed-off-by: Sean Nyekjaer --- drivers/iio/imu/inv_icm42600/inv_icm42600_core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c b/drivers/iio= /imu/inv_icm42600/inv_icm42600_core.c index c19615750c717101312f358a9160dd2c455cfb14..bb0dbbb7ad03bb57ffd3180785a= 686f2cdb5c845 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c @@ -915,10 +915,6 @@ static int inv_icm42600_resume(struct device *dev) goto out_unlock; } =20 - pm_runtime_disable(dev); - pm_runtime_set_active(dev); - pm_runtime_enable(dev); - /* restore sensors state */ ret =3D inv_icm42600_set_pwr_mgmt0(st, st->suspended.gyro, st->suspended.accel, --=20 2.50.1