[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2025102347-fridge-happier-ea97@gregkh>
Date: Thu, 23 Oct 2025 08:46:16 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Tariq Toukan <tariqt@...dia.com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Danilo Krummrich <dakr@...nel.org>, linux-kernel@...r.kernel.org,
Mark Bloch <mbloch@...dia.com>, Gal Pressman <gal@...dia.com>,
Aya Levin <ayal@...dia.com>, Saeed Mahameed <saeedm@...dia.com>,
Leon Romanovsky <leon@...nel.org>, Simon Horman <horms@...nel.org>,
Shay Drory <shayd@...dia.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Parav Pandit <parav@...dia.com>, Amir Tzin <amirtz@...dia.com>
Subject: Re: [PATCH net] driver core: auxiliary bus: Fix sysfs creation on
bind
On Thu, Oct 23, 2025 at 09:19:27AM +0300, Tariq Toukan wrote:
> From: Amir Tzin <amirtz@...dia.com>
>
> In case an auxiliary device with IRQs directory is unbinded, the
> directory is released, but auxdev->sysfs.irq_dir_exists remains true.
> This leads to a failure recreating the directory on bind [1].
>
> Using the attributes group visibility interface, expose the IRQs
> attributes group if"f the xarray storing IRQs entries is not empty. Now
> irq_dir_exists field is redundant and can be removed.
>
> [1]
> [] mlx5_core.sf mlx5_core.sf.2: mlx5_irq_affinity_request:167:(pid 1939):
> Failed to create sysfs entry for irq 56, ret = -2
> [] mlx5_core.sf mlx5_core.sf.2: mlx5_eq_table_create:1195:(pid 1939):
> Failed to create async EQs
> [] mlx5_core.sf mlx5_core.sf.2: mlx5_load:1362:(pid 1939):
> Failed to create EQs
>
> Fixes: a808878308a8 ("driver core: auxiliary bus: show auxiliary device IRQs")
> Signed-off-by: Amir Tzin <amirtz@...dia.com>
> Reviewed-by: Mark Bloch <mbloch@...dia.com>
> Signed-off-by: Tariq Toukan <tariqt@...dia.com>
> ---
> drivers/base/auxiliary.c | 13 +++-
> drivers/base/auxiliary_sysfs.c | 117 +++++++++++++++++++++++++--------
> include/linux/auxiliary_bus.h | 26 ++++++--
> 3 files changed, 118 insertions(+), 38 deletions(-)
>
> diff --git a/drivers/base/auxiliary.c b/drivers/base/auxiliary.c
> index 04bdbff4dbe5..b0fb31279257 100644
> --- a/drivers/base/auxiliary.c
> +++ b/drivers/base/auxiliary.c
> @@ -225,7 +225,16 @@ static int auxiliary_bus_probe(struct device *dev)
> return ret;
> }
>
> - return auxdrv->probe(auxdev, auxiliary_match_id(auxdrv->id_table, auxdev));
> + ret = auxiliary_bus_irq_dir_res_probe(auxdev);
> + if (ret)
> + return ret;
Please always use scripts/checkpatch.pl so that you don't get grumpy
maintainers asking you why you didn't use scripts/checkpatch.pl...
thanks!
greg k-h
Powered by blists - more mailing lists