]> git.baikalelectronics.ru Git - kernel.git/commit
ocxl: Use pci core's DVSEC functionality
authorBen Widawsky <ben.widawsky@intel.com>
Sat, 9 Oct 2021 16:44:50 +0000 (09:44 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 29 Oct 2021 18:53:52 +0000 (11:53 -0700)
commitc6bb348d1690fbe8cdd746f7e5e7dc0f55d9cf61
tree873608e902aa0fcfeb3ce4375d0abb086f76f07c
parentc49d0b40b015af3f556ce45e569543ca0775ca22
ocxl: Use pci core's DVSEC functionality

Reduce maintenance burden of DVSEC query implementation by using the
centralized PCI core implementation.

There are two obvious places to simply drop in the new core
implementation. There remains find_dvsec_from_pos() which would benefit
from using a core implementation. As that change is less trivial it is
reserved for later.

Cc: linuxppc-dev@lists.ozlabs.org
Cc: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> (v1)
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Link: https://lore.kernel.org/r/163379789065.692348.7117946955275586530.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/powerpc/platforms/powernv/ocxl.c
drivers/misc/ocxl/config.c