PCI: pci-bridge-emul: Eliminate the 'reserved' member
authorJon Derrick <jonathan.derrick@intel.com>
Mon, 11 May 2020 16:21:17 +0000 (12:21 -0400)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 22 May 2020 11:39:35 +0000 (12:39 +0100)
commit1446978d560fd708af4dfc10863109bc098e5b26
tree3476550ee2e909dc0f4f6c7e20616d3720b1bbae
parent2960865127d77bce085d349c94d49faf51517df3
PCI: pci-bridge-emul: Eliminate the 'reserved' member

Per PCIe 5.0 r1.0, Terms and Acronyms, Page 80:

  Reserved register fields must be read only and must return 0 (all 0's
  for multi-bit fields) when read. Reserved encodings for register and
  packet fields must not be used. Any implementation dependence on a
  Reserved field value or encoding will result in an implementation that
  is not PCI Express-compliant.

This patch ensures reads will return 0 for any bit not in the Read-Only,
Read-Write, or Write-1-to-Clear bitmasks.

Link: https://lore.kernel.org/r/20200511162117.6674-5-jonathan.derrick@intel.com
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
drivers/pci/pci-bridge-emul.c