Re: [PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-12 Thread Joe Perches
On Fri, 2016-02-12 at 12:53 +0530, Shraddha Barke wrote: > setup_access_params_addr has 2 goals- > > -Initialize the access_params field so that it can be used to send and read > commands from the device in access_with_param > -Get a bus address for the allocated memory to transfer to the device.

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-11 Thread Shraddha Barke
setup_access_params_addr has 2 goals- -Initialize the access_params field so that it can be used to send and read commands from the device in access_with_param -Get a bus address for the allocated memory to transfer to the device. Replace the combination of devm_kzalloc and _pa() with dmam_alloc_

Re: [PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-07 Thread Greg Kroah-Hartman
On Sat, Feb 06, 2016 at 10:36:20AM +0530, Shraddha Barke wrote: > setup_access_params_addr has 2 goals- > > -Initialize the access_params field so that it can be used to send and read > commands from the device in access_with_param > -Get a bus address for the allocated memory to transfer to the d

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-05 Thread Shraddha Barke
setup_access_params_addr has 2 goals- -Initialize the access_params field so that it can be used to send and read commands from the device in access_with_param -Get a bus address for the allocated memory to transfer to the device. Replace the combination of devm_kzalloc and _pa() with dmam_alloc_

Re: [PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Joe Perches
On Sat, 2016-01-23 at 01:21 +0530, Shraddha Barke wrote: > Function setup_access_params_addr is called only from probe function, hence > managed version dmam_alloc_coherent is used. trivia: > diff --git a/drivers/platform/goldfish/goldfish_pipe.c > b/drivers/platform/goldfish/goldfish_pipe.c []

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Shraddha Barke
Function setup_access_params_addr is called only from probe function, hence managed version dmam_alloc_coherent is used. setup_access_params_addr has 2 goals- -Initialize the access_params field so that it can be used to send and read commands from the device in access_with_param -Get a bus addre