From patchwork Tue Dec 17 19:39:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 13912442 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 D237E1F9A98 for ; Tue, 17 Dec 2024 19:40:47 +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=1734464447; cv=none; b=Wu16Plw9KM8mMr56X9wMz9iM4hRplRYiWFS95KaQ3//zqaZcTjw3llZZAhajixmsIOG0W3hFcdsqvWdy+KkzSiOWyHtmRdmpSwGBk0nNF0SX/dCf8GWlLw/NM/fAFb9M4GnvIiF8PiHzMsMZHFGiygzRafcfe0PGn0ePQNd1hi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734464447; c=relaxed/simple; bh=GBXeYn6QUhSufnveMgQrWeDt1lHMy2FHbSthwreXJww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kUW2VX4U1vY/dp5h2Jq3yEAN/0E8v8z6HoX+8CIziyBjBft/MIQw2MoD/L2zCqI8wsj/GEjxXEVyT6STdu30A56sLnN54ZX5U3KHXdOdFLZsKEJY24ql2srHY0R9/X9llGhG3WnVgPvPPkKUy4aE0U9F5yMHCYXZlyU2JoQDeO4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Zn9NU7JY; 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="Zn9NU7JY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8BE1C4CED3; Tue, 17 Dec 2024 19:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734464447; bh=GBXeYn6QUhSufnveMgQrWeDt1lHMy2FHbSthwreXJww=; h=From:To:Cc:Subject:Date:From; b=Zn9NU7JYLDXujwrvv48wMtrAE7Mnbr0NWt3W2yxeJwU46kz0cQ33NKygdEQQkCWsq RQ8gBQKPKv/9Qx2D/LusXLF2KWzH7Wg2lXpZEbfYHuivo8rV7F2Pd54s5zB69h93qn Rc+nygy3eVFm0ZEfOlpjYqe9oUjGxs2CpEFw8s7NFk7qrqMyIVF2ypRMV9HcLWdChO PAVlazedwvJ00SHoXdhCE1lxBIIuB4WKKttGlQuRFFMJYBkR6YDZO62WYyUHwF1qKD vu+/qX8XeTh5+BfSWDrXgn6+lTykZG2kmI/SgovZj0DMm0d1cThan351sUmTdsiLPq Z7EUonhC3Kvxg== From: Mario Limonciello To: mario.limonciello@amd.com, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, Shyam-sundar.S-k@amd.com Cc: platform-driver-x86@vger.kernel.org Subject: [PATCH 0/2] Use guard(mutex) for amd platform drivers Date: Tue, 17 Dec 2024 13:39:50 -0600 Message-ID: <20241217194027.1189038-1-superm1@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Mario Limonciello Update the PMF and PMC drivers to use guard(mutex) instead of mutex_lock/mutex_unlock. Mario Limonciello (2): platform/x86/amd: pmc: Use guard(mutex) platform/x86/amd: pmf: Switch to guard(mutex) drivers/platform/x86/amd/pmc/pmc.c | 14 ++++++-------- drivers/platform/x86/amd/pmf/acpi.c | 6 ++---- drivers/platform/x86/amd/pmf/core.c | 18 ++++++++---------- 3 files changed, 16 insertions(+), 22 deletions(-)