]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pds_core: specify auxiliary_device to be created
authorShannon Nelson <shannon.nelson@amd.com>
Thu, 20 Mar 2025 19:44:08 +0000 (12:44 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 20 Mar 2025 23:03:29 +0000 (20:03 -0300)
commitb699bdc720c0255d1bb76cecba7382c1f2107af5
tree3a57ad323b98da10aa9819ad3692a4719a36973e
parente8562da829432d04a0de1830146984c89844f35e
pds_core: specify auxiliary_device to be created

In preparation for adding a new auxiliary_device for the PF,
make the vif type an argument to pdsc_auxbus_dev_add().  Pass in
the address of the padev pointer so that the caller can specify
where to save it and keep the mutex usage within the function.

Link: https://patch.msgid.link/r/20250320194412.67983-3-shannon.nelson@amd.com
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/net/ethernet/amd/pds_core/auxbus.c
drivers/net/ethernet/amd/pds_core/core.h
drivers/net/ethernet/amd/pds_core/devlink.c
drivers/net/ethernet/amd/pds_core/main.c