From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH V7 06/11] of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices Date: Mon, 30 Jan 2017 08:09:18 +0100 Message-ID: References: <1485188293-20263-1-git-send-email-sricharan@codeaurora.org> <1485188293-20263-7-git-send-email-sricharan@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1485188293-20263-7-git-send-email-sricharan@codeaurora.org> Sender: linux-acpi-owner@vger.kernel.org To: Sricharan R Cc: Robin Murphy , Will Deacon , Joerg Roedel , Lorenzo Pieralisi , "open list:AMD IOMMU (AMD-VI)" , "linux-arm-kernel@lists.infradead.org" , linux-arm-msm@vger.kernel.org, Marek Szyprowski , Bjorn Helgaas , Linux PCI , ACPI Devel Maling List List-Id: linux-arm-msm@vger.kernel.org On Mon, Jan 23, 2017 at 5:18 PM, Sricharan R wrote: > Configuring DMA ops at probe time will allow deferring device probe when > the IOMMU isn't available yet. The dma_configure for the device is > now called from the generic device_attach callback just before the > bus/driver probe is called. This way, configuring the DMA ops for the > device would be called at the same place for all bus_types, hence the > deferred probing mechanism should work for all buses as well. > > pci_bus_add_devices (platform/amba)(_device_create/driver_register) > | | > pci_bus_add_device (device_add/driver_register) > | | > device_attach device_initial_probe > | | > __device_attach_driver __device_attach_driver > | > driver_probe_device > | > really_probe > | > dma_configure > > Similarly on the device/driver_unregister path __device_release_driver is > called which inturn calls dma_deconfigure. > > This patch changes the dma ops configuration to probe time for > both OF and ACPI based platform/amba/pci bus devices. > > Signed-off-by: Sricharan R Acked-by: Rafael J. Wysocki From mboxrd@z Thu Jan 1 00:00:00 1970 From: rafael@kernel.org (Rafael J. Wysocki) Date: Mon, 30 Jan 2017 08:09:18 +0100 Subject: [PATCH V7 06/11] of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices In-Reply-To: <1485188293-20263-7-git-send-email-sricharan@codeaurora.org> References: <1485188293-20263-1-git-send-email-sricharan@codeaurora.org> <1485188293-20263-7-git-send-email-sricharan@codeaurora.org> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jan 23, 2017 at 5:18 PM, Sricharan R wrote: > Configuring DMA ops at probe time will allow deferring device probe when > the IOMMU isn't available yet. The dma_configure for the device is > now called from the generic device_attach callback just before the > bus/driver probe is called. This way, configuring the DMA ops for the > device would be called at the same place for all bus_types, hence the > deferred probing mechanism should work for all buses as well. > > pci_bus_add_devices (platform/amba)(_device_create/driver_register) > | | > pci_bus_add_device (device_add/driver_register) > | | > device_attach device_initial_probe > | | > __device_attach_driver __device_attach_driver > | > driver_probe_device > | > really_probe > | > dma_configure > > Similarly on the device/driver_unregister path __device_release_driver is > called which inturn calls dma_deconfigure. > > This patch changes the dma ops configuration to probe time for > both OF and ACPI based platform/amba/pci bus devices. > > Signed-off-by: Sricharan R Acked-by: Rafael J. Wysocki