linux/drivers/pci/endpoint
Kishon Vijay Abraham I 3ecf3232c5 PCI: endpoint: Do not reset *command* inadvertently
pci_epf_test_cmd_handler() is the delayed work function which reads
*command* (set by the host) and performs various actions requested by the
host periodically. If the value in *command* is '0', it goes to the
reset_handler where it resets *command* to '0' and queues
pci_epf_test_cmd_handler().

However if the host writes a value to the *command* just after the
pci-epf-test driver checks *command* for '0' and before the control goes to
reset_handler, the *command* will be reset to '0' and the pci-epf-test
driver won't be able to perform the actions requested by the host.  Fix it
here by not resetting the *command* in the reset_handler.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2017-08-29 16:00:37 -05:00
..
functions PCI: endpoint: Do not reset *command* inadvertently 2017-08-29 16:00:37 -05:00
Kconfig PCI: endpoint: Make PCI_ENDPOINT depend on HAS_DMA 2017-05-22 16:23:59 -05:00
Makefile PCI: endpoint: functions: Add an EP function to test PCI 2017-04-11 14:18:37 -05:00
pci-ep-cfs.c
pci-epc-core.c PCI: endpoint: Use of_dma_configure() to set initial DMA mask 2017-08-18 10:41:20 -05:00
pci-epc-mem.c PCI: endpoint: Add support for configurable page size 2017-08-29 16:00:37 -05:00
pci-epf-core.c PCI: endpoint: Make ->remove() callback optional 2017-08-29 16:00:36 -05:00