Staging: vme: Assure D16 cycle if required in master_read and master_write
authorArthur Benilov <arthur.benilov@gmail.com>
Fri, 24 Sep 2010 17:26:13 +0000 (19:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Sep 2010 11:33:26 +0000 (04:33 -0700)
commit53059aa05988761a738fa8bc082bbf3c5d4462d1
tree1d260afd6dce5e55389516d444570e4e6bc42c37
parent0abd242839eac8437521101c9361c095728eded3
Staging: vme: Assure D16 cycle if required in master_read and master_write

From a95892fc2246d6dc45f57b7dd68f32b9b28bd0f7 Mon Sep 17 00:00:00 2001
From: Arthur Benilov <arthur.benilov@gmail.com>
Date: Fri, 24 Sep 2010 13:51:07 +0200
Subject: [PATCH] Staging: vme: Assure D16 cycle if required in master_read and master_write

memcpy_fromio() and memcpy_toio() functions apply internally to __memcpy() that
performs data transfer in 32-bits or 8-bits blocks (at least on x86). This makes
impossible to perform D16 cycle with ca91cx42 bridge. Provided modification
assures performing data transfer with 32, 16, and 8 bits chunks.

Signed-off-by: Arthur Benilov <arthur.benilov@iba-group.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vme/bridges/vme_ca91cx42.c