public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] acpi-dma, doc: append managed function to the list
@ 2013-08-21 11:27 Andy Shevchenko
  2013-08-21 11:27 ` [PATCH 2/2] acpi-dma: remove ugly conversion Andy Shevchenko
  2013-08-25 11:14 ` [PATCH 1/2] acpi-dma, doc: append managed function to the list Vinod Koul
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2013-08-21 11:27 UTC (permalink / raw)
  To: Vinod Koul, linux-kernel; +Cc: Andy Shevchenko, Rob Landley

ACPI DMA provides managed function to register the slave DMA controller in the
internal container. This patch anounces that function in the corresponding
documentation file.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rob Landley <rob@landley.net>
---
 Documentation/driver-model/devres.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index fb57d85..fcb34a5 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -299,3 +299,6 @@ PWM
 PHY
   devm_usb_get_phy()
   devm_usb_put_phy()
+
+SLAVE DMA ENGINE
+  devm_acpi_dma_controller_register()
-- 
1.8.4.rc2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] acpi-dma: remove ugly conversion
  2013-08-21 11:27 [PATCH 1/2] acpi-dma, doc: append managed function to the list Andy Shevchenko
@ 2013-08-21 11:27 ` Andy Shevchenko
  2013-08-21 12:11   ` Mika Westerberg
  2013-08-25 11:14 ` [PATCH 1/2] acpi-dma, doc: append managed function to the list Vinod Koul
  1 sibling, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2013-08-21 11:27 UTC (permalink / raw)
  To: Vinod Koul, linux-kernel; +Cc: Andy Shevchenko, Mika Westerberg

In case of big endian CPU we have to convert either all fields in the structure
or leave this job to ACPICA. The second choice seems the best.

So, let's remove the ugly conversion that is not fully comprehensive anyway.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/dma/acpi-dma.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/dma/acpi-dma.c b/drivers/dma/acpi-dma.c
index ba7f932..e69b03c 100644
--- a/drivers/dma/acpi-dma.c
+++ b/drivers/dma/acpi-dma.c
@@ -43,7 +43,6 @@ static int acpi_dma_parse_resource_group(const struct acpi_csrt_group *grp,
 	struct list_head resource_list;
 	struct resource_list_entry *rentry;
 	resource_size_t mem = 0, irq = 0;
-	u32 vendor_id;
 	int ret;
 
 	if (grp->shared_info_length != sizeof(struct acpi_csrt_shared_info))
@@ -73,9 +72,8 @@ static int acpi_dma_parse_resource_group(const struct acpi_csrt_group *grp,
 	if (si->mmio_base_low != mem || si->gsi_interrupt != irq)
 		return 0;
 
-	vendor_id = le32_to_cpu((__force __le32)grp->vendor_id);
 	dev_dbg(&adev->dev, "matches with %.4s%04X (rev %u)\n",
-		(char *)&vendor_id, grp->device_id, grp->revision);
+		(char *)&grp->vendor_id, grp->device_id, grp->revision);
 
 	/* Check if the request line range is available */
 	if (si->base_request_line == 0 && si->num_handshake_signals == 0)
-- 
1.8.4.rc2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] acpi-dma: remove ugly conversion
  2013-08-21 11:27 ` [PATCH 2/2] acpi-dma: remove ugly conversion Andy Shevchenko
@ 2013-08-21 12:11   ` Mika Westerberg
  0 siblings, 0 replies; 4+ messages in thread
From: Mika Westerberg @ 2013-08-21 12:11 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Vinod Koul, linux-kernel

On Wed, Aug 21, 2013 at 02:27:06PM +0300, Andy Shevchenko wrote:
> In case of big endian CPU we have to convert either all fields in the structure
> or leave this job to ACPICA. The second choice seems the best.
> 
> So, let's remove the ugly conversion that is not fully comprehensive anyway.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Mika Westerberg <mika.westerberg@linux.intel.com>

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] acpi-dma, doc: append managed function to the list
  2013-08-21 11:27 [PATCH 1/2] acpi-dma, doc: append managed function to the list Andy Shevchenko
  2013-08-21 11:27 ` [PATCH 2/2] acpi-dma: remove ugly conversion Andy Shevchenko
@ 2013-08-25 11:14 ` Vinod Koul
  1 sibling, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2013-08-25 11:14 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-kernel, Rob Landley

On Wed, Aug 21, 2013 at 02:27:05PM +0300, Andy Shevchenko wrote:
> ACPI DMA provides managed function to register the slave DMA controller in the
> internal container. This patch anounces that function in the corresponding
> documentation file.
Applied, thanks

~Vinod

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-25 11:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 11:27 [PATCH 1/2] acpi-dma, doc: append managed function to the list Andy Shevchenko
2013-08-21 11:27 ` [PATCH 2/2] acpi-dma: remove ugly conversion Andy Shevchenko
2013-08-21 12:11   ` Mika Westerberg
2013-08-25 11:14 ` [PATCH 1/2] acpi-dma, doc: append managed function to the list Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox