aboutsummaryrefslogtreecommitdiff
path: root/page-vary-common.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2023-02-16 21:03:48 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-03-02 03:10:49 -0500
commitf90d932094c03cb2ebb856a6da4ad0a5b05d9c27 (patch)
tree7da97def18c5f35f6fb15826e19048528b19651a /page-vary-common.c
parent6b72b84d089331f4c49b68fac0f7c5d25748ae46 (diff)
pcie: pcie_cap_slot_enable_power() use correct helper
*_by_mask() helpers shouldn't be used here (and that's the only one). *_by_mask() helpers do shift their value argument, but in pcie.c code we use values that are already shifted appropriately. Happily, PCI_EXP_SLTCTL_PWR_ON is zero, so shift doesn't matter. But if we apply same helper for PCI_EXP_SLTCTL_PWR_OFF constant it will do wrong thing. So, let's use instead pci_word_test_and_clear_mask() which is already used in the file to clear PCI_EXP_SLTCTL_PWR_OFF bit in pcie_cap_slot_init() and pcie_cap_slot_reset(). Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Anton Kuchin <antonkuchin@yandex-team.ru> Message-Id: <20230216180356.156832-11-vsementsov@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'page-vary-common.c')
0 files changed, 0 insertions, 0 deletions