From nobody Tue Jun 16 07:38:32 2026 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) (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 4FEA035DA67 for ; Fri, 17 Apr 2026 07:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.68 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776412508; cv=none; b=GXgeoGIxBafK82+y1XhcAFVZnsz35YjVNaY7R57IQXp0uI7M4bzGvPAnhMx8gxYxmCCXHkO6FIYnFBhEXSTERXlecymCoOj6B1mKLyuchyJieDBoJQQfPQ12C7VFoOAHUMNdiOLMLpKNiG/n3fKHuH66JFxogyiPYQLt98UHFWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776412508; c=relaxed/simple; bh=Nl9d5nSBusaUTgZlzx73GKAsZqFkN+SKYI5SmPtNhyo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UqEf4g5w6tqoZVhmFfWaUtAh/klfZ6THzkyQgF6j5zVU2MxuFBF+GXGJYb1p1gklmsNgrT0M3tEB029Gj6TOjOXubP0n6KorrxLTDygKSfrxeJtOLy3U1Q/i2AaiSoGVG1+NbEjSxj8sI/FuPc7q60ukASVJtJnc+Zr9T5fmp0U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f68.google.com with SMTP id 98e67ed59e1d1-35d9c7bf9a1so406671a91.3 for ; Fri, 17 Apr 2026 00:55:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776412506; x=1777017306; 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=eyBPa3qqHsAAAwhDXzGCxDz5edbgYqDleVeYrzy0gcw=; b=JRIWY8IMOaOGOx8jtpl4OOOqHn/GQhxjlcZQ1WyBMBe14OHGuMJ2rviLomYZL+7XAM jStd1XMMKXyAHkJGprpy4ykcr31qIyLKdbmDagsyTA0XGgIBQKWC68g6RNR/nXbX0p9h tXUWOoKVsjwVK7cmvVLOQNLjw5ycZeYRFncYVk+whufQPCv9E9BHbgVZxiuFXVVlhlRu J0UcNDxeAsvgutyuSjrvNwgZStSaQGkWbCQPbcvqbPwIf/3Z3OrDfqozt8y2ypRWKJUi sBEZFz5ypG5XgTdpNOlGuyF8rWi5ROVDk/Qifdc9zEIPVLewqPKVKZaFUgDyhcFlkqaw jy2g== X-Forwarded-Encrypted: i=1; AFNElJ8OkvXbsHFMHiVPFlTc2rmz1CRDmHRKHYIHjHor6Px5Ep9hgMIZcKkqkyYfyh5djq5p1qxobACgWbvzf8I=@vger.kernel.org X-Gm-Message-State: AOJu0YxrPaPaV9UBq7U7PVd9gZ6BKl0BnDSB3/5PWdSAbGTDfXy68GxU HUXO6hyOk/hgZMAYrCMMdJvDr0xl5+5lpOTwfZG7JgTSK8PezNOCSLEM X-Gm-Gg: AeBDievSDHPW0RWCk4wXcir9+w8TtpHeOT0J1OxMXQutfJ1gDnYrEPu5KqmrCrPe7HJ mtXIdPsQ5I0C8NuTkESuu8ZJEE0izBnLD5YkxQ+8uzIRqd33uEaSm/xV9A8xiniODofm6MNFuvg 7zb92LoDBEnb1WGK2GmFTEm9kRMx0PcmqtQk/EwunggNy2CYzGB5aNfQMEgCqdKvkmWFYyTXk83 7sG+t+wXFvJ8KK7+qBfCEeip0fc94z0hUP5JEz5ri/BAp1JSNk7MzSnmNkb61lvUk5d/RTka8Z2 J364cX8Y62M/Ky2fhn49no83UoSMRV5XUXaH4bR/nXEmsuWnCWrnlDdkSnEMa9rcOWgiI297ox2 oXfnCn0zFBjuF/ICRX8hyNAHemoIzFUhgIvc7UaPRDpZSO7BcRiNDRRieWhz71t6cEiD37+fF08 OnRvfOpOyiOm6JjJcoz2V3rnXEFSAVx2sh9p1oj7Q3QFXEeamLoP1CTbyxWQ== X-Received: by 2002:a17:90a:d2c7:b0:35d:935f:2ff with SMTP id 98e67ed59e1d1-361403ade81mr2058149a91.2.1776412505614; Fri, 17 Apr 2026 00:55:05 -0700 (PDT) Received: from power-ThinkBook-15-G2-ITL.. ([116.128.244.171]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5faa2e5cesm13509375ad.25.2026.04.17.00.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2026 00:55:04 -0700 (PDT) From: Xueqin Luo To: mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, jsd@semihalf.com, andi.shyti@kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Xueqin Luo Subject: [PATCH] i2c: designware: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR() Date: Fri, 17 Apr 2026 15:54:51 +0800 Message-ID: <20260417075451.5435-1-luoxueqin@kylinos.cn> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use new PM_RUNTIME_ACQUIRE() and PM_RUNTIME_ACQUIRE_ERR() wrapper macros to make the code look more straightforward. No intentional functional impact. Signed-off-by: Xueqin Luo Acked-by: Mika Westerberg --- drivers/i2c/busses/i2c-designware-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-common.c b/drivers/i2c/busse= s/i2c-designware-common.c index 4dc57fd56170..4bb0abda0a91 100644 --- a/drivers/i2c/busses/i2c-designware-common.c +++ b/drivers/i2c/busses/i2c-designware-common.c @@ -958,8 +958,8 @@ int i2c_dw_probe(struct dw_i2c_dev *dev) * registered to the device core and immediate resume in case bus has * registered I2C slaves that do I2C transfers in their probe. */ - ACQUIRE(pm_runtime_noresume, pm)(dev->dev); - ret =3D ACQUIRE_ERR(pm_runtime_noresume, &pm); + PM_RUNTIME_ACQUIRE(dev->dev, pm); + ret =3D PM_RUNTIME_ACQUIRE_ERR(&pm); if (ret) return ret; =20 --=20 2.43.0