* [PATCH 3/14] ps3: system bus minor mmio fix
@ 2007-01-25 2:39 Geoff Levand
2007-01-25 5:59 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Geoff Levand @ 2007-01-25 2:39 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Fix two minor bugs in the PS3 system bus mmio region code. First, on error or
when freeing a region, retain the bus_addr and len fields to allow subsequent
calls to create the region. Second, correct the region address argument to the
lv1_unmap_device_mmio_region() call.
Fixes modprobe/rmmod of some drivers.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
drivers/ps3/system-bus.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
--- ps3-linux-dev.orig/drivers/ps3/system-bus.c
+++ ps3-linux-dev/drivers/ps3/system-bus.c
@@ -50,7 +50,7 @@ int ps3_mmio_region_create(struct ps3_mm
if (result) {
pr_debug("%s:%d: lv1_map_device_mmio_region failed: %s\n",
__func__, __LINE__, ps3_result(result));
- r->lpar_addr = r->len = r->bus_addr = 0;
+ r->lpar_addr = 0;
}
dump_mmio_region(r);
@@ -62,13 +62,13 @@ int ps3_free_mmio_region(struct ps3_mmio
int result;
result = lv1_unmap_device_mmio_region(r->did.bus_id, r->did.dev_id,
- r->bus_addr);
+ r->lpar_addr);
if (result)
pr_debug("%s:%d: lv1_unmap_device_mmio_region failed: %s\n",
__func__, __LINE__, ps3_result(result));
- r->lpar_addr = r->len = r->bus_addr = 0;
+ r->lpar_addr = 0;
return result;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 3/14] ps3: system bus minor mmio fix
2007-01-25 2:39 [PATCH 3/14] ps3: system bus minor mmio fix Geoff Levand
@ 2007-01-25 5:59 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2007-01-25 5:59 UTC (permalink / raw)
To: linuxppc-dev; +Cc: paulus
On Thursday 25 January 2007 03:39, Geoff Levand wrote:
> From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>=20
> Fix two minor bugs in the PS3 system bus mmio region code. =A0First, on e=
rror or
> when freeing a region, retain the bus_addr and len fields to allow subseq=
uent
> calls to create the region. =A0Second, correct the region address argumen=
t to the
> lv1_unmap_device_mmio_region() call.
>=20
> Fixes modprobe/rmmod of some drivers.
>=20
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
>=20
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-25 5:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-25 2:39 [PATCH 3/14] ps3: system bus minor mmio fix Geoff Levand
2007-01-25 5:59 ` Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.