summaryrefslogtreecommitdiff
path: root/drivers/misc/swap_case.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-03-31 10:04:23 -0400
committerTom Rini <trini@konsulko.com>2023-03-31 10:04:23 -0400
commitb8deed53fe6a55ef76b4f9038bb419a9c853a9fa (patch)
tree2f0cdb8f35d7c51611417bab680583a65bf21306 /drivers/misc/swap_case.c
parentf1617e99b933d2c3ecb381954148284d37bf922e (diff)
parentf98b112f9e0516fc9333611d1228d0b634aa353e (diff)
Merge branch '2023-03-30-assorted-general-upates' into next
- RTC cleanups / improvements, run_commandf() cleanups, fs bugfixes, socrates config fix, PCI MPS support, GPIO improvements, other code cleanups
Diffstat (limited to 'drivers/misc/swap_case.c')
-rw-r--r--drivers/misc/swap_case.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c
index 7093ad1cd4f..ee5c12bd0a4 100644
--- a/drivers/misc/swap_case.c
+++ b/drivers/misc/swap_case.c
@@ -165,6 +165,9 @@ static int sandbox_swap_case_read_config(const struct udevice *emul,
case PCI_CAP_ID_EXP_OFFSET + PCI_CAP_LIST_NEXT:
*valuep = PCI_CAP_ID_MSIX_OFFSET;
break;
+ case PCI_CAP_ID_EXP_OFFSET + PCI_EXP_DEVCAP:
+ *valuep = PCI_EXP_DEVCAP_PAYLOAD_256B;
+ break;
case PCI_CAP_ID_MSIX_OFFSET:
if (sandbox_swap_case_use_ea(emul))
*valuep = (PCI_CAP_ID_EA_OFFSET << 8) | PCI_CAP_ID_MSIX;