From mboxrd@z Thu Jan 1 00:00:00 1970 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 6129B3C13E9; Tue, 5 May 2026 11:47:26 +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=1777981646; cv=none; b=eoknaAlb7uU1jPTuTKDPgF7M3kxY1tbt82tQX7tzvOhvcRXuKXSmUduXO8B1WBkXvxUCiYGT9BM2AeUHzmNWSDoExD6tvbZk0isj4eMKXO/xXhaEkk/iA2gwSnGjNHHYzcIj6wPSSvgvfKh5ojPTY8pu53Fk5+agfFCriOkVEhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777981646; c=relaxed/simple; bh=TG8FaSeVMfxVnwLkN4pKqSqOOyBkYNLu696VS0Mrf3Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=M1aLhoMkoIHJ75XvvY/n5YE1ggfnS3njk1QT1wKXxTU6K2yqU2c0/pEtTUJzqTgYclw3d8Z44DY1L/ZAgM+2ZU1z3+mr2ePq3YsejQd41ojUDjrmT9A7TskLGYxoUrVZsf92drEW4WsjWMcD0G3LdDnuQABdwpi/5TcyC4EE6H8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=frmqDrVX; 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="frmqDrVX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68413C2BCB4; Tue, 5 May 2026 11:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777981646; bh=TG8FaSeVMfxVnwLkN4pKqSqOOyBkYNLu696VS0Mrf3Q=; h=From:To:Cc:Subject:Date:From; b=frmqDrVXeGY3u44ovo6+2ExxyUEhaUVVgZe97w95e3RXthn+La+NJx6E8lYE9RAhB eZUaMS369J4oZchg6/nGL1MKTxrNlAJTPD0eKzr+qI+keYDkh5rtBdP8O61eUpq81Q 4ue397yz7ItDDOzOumMxoGsMEbm0o2gx92ZrwN1AAufmJC4i3iX84UVPDJqxDwYZd0 qjd6jyPuNGl0PZro7GPiMl8MhyNB2CJWF6YPtAKCAAvvE5Ho/vZ5bBkq7/HJQ/VwlF yfYweLZnw2QM28mbRCQrVqTAwkXlo9f/ffYIg7gJJ5+uq2WiWD1YwfhhjbEPy6g8ka 4vbrwfVelIgdQ== From: "Rafael J. Wysocki" To: Linux PM Cc: Daniel Lezcano , LKML , Lukasz Luba , Armin Wolf , Jiajia Liu , Marc Zyngier , linux-hwmon@vger.kernel.org, Guenter Roeck Subject: [PATCH v2 0/3] thermal: hwmon: Rework of automatic hwmon device registration Date: Tue, 05 May 2026 13:35:19 +0200 Message-ID: <6017595.DvuYhMxLoT@rafael.j.wysocki> Organization: Linux Kernel Development Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Hi All, This is an update of https://lore.kernel.org/linux-pm/5100596.31r3eYUQgx@rafael.j.wysocki/ sent mosty to address feedback from sashiko.dev: https://sashiko.dev/#/patchset/5100596.31r3eYUQgx%40rafael.j.wysocki There is an extra patch in this revision (the first one) that addresses a possible thermal hwmon removal issue pointed out by sashiko.dev. The second patch in the series reworks the automatic registration of hwmon devices for thermal zones so that one hwmon device is registered for each of them. This is done to address a thermal zone removal deadlock related to the sharing of a hwmon device with other thermal zones of the same type (see the changelog of patch [2/3] for details). The last patch simplifies the thermal hwmon code further by using the canonical mechanism for registering extra sysfs attributes of hwmon devices instead of manually adding files to sysfs. The patches are targeted at 7.2. Thanks!