From nobody Fri Dec 19 21:47:02 2025 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 CC8943164D4; Thu, 13 Nov 2025 19:36:11 +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=1763062571; cv=none; b=rpiDX1WNxGmj/vtjO3Jzn/F8RNpynsE23+lNVNrwPDqWlwaU0ATUdQkL3+HN5XpxTNgUEb5APQiAlnio4ypvLRIVBtbw8FjsBSSijPSsmJrfxsNupFTDYEq+ryf3EI5qBV8saw6Fn/hpNRQtIupEks7XPovnlqkOZC+35k6+lFg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763062571; c=relaxed/simple; bh=3UWo0LV4XjuUqmmBcw4h+UDN+0V86GO2l32GjXB4RjU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gz14WLEeScV/i8T7WpvE6AciLhbTUtc+edycbewHemVGq3FxbK6q333h0iFnvZ1JRI4UD8D1G8xgw/08mE1MyTG25Binm/bvxepgcoFpzSLEjUjEVHj+AHESMubC6WbKVr4bi4Sn94W0PyydAdvsolgS5Aid2YltrFEaBPvpOF8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NmoNO0bC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NmoNO0bC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EA24C4CEFB; Thu, 13 Nov 2025 19:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763062571; bh=3UWo0LV4XjuUqmmBcw4h+UDN+0V86GO2l32GjXB4RjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NmoNO0bCcim5CbVyYLwV7yb9beDc4BBdM+5ORo83TW2AX861rYxCo4Wn9IBJDRQ3q l6L69X1iPe8tVUg7zNbO00yAsMFlOzCj4s+HeSJAPgL8VVX+1aPWRwKwi8Zqm3R0Ba uo4m9Kd+QfAOtPZmqXDPINKZ+/QDyiZHJOddMrTkgGhlTBxRhF118Vkv5NRTlvAwnw Eao1eq9VbMc7CHpVtaIHWSMj/kOzEl4vKMaeWgrN/Ms1Vrl0NZGH896qc6K2stC7FH L6S+OOpUjJLONWGx2rrP1WeEF3uiUo8Ke+ndk3jXgAYUBueqHIvc+5+b+xY6/JfjXb 706QM4DTD8chg== From: "Rafael J. Wysocki" To: Linux PM Cc: Linux ACPI , Jonathan Cameron , Takashi Iwai , LKML , Zhang Qilong , Frank Li , Dhruva Gole , Dan Williams , Linux PCI , Bjorn Helgaas Subject: [PATCH v2 2/3] ACPI: TAD: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR() Date: Thu, 13 Nov 2025 20:34:53 +0100 Message-ID: <2040585.PYKUYFuaPT@rafael.j.wysocki> Organization: Linux Kernel Development In-Reply-To: <5959587.DvuYhMxLoT@rafael.j.wysocki> References: <5959587.DvuYhMxLoT@rafael.j.wysocki> 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" From: Rafael J. Wysocki Use new PM_RUNTIME_ACQUIRE() and PM_RUNTIME_ACQUIRE_ERR() wrapper macros to make the code look more straightforward. No intentional funtional impact. Signed-off-by: Rafael J. Wysocki Reviewed-by: Dhruva Gole --- v1 -> v2: Adjust to the changes in patch [1/3]. --- drivers/acpi/acpi_tad.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) --- a/drivers/acpi/acpi_tad.c +++ b/drivers/acpi/acpi_tad.c @@ -90,8 +90,8 @@ static int acpi_tad_set_real_time(struct args[0].buffer.pointer =3D (u8 *)rt; args[0].buffer.length =3D sizeof(*rt); =20 - ACQUIRE(pm_runtime_active_try, pm)(dev); - if (ACQUIRE_ERR(pm_runtime_active_try, &pm)) + PM_RUNTIME_ACQUIRE(dev, pm); + if (PM_RUNTIME_ACQUIRE_ERR(&pm)) return -ENXIO; =20 status =3D acpi_evaluate_integer(handle, "_SRT", &arg_list, &retval); @@ -137,8 +137,8 @@ static int acpi_tad_get_real_time(struct { int ret; =20 - ACQUIRE(pm_runtime_active_try, pm)(dev); - if (ACQUIRE_ERR(pm_runtime_active_try, &pm)) + PM_RUNTIME_ACQUIRE(dev, pm); + if (PM_RUNTIME_ACQUIRE_ERR(&pm)) return -ENXIO; =20 ret =3D acpi_tad_evaluate_grt(dev, rt); @@ -275,8 +275,8 @@ static int acpi_tad_wake_set(struct devi args[0].integer.value =3D timer_id; args[1].integer.value =3D value; =20 - ACQUIRE(pm_runtime_active_try, pm)(dev); - if (ACQUIRE_ERR(pm_runtime_active_try, &pm)) + PM_RUNTIME_ACQUIRE(dev, pm); + if (PM_RUNTIME_ACQUIRE_ERR(&pm)) return -ENXIO; =20 status =3D acpi_evaluate_integer(handle, method, &arg_list, &retval); @@ -322,8 +322,8 @@ static ssize_t acpi_tad_wake_read(struct =20 args[0].integer.value =3D timer_id; =20 - ACQUIRE(pm_runtime_active_try, pm)(dev); - if (ACQUIRE_ERR(pm_runtime_active_try, &pm)) + PM_RUNTIME_ACQUIRE(dev, pm); + if (PM_RUNTIME_ACQUIRE_ERR(&pm)) return -ENXIO; =20 status =3D acpi_evaluate_integer(handle, method, &arg_list, &retval); @@ -377,8 +377,8 @@ static int acpi_tad_clear_status(struct =20 args[0].integer.value =3D timer_id; =20 - ACQUIRE(pm_runtime_active_try, pm)(dev); - if (ACQUIRE_ERR(pm_runtime_active_try, &pm)) + PM_RUNTIME_ACQUIRE(dev, pm); + if (PM_RUNTIME_ACQUIRE_ERR(&pm)) return -ENXIO; =20 status =3D acpi_evaluate_integer(handle, "_CWS", &arg_list, &retval); @@ -417,8 +417,8 @@ static ssize_t acpi_tad_status_read(stru =20 args[0].integer.value =3D timer_id; =20 - ACQUIRE(pm_runtime_active_try, pm)(dev); - if (ACQUIRE_ERR(pm_runtime_active_try, &pm)) + PM_RUNTIME_ACQUIRE(dev, pm); + if (PM_RUNTIME_ACQUIRE_ERR(&pm)) return -ENXIO; =20 status =3D acpi_evaluate_integer(handle, "_GWS", &arg_list, &retval);