Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755501AbdCGOXL (ORCPT ); Tue, 7 Mar 2017 09:23:11 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:44713 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754234AbdCGOWy (ORCPT ); Tue, 7 Mar 2017 09:22:54 -0500 Subject: Re: [PATCH v2 5/7] PCI: dwc: all: Modify dbi accessors to access data of 4/2/1 bytes To: Kishon Vijay Abraham I , Bjorn Helgaas , Joao Pinto , , , , , , References: <1488880372-7390-1-git-send-email-kishon@ti.com> <1488880372-7390-6-git-send-email-kishon@ti.com> CC: , Jingoo Han , Richard Zhu , Lucas Stach , "Murali Karicheri" , Thomas Petazzoni , Niklas Cassel , Jesper Nilsson , Zhou Wang , Gabriele Paoloni From: Joao Pinto Message-ID: <090d9947-8003-4608-5e3a-92f62f90eda6@synopsys.com> Date: Tue, 7 Mar 2017 11:18:35 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <1488880372-7390-6-git-send-email-kishon@ti.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.107.19.101] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2233 Lines: 51 ?s 9:52 AM de 3/7/2017, Kishon Vijay Abraham I escreveu: > 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. > > Cc: Jingoo Han > Cc: Richard Zhu > Cc: Lucas Stach > Cc: Murali Karicheri > Cc: Thomas Petazzoni > Cc: Niklas Cassel > Cc: Jesper Nilsson > Cc: Joao Pinto > Cc: Zhou Wang > Cc: Gabriele Paoloni > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/pci/dwc/Kconfig | 18 ++++---- > drivers/pci/dwc/pci-dra7xx.c | 8 ++-- > drivers/pci/dwc/pci-exynos.c | 16 +++---- > drivers/pci/dwc/pci-imx6.c | 54 +++++++++++----------- > drivers/pci/dwc/pci-keystone-dw.c | 13 +++--- > drivers/pci/dwc/pcie-armada8k.c | 38 ++++++++-------- > drivers/pci/dwc/pcie-artpec6.c | 6 +-- > drivers/pci/dwc/pcie-designware-host.c | 18 ++++---- > drivers/pci/dwc/pcie-designware.c | 77 +++++++++++++++++++------------- > drivers/pci/dwc/pcie-designware.h | 14 +++--- > drivers/pci/dwc/pcie-hisi.c | 14 +++--- > 11 files changed, 147 insertions(+), 129 deletions(-) > > diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig > index dfb8a69..cb3d5d0 100644 > --- a/drivers/pci/dwc/Kconfig > +++ b/drivers/pci/dwc/Kconfig > @@ -36,7 +36,7 @@ config PCIE_DW_PLAT > config PCI_EXYNOS > bool "Samsung Exynos PCIe controller" > depends on PCI > - depends on SOC_EXYNOS5440 > + depends on SOC_EXYNOS5440 || COMPILE_TEST Kishon, I have the idea that Bjorn suggested some time ago not to use COMPILE_TEST, because there were some problems in some drivers that needed specific arch stuff. Bjorn: Could you please confirm? Thanks.