PCI: dwc: all: Modify dbi accessors to access data of 4/2/1 bytes
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 13 Mar 2017 13:43:26 +0000 (19:13 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Apr 2017 13:40:55 +0000 (08:40 -0500)
commita509d7d9af5ebf86ffbefa98e49761d813fb1d40
tree7dc1c06d9aab039477a65b0d28464e2b88a9a6dd
parentb50b2db266d8a8c303e8d88590c6416dfe576c6c
PCI: dwc: all: Modify dbi accessors to access data of 4/2/1 bytes

Previously dbi accessors can be used to access data of size 4 bytes. But
there might be situations (like accessing MSI_MESSAGE_CONTROL in order to
set/get the number of required MSI interrupts in EP mode) where dbi
accessors must be used to access data of size 2. This is in preparation
for adding endpoint mode support to designware driver.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Niklas Cassel <niklas.cassel@axis.com>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: Joao Pinto <Joao.Pinto@synopsys.com>
drivers/pci/dwc/pci-exynos.c
drivers/pci/dwc/pcie-designware.c
drivers/pci/dwc/pcie-designware.h