diff options
author | Jens Taprogge | 2012-09-04 17:01:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-09-04 23:39:54 +0200 |
commit | cea2f7cdff2af520dfeb99eec7a0a0d729a3720f (patch) | |
tree | 75c297e21327f73912ce386ebcc5a6e7a1b50bc4 /drivers/staging/ipack/devices | |
parent | Staging: ipack/bridges/tpci200: Reorganize tpci200_probe in preparation for f... (diff) | |
download | kernel-qcow2-linux-cea2f7cdff2af520dfeb99eec7a0a0d729a3720f.tar.gz kernel-qcow2-linux-cea2f7cdff2af520dfeb99eec7a0a0d729a3720f.tar.xz kernel-qcow2-linux-cea2f7cdff2af520dfeb99eec7a0a0d729a3720f.zip |
Staging: ipack/bridges/tpci200: Use the TPCI200 in big endian mode.
During initialization we configure the TPCI200 so it does not swap data
lanes on IndustryPack module access. The read and write functions are
changed accordingly.
We are taking this approach in the hope that all IP Carriers are able to
present the Module memory layout unchanged. We can thus directly access
the memory and registers of IP Modules without having to rely on the
read and write wrappers currently exposed in ipack_bus_opts. A later
patch will convert the existing driver and remove the wrappers.
Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ipack/devices')
-rw-r--r-- | drivers/staging/ipack/devices/ipoctal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index fd0e30132ca2..963ed20fb0db 100644 --- a/drivers/staging/ipack/devices/ipoctal.c +++ b/drivers/staging/ipack/devices/ipoctal.c @@ -449,7 +449,7 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr, */ ipoctal->dev->bus->ops->request_irq(ipoctal->dev, vector, ipoctal_irq_handler, ipoctal); - ipoctal->dev->bus->ops->write8(ipoctal->dev, IPACK_MEM_SPACE, 0, + ipoctal->dev->bus->ops->write8(ipoctal->dev, IPACK_MEM_SPACE, 1, vector); /* Register the TTY device */ |