]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: pci-bridge-emul: Fix PCIe bit conflicts
authorJon Derrick <jonathan.derrick@intel.com>
Mon, 11 May 2020 16:21:14 +0000 (12:21 -0400)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 22 May 2020 11:39:35 +0000 (12:39 +0100)
commitb475a70d1a94eee8ff81140d51a85b5f08c4fe3c
treeb2b31f4dedfb65128ce5b1ed7324c8124fad97a5
parent9b8057e7f937f20763a90a8fc2333168af101732
PCI: pci-bridge-emul: Fix PCIe bit conflicts

This patch fixes two bit conflicts in the pci-bridge-emul driver:

1. Bit 3 of Device Status (19 of Device Control) is marked as both
   Write-1-to-Clear and Read-Only. It should be Write-1-to-Clear.
   The Read-Only and Reserved bitmasks are shifted by 1 bit due to this
   error.

2. Bit 12 of Slot Control is marked as both Read-Write and Reserved.
   It should be Read-Write.

Link: https://lore.kernel.org/r/20200511162117.6674-2-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