PCI/switchtec: Add Gen4 flash information interface support
authorKelvin Cao <kelvin.cao@microchip.com>
Wed, 15 Jan 2020 03:56:47 +0000 (20:56 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2020 17:00:39 +0000 (11:00 -0600)
commit4efa1d2e36976d7b26f2e67f4c838330fbc91299
tree4caab5002d4299e8ed65bcda5de6d65804893801
parenta3321ca394082f403b447646d81c18ff6b39f4a6
PCI/switchtec: Add Gen4 flash information interface support

Add the new flash_info registers struct and the implementation of
ioctl_flash_part_info() for the new Gen4 hardware.

[logang@deltatee.com: rewrote commit message]
Link: https://lore.kernel.org/r/20200115035648.2578-7-logang@deltatee.com
Signed-off-by: Kelvin Cao <kelvin.cao@microchip.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c
include/linux/switchtec.h
include/uapi/linux/switchtec_ioctl.h