]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pds_core: Use struct pdsc for the pdsc_adminq_isr private data
authorBrett Creeley <brett.creeley@amd.com>
Mon, 29 Jan 2024 23:40:32 +0000 (15:40 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Feb 2024 02:26:59 +0000 (18:26 -0800)
commit951705151e50f9022bc96ec8b3fd5697380b1df6
tree5036bccf2860af1a4c7008707b48ee85e1ab80ff
parentd321067e2cfa4d5e45401a00912ca9da8d1af631
pds_core: Use struct pdsc for the pdsc_adminq_isr private data

The initial design for the adminq interrupt was done based
on client drivers having their own adminq and adminq
interrupt. So, each client driver's adminq isr would use
their specific adminqcq for the private data struct. For the
time being the design has changed to only use a single
adminq for all clients. So, instead use the struct pdsc for
the private data to simplify things a bit.

This also has the benefit of not dereferencing the adminqcq
to access the pdsc struct when the PDSC_S_STOPPING_DRIVER bit
is set and the adminqcq has actually been cleared/freed.

Fixes: 01ba61b55b20 ("pds_core: Add adminq processing and commands")
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/20240129234035.69802-4-brett.creeley@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/pds_core/adminq.c
drivers/net/ethernet/amd/pds_core/core.c