[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c5a1f45f-542e-4280-a601-ae96f2d1cac4@linux.dev>
Date: Tue, 13 Jan 2026 17:47:07 +0000
From: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
To: Ivan Vecera <ivecera@...hat.com>, netdev@...r.kernel.org
Cc: Donald Hunter <donald.hunter@...il.com>, Jakub Kicinski
<kuba@...nel.org>, "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@...el.com>,
Jiri Pirko <jiri@...nulli.us>,
Prathosh Satish <Prathosh.Satish@...rochip.com>, Petr Oros
<poros@...hat.com>, linux-kernel@...r.kernel.org,
Michal Schmidt <mschmidt@...hat.com>
Subject: Re: [PATCH net-next v2 2/3] dpll: add dpll_device op to set working
mode
On 13/01/2026 12:16, Ivan Vecera wrote:
> Currently, userspace can retrieve the DPLL working mode but cannot
> configure it. This prevents changing the device operation, such as
> switching from manual to automatic mode and vice versa.
>
> Add a new callback .mode_set() to struct dpll_device_ops. Extend
> the netlink policy and device-set command handling to process
> the DPLL_A_MODE attribute. Update the netlink YAML specification
> to include the mode attribute in the device-set operation.
>
> Signed-off-by: Ivan Vecera <ivecera@...hat.com>
> ---
> v2:
> * fixed bitmap size in dpll_mode_set()
[...]
> +static int
> +dpll_mode_set(struct dpll_device *dpll, struct nlattr *a,
> + struct netlink_ext_ack *extack)
> +{
> + const struct dpll_device_ops *ops = dpll_device_ops(dpll);
> + enum dpll_mode mode = nla_get_u32(a), old_mode;
> + DECLARE_BITMAP(modes, DPLL_MODE_MAX + 1) = { 0 };
this one breaks reverse xmas tree order.
with this fixed:
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
Powered by blists - more mailing lists