Commit 521b6d5de08d ("dpll: allow fwnode pins to attempt state change without capability bit") let user space try to set the state of a pin with a firmware node also without DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE. It was needed for the zl3073x output pins that ice registered with its TXC and TSPLL DPLLs. ice now uses its own pins, which have the capability, and zl3073x, the only driver that sets a firmware node, gives it to every pin whose state can be set. Check the capability for all pins again. Signed-off-by: Ivan Vecera --- drivers/dpll/dpll_netlink.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/dpll/dpll_netlink.c b/drivers/dpll/dpll_netlink.c index 931ea2027cf68f..fab234553b422a 100644 --- a/drivers/dpll/dpll_netlink.c +++ b/drivers/dpll/dpll_netlink.c @@ -1328,11 +1328,8 @@ dpll_pin_on_pin_state_set(struct dpll_pin *pin, u32 parent_idx, unsigned long i; int ret; - /* fwnode pins may not set the capability bit upfront; let the ops - * layer return -EOPNOTSUPP if the operation is unsupported. - */ if (!(DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE & - pin->prop.capabilities) && !pin->fwnode) { + pin->prop.capabilities)) { NL_SET_ERR_MSG(extack, "state changing is not allowed"); return -EOPNOTSUPP; } @@ -1367,11 +1364,8 @@ dpll_pin_state_set(struct dpll_device *dpll, struct dpll_pin *pin, struct dpll_pin_ref *ref; int ret; - /* fwnode pins may not set the capability bit upfront; let the ops - * layer return -EOPNOTSUPP if the operation is unsupported. - */ if (!(DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE & - pin->prop.capabilities) && !pin->fwnode) { + pin->prop.capabilities)) { NL_SET_ERR_MSG(extack, "state changing is not allowed"); return -EOPNOTSUPP; } -- 2.56.1