From: Tariq Toukan <ttoukan.linux@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Tariq Toukan <tariqt@nvidia.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
linux-kernel@vger.kernel.org, Mark Bloch <mbloch@nvidia.com>,
Gal Pressman <gal@nvidia.com>, Aya Levin <ayal@nvidia.com>,
Saeed Mahameed <saeedm@nvidia.com>,
Leon Romanovsky <leon@kernel.org>,
Simon Horman <horms@kernel.org>, Shay Drory <shayd@nvidia.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Parav Pandit <parav@nvidia.com>, Amir Tzin <amirtz@nvidia.com>
Subject: Re: [PATCH net] driver core: auxiliary bus: Fix sysfs creation on bind
Date: Thu, 23 Oct 2025 10:14:29 +0300 [thread overview]
Message-ID: <3450b913-d205-4b19-8690-d3191cb680a2@gmail.com> (raw)
In-Reply-To: <2025102347-fridge-happier-ea97@gregkh>
On 23/10/2025 9:46, Greg Kroah-Hartman wrote:
> On Thu, Oct 23, 2025 at 09:19:27AM +0300, Tariq Toukan wrote:
>> From: Amir Tzin <amirtz@nvidia.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@nvidia.com>
>> Reviewed-by: Mark Bloch <mbloch@nvidia.com>
>> Signed-off-by: Tariq Toukan <tariqt@nvidia.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...
>
Sure. Always running it before submissions.
It passes for me. Anything I miss?
total: 0 errors, 0 warnings, 258 lines checked
patch has no obvious style problems and is ready for submission.
next prev parent reply other threads:[~2025-10-23 7:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-23 6:19 Tariq Toukan
2025-10-23 6:46 ` Greg Kroah-Hartman
2025-10-23 7:14 ` Tariq Toukan [this message]
2025-10-23 8:03 ` Greg Kroah-Hartman
2025-10-23 6:47 ` Greg Kroah-Hartman
2025-10-23 7:08 ` Tariq Toukan
2025-10-26 7:15 ` Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3450b913-d205-4b19-8690-d3191cb680a2@gmail.com \
--to=ttoukan.linux@gmail.com \
--cc=amirtz@nvidia.com \
--cc=ayal@nvidia.com \
--cc=dakr@kernel.org \
--cc=gal@nvidia.com \
--cc=gregkh@linuxfoundation.org \
--cc=horms@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mbloch@nvidia.com \
--cc=parav@nvidia.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=rafael@kernel.org \
--cc=saeedm@nvidia.com \
--cc=shayd@nvidia.com \
--cc=tariqt@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®