[PATCH 4/6] staging: vc04_services: Remove dmac_map_area
Stefan Wahren
stefan.wahren at i2se.com
Wed Oct 19 11:11:07 PDT 2016
Hi Michael,
> Michael Zoran <mzoran at crowfest.net> hat am 19. Oktober 2016 um 10:37
> geschrieben:
>
>
> From 8084d0832baf89990adef43a62801fccde20d0d8 Mon Sep 17 00:00:00 2001
> F
> rom: Michael Zoran <mzoran at crowfest.net>
> Date: Wed, 19 Oct 2016 00:54:11
> -0700
> Subject: [PATCH 4/6] staging: vc04_services: Remove dmac_map_area
>
> T
> he arm specific code of VCHIQ uses dmac_map_area which is
> not currently
> supported on arm64. This change adds
> an architecture neutral
> replacement based on
> dma_map_page that does not use this feature.
>
> Signed-
> off-by: Michael Zoran <mzoran at crowfest.net>
> ---
>
> .../interface/vchiq_arm/vchiq_2835_arm.c | 118 ++++++++++--
> ...
> -118,7 +112,7 @@ int vchiq_platform_init(struct platform_device *pdev,
> VCHIQ_STATE_T *state)
> return -ENOMEM;
> }
>
> - WARN_ON(((int)slot_mem &
> (PAGE_SIZE - 1)) != 0);
> + WARN_ON(((unsigned long)slot_mem & (PAGE_SIZE
> - 1)) != 0);
>
> vchiq_slot_zero = vchiq_init_slots(slot_mem,
> slot_mem_size);
> if (!vchiq_slot_zero)
> @@ -170,6 +164,8 @@ int
> vchiq_platform_init(struct platform_device *pdev, VCHIQ_STATE_T *state)
>
> return err ? : -ENXIO;
> }
>
> + g_dev = dev;
> +
>
just a additional note, please avoid adding unnecessary newlines like this.
Stefan
More information about the linux-rpi-kernel
mailing list