projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5a5052
)
apple-gmux: Fix port address calculation in gmux_pio_write32()
author
Seth Forshee
<seth.forshee@canonical.com>
Wed, 22 Aug 2012 02:56:49 +0000
(21:56 -0500)
committer
Matthew Garrett
<mjg@redhat.com>
Thu, 13 Sep 2012 20:46:29 +0000
(16:46 -0400)
This function fails to add the start address of the gmux I/O range to
the requested port address and thus writes to the wrong location.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/apple-gmux.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/apple-gmux.c
b/drivers/platform/x86/apple-gmux.c
index 0e43477de337ac36ba993a76f952479d91754b06..5c17ba895692ce039c3ff2ec5bccb846a7f0271c 100644
(file)
--- a/
drivers/platform/x86/apple-gmux.c
+++ b/
drivers/platform/x86/apple-gmux.c
@@
-101,7
+101,7
@@
static void gmux_pio_write32(struct apple_gmux_data *gmux_data, int port,
for (i = 0; i < 4; i++) {
tmpval = (val >> (i * 8)) & 0xff;
- outb(tmpval, port + i);
+ outb(tmpval,
gmux_data->iostart +
port + i);
}
}