From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 9E01D23EAB4 for ; Sun, 26 Apr 2026 11:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777202674; cv=none; b=LvCkTpdxplhhdatUDmk9udSgsaSKSnjibxAyXx0pouUO2Xt5TEfsNESJzyp+kASK1TjSKBAkgbt09AQbTImuQDLihrdV37L6h5lGERll8wvUP2nh5rRkfp7vVa11yV8LSi4yfRysGJHfaFWgdEr8g9Dm+GB9X+E71Hi62gjnMX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777202674; c=relaxed/simple; bh=z2wZij3bny+uXmdQQJsHW7j/9rQlXSaWcQkTUzYT6go=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pUUHNJmwcKM6rBVT00kxQ0n/sRzZWeRmVSdOhfev/7atHOt19QK7HzTuZ6Np9g6++LQwk3jjFY0YcQsyPQZQKrRVxKtcqsNRQCCCdf+bFOAqfBbAqXv1PP9AbXqV7VmNz1xq9SXAjvTpHk6+IlrtibbUpET62Oleobf1gy/CNgU= 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=F3bbGJqj; arc=none smtp.client-ip=209.85.221.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F3bbGJqj" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-43d73352cf2so7717615f8f.1 for ; Sun, 26 Apr 2026 04:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777202672; x=1777807472; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+yvA4FwjLsk49yxx4ydlEPgnd8VTUl40wcz3Ovmub84=; b=F3bbGJqjHXfcih4p7BAXi0UuApvIWLkhuHYToVmiGpyVmvCgOPv2sgH0KGy6IoHx9j PyfHt6QLM7eQpjTRnZ582meXvkHVreZYIF11Vv08OMBs7pJlTs3NDAjyy5Er6DlvTMpR xZ2Fme/tm42XXBd+zqcndRoYL/D9Xm+d7+VvJSytn9uVX5+ESSccJPCK2d+odmhRFqM/ K4XLkpeY7la396otI05Iuz5A3TFy4WmCLfrUNUBby4C/FonzwKGyymxaFKfmJam4mGcE B617zg5bjjYm0JKENMwKf/S71ekhay8H3krdKxx31/EGuHad8z7MRFA8ksRxUglA2Ha4 h6OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777202672; x=1777807472; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+yvA4FwjLsk49yxx4ydlEPgnd8VTUl40wcz3Ovmub84=; b=Ccq6/Pw46VCaaw9M63ozcAcLQkIsQkgrB0tgbGGmG/sNEyu38m2muemzFMft/qjnDQ BTyFQZ9HZtVmgtvcbB7lpNJrYzn80Cc8kYFw0JBeRrdrrKNDtLWQRDfGAANnlyJhIJ1u nJnzJpW7ZSjCYMPkWkFhwhsidVj0bZAqJ7eQnEsW1bPo1UDahPIcJKN24j8ZUd/LBsyv Ja6Cjwo8ziLDrCkWTeOsH0ko1OuPlb+a7sS/lYJIuTH/K+wmS2tcpXKhQhxyG+DRpw9D ujabWv1K8nERyRKA3Lk42Plaezwq/qnqd3LiwXg2q973Nee29f3gc2WuIYhtqtKzccT8 mGKg== X-Forwarded-Encrypted: i=1; AFNElJ8fG60K14O2Mh0dB/95XlwO5EU5FGz+ksDpBipZYcursD8dLmzk2gakCr4hsGGGcSyQfV8jZbMIP10bpA0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz1XoGA9mJOa0mDq9Q+OLYKuSDR3+PmSeAPWolVLG4FChG8ahKW +9F4Fr1i52COimgHzXAf05b+qRyqlRWWFCl5OYxPv6x0GEZRwiCF0FAH X-Gm-Gg: AeBDiev5pbwcgKKwrfLOo7YEvOs/C1kgjqVsEZepHyWpJjgI4Lp0bZp7tWufUUkn/GQ 1a3D+CuruGU2EYXlheuZ6HBzK9YGO18yKgs+vwCJRWKX8FahD5DGeTwuAC6o3lDNEHwAaI3J8P6 gM4UYHM2FrhrWTLLoeOy+1OTmobYLRQJkhErFf6R2JylLH6cLkS5+j51rAjrBt35jpDIw29bpEe mBlrNRFc4MK9V+b3TzxOVvIK3C9lvU5Kw7GjjZmZ99FGOaFsIsSLnyeUl657k2z4yGIWnAM8fB7 Ae3g2/3CPPtLzugdh5fnvYXJ0KiG6E5vHoGO3cpLcTdswK5TS72xgnBj785CFQVMtAnlg/X+YnN iLGDVx4uURfjdpFzE+otYkq4SmtFb+bypTtzM+RJW/bfGX0uE1goYtICkIGhz+q5frgFSNYcWc0 YYc5nNYur2b4pA+U4S5K5see4xgx/KWH05t+Yh X-Received: by 2002:a05:6000:2f83:b0:43c:fd7e:72eb with SMTP id ffacd0b85a97d-43fe3e144b5mr62221533f8f.41.1777202671893; Sun, 26 Apr 2026 04:24:31 -0700 (PDT) Received: from new-nest ([94.19.228.143]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-44123d23e0bsm33285999f8f.15.2026.04.26.04.24.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 04:24:31 -0700 (PDT) From: Andrey Skvortsov To: Jean-Baptiste Maneyrol , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Marek , Brian Masney , Rob Herring Cc: Andrey Skvortsov Subject: [PATCH v3 0/3] iio: imu: inv_mpu6050: runtime pm fixes Date: Sun, 26 Apr 2026 14:23:31 +0300 Message-ID: <20260426112334.3938774-1-andrej.skvortzov@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patchset fixes problem with inv_mpu6050 driver, when it fails after device is suspended by runtime pm during a probe. To simplify runtime pm handling in the driver more devm-helpers are used. Andrey Skvortsov (3): iio: imu: inv_mpu6050: fix unbalanced regulator_disable calls, when probe fails iio: imu: inv_mpu6050: use devres-enabled version of pm_runtime_enable iio: imu: inv_mpu6050: control vdd supply using devm-helpers drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 61 +++++++--------------- drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 1 - 2 files changed, 20 insertions(+), 42 deletions(-) Changes in v3: - make patch "fix unbalanced regulator_disable calls, when probe fails" with Fixes to be the first patch of the patchset for easier backporting - don't move pm_runtime_set_active, move devm_add_action_or_reset for inv_mpu_core_disable_regulator_action instead - update commit message in "fix unbalanced regulator_disable calls, when probe fails" to fix Andy's comment - remove blank lines in "use devres-enabled version of pm_runtime_enable" - no dead code in inv_mpu_core_disable_regulator_action anymore since st variable is used to get 'struct device' now Changes in v2: - minimize call trace in commit message - use runtime pm framework to track vddio regulator state - include specific driver name in patch subject - add more patches to use device managed functions -- 2.53.0