]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pds_core: Require callers of register/unregister to pass PF drvdata
authorBrett Creeley <brett.creeley@amd.com>
Mon, 7 Aug 2023 20:57:50 +0000 (13:57 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 16 Aug 2023 16:53:11 +0000 (10:53 -0600)
commitb021d05e106e14b603a584b38ce62720e7d0f363
tree07724d38b7f73a5f346b7729fc53c7b92cf2d733
parent38fe3975b4c2c5eeefb543e09f9620da18b0d069
pds_core: Require callers of register/unregister to pass PF drvdata

Pass a pointer to the PF's private data structure rather than
bouncing in and out of the PF's PCI function address.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230807205755.29579-4-brett.creeley@amd.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/net/ethernet/amd/pds_core/auxbus.c
include/linux/pds/pds_common.h