clk: si5341: Add sysfs properties to allow checking/resetting device faults
authorRobert Hancock <robert.hancock@calian.com>
Thu, 25 Mar 2021 19:26:43 +0000 (13:26 -0600)
committerStephen Boyd <sboyd@kernel.org>
Mon, 28 Jun 2021 02:58:15 +0000 (19:58 -0700)
commit9b13ff4340dff30f361462999a6a122fcc4e473f
tree6b42fc51e368ecca73c5550d3bd74a6defdd0e2f
parent2f02c5e42a55fbdb1b4f113df2c26a5c99e8d578
clk: si5341: Add sysfs properties to allow checking/resetting device faults

Add sysfs property files to allow viewing the current and latched states of
the input present and PLL lock bits, and allow resetting the latched fault
state. This allows manual checks or automated userspace polling for faults
occurring after initialization.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20210325192643.2190069-10-robert.hancock@calian.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-si5341.c