Re: [PATCH v3] iommu: Add driver for Renesas VMSA-compatible IPMMU

2014-06-02 Thread Khiem Nguyen
Hi Laurent, Thanks for the patch. + if (!iommu_present(&platform_bus_type)) + bus_set_iommu(&platform_bus_type, &ipmmu_ops); With this code, if error occurs, it's hidden. I think it should be like below, + ret = bus_set_iommu(&platform_bus_type, &ipmmu_ops); +

Re: [PATCH] driver core: platform: add device binding path 'driver_override'

2014-06-02 Thread Greg KH
On Mon, Jun 02, 2014 at 07:42:58PM -0500, Kim Phillips wrote: > Needed by platform device drivers, such as the upcoming > vfio-platform driver, in order to bypass the existing OF, ACPI, > id_table and name string matches, and successfully be able to be > bound to any device, like so: > > echo vfio

[PATCH] driver core: platform: add device binding path 'driver_override'

2014-06-02 Thread Kim Phillips
Needed by platform device drivers, such as the upcoming vfio-platform driver, in order to bypass the existing OF, ACPI, id_table and name string matches, and successfully be able to be bound to any device, like so: echo vfio-platform > /sys/bus/platform/devices/fff51000.ethernet/driver_override ec

[PATCH v2 0/4] devres: dma-mapping: Introducing new functions

2014-06-02 Thread Eli Billauer
This patchset consists of new functions to the managed device resource API, followed by a patch for the Xillybus driver, which is my motivation and what I tested with. This is a resubmission after changing the API slightly. Rationale: While migrating the staging/xillybus driver to rely completely

[PATCH v2 4/4] staging: xillybus: Use devm_ API for memory allocation and DMA mapping

2014-06-02 Thread Eli Billauer
Managed device resource API replaces code that reinvents it for memory allocation, page allocation and DMA mapping. Suggested-by: Baruch Siach Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus.h | 38 +-- drivers/staging/xillybus/xillybus_core.c | 186 +--

[PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-02 Thread Eli Billauer
dmam_map_single() and dmam_unmap_single() are the managed counterparts for the respective dma_* functions. Note that dmam_map_single() returns a status value rather than the DMA handle. The DMA handle is passed to the caller through a pointer in the arguments. The reason for this API change is th

[PATCH v2 3/4] dma-mapping: pci: Add devm_ interface for pci_map_single

2014-06-02 Thread Eli Billauer
Signed-off-by: Eli Billauer --- Documentation/driver-model/devres.txt |2 ++ include/asm-generic/pci-dma-compat.h | 18 ++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index 2

[PATCH v2 2/4] dma-mapping: Add devm_ interface for dma_map_single_attrs()

2014-06-02 Thread Eli Billauer
dmam_map_single_attrs() and dmam_unmap_single_attrs() replace the non-*_attrs functions, which are implemented as defines instead. The case of a non-NULL @attrs parameter has not been tested. Suggested-by: Tejun Heo Signed-off-by: Eli Billauer --- Documentation/driver-model/devres.txt|

Re: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-06-02 Thread Dave Martin
On Fri, May 30, 2014 at 09:01:19PM +0200, Arnd Bergmann wrote: > On Friday 30 May 2014 12:22:32 Dave Martin wrote: > > > + > > > +Examples: > > > += > > > + > > > +Single-master IOMMU: > > > + > > > + > > > + iommu { > > > + #address-cells = <0>; > > > +

Re: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-06-02 Thread Dave Martin
On Fri, May 30, 2014 at 09:11:07PM +0200, Arnd Bergmann wrote: > On Friday 30 May 2014 12:27:28 Dave Martin wrote: > > On Fri, May 30, 2014 at 08:30:08AM +0100, Thierry Reding wrote: > > > On Thu, May 29, 2014 at 09:52:22AM -0600, Stephen Warren wrote: > > > > On 05/23/2014 02:36 PM, Thierry Reding

Re: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-06-02 Thread Dave Martin
On Fri, May 30, 2014 at 09:49:59PM +0200, Arnd Bergmann wrote: > On Friday 30 May 2014 14:31:55 Rob Herring wrote: > > On Fri, May 30, 2014 at 2:06 PM, Arnd Bergmann wrote: > > > On Friday 30 May 2014 08:16:05 Rob Herring wrote: > > >> On Fri, May 23, 2014 at 3:33 PM, Thierry Reding > > >> wrote: