]> git.ipfire.org Git - people/arne_f/kernel.git/commit
misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 25 Mar 2019 09:39:47 +0000 (15:09 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 1 May 2019 14:50:13 +0000 (15:50 +0100)
commit8f220664570e755946db1282f48e07f26e1f2cb4
treec0a52f24b01f7771b4abe0053edefa0c806bc27b
parent5bb04b19230c02cc1b450b029856cbe093e09908
misc: pci_endpoint_test: Fix test_reg_bar to be updated in pci_endpoint_test

commit 834b90519925 ("misc: pci_endpoint_test: Add support for
PCI_ENDPOINT_TEST regs to be mapped to any BAR") while adding
test_reg_bar in order to map PCI_ENDPOINT_TEST regs to be mapped to any
BAR failed to update test_reg_bar in pci_endpoint_test, resulting in
test_reg_bar having invalid value when used outside probe.

Fix it.

Fixes: 834b90519925 ("misc: pci_endpoint_test: Add support for PCI_ENDPOINT_TEST regs to be mapped to any BAR")
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/misc/pci_endpoint_test.c