summaryrefslogtreecommitdiff
path: root/include/clocksource
diff options
context:
space:
mode:
authorHariprasad Shenai <hariprasad@chelsio.com>2016-04-15 13:00:11 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-04-15 13:00:11 -0500
commitcb92148b58a49455f3a7204eba3aee09a8b7683c (patch)
tree0da42a2722827d2b530fdf771d06af7b17cc0ec6 /include/clocksource
parentb2d7a9cd3ff8ec561348267c2ef7d47b2b91e801 (diff)
PCI: Add pci_set_vpd_size() to set VPD size
After 104daa71b396 ("PCI: Determine actual VPD size on first access"), the PCI core computes the valid VPD size by parsing the VPD starting at offset 0x0. We don't attempt to read past that valid size because that causes some devices to crash. However, some devices do have data past that valid size. For example, Chelsio adapters contain two VPD structures, and the driver needs both of them. Add pci_set_vpd_size(). If a driver knows it is safe to read past the end of the VPD data structure at offset 0, it can use pci_set_vpd_size() to allow access to as much data as it needs. [bhelgaas: changelog, split patches, rename to pci_set_vpd_size() and return int (not ssize_t)] Fixes: 104daa71b396 ("PCI: Determine actual VPD size on first access") Tested-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Casey Leedom <leedom@chelsio.com> Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/clocksource')
0 files changed, 0 insertions, 0 deletions