diff options
| author | Kishon Vijay Abraham I <[email protected]> | 2019-03-25 09:39:47 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2019-05-01 14:50:13 +0000 |
| commit | 8f220664570e755946db1282f48e07f26e1f2cb4 (patch) | |
| tree | c0a52f24b01f7771b4abe0053edefa0c806bc27b /drivers/misc/pci_endpoint_test.c | |
| parent | misc: pci_endpoint_test: Add support to test PCI EP in AM654x (diff) | |
| download | kernel-8f220664570e755946db1282f48e07f26e1f2cb4.tar.gz kernel-8f220664570e755946db1282f48e07f26e1f2cb4.zip | |
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 <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'drivers/misc/pci_endpoint_test.c')
| -rw-r--r-- | drivers/misc/pci_endpoint_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index e015e8fa9bd3..7b015f2a1c6f 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -670,6 +670,7 @@ static int pci_endpoint_test_probe(struct pci_dev *pdev, data = (struct pci_endpoint_test_data *)ent->driver_data; if (data) { test_reg_bar = data->test_reg_bar; + test->test_reg_bar = test_reg_bar; test->alignment = data->alignment; irq_type = data->irq_type; } |
