Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362802
b: refs/heads/master
c: b170bad
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Apr 17, 2013
1 parent 0fb3883 commit b78e8c6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0bacb7fc4f7defb15a6575d92f8ea4342f8f09e
refs/heads/master: b170bad40dab1a1684d629b37cb65a5281d35bd8
4 changes: 4 additions & 0 deletions trunk/arch/s390/include/asm/pci_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len)
int cc;

cc = s390pci_load(&data, req, offset);
if (cc)
goto out;

switch (len) {
case 1:
*((u8 *) dst) = (u8) data;
Expand All @@ -106,6 +109,7 @@ static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len)
*((u64 *) dst) = (u64) data;
break;
}
out:
return cc;
}

Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/s390/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ static int zpci_cfg_load(struct zpci_dev *zdev, int offset, u32 *val, u8 len)
int rc;

rc = s390pci_load(&data, req, offset);
data = data << ((8 - len) * 8);
data = le64_to_cpu(data);
if (!rc)
if (!rc) {
data = data << ((8 - len) * 8);
data = le64_to_cpu(data);
*val = (u32) data;
else
} else
*val = 0xffffffff;
return rc;
}
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/s390/pci/pci_insn.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ static inline int __pcilg(u64 *data, u64 req, u64 offset, u8 *status)
: "d" (__offset)
: "cc");
*status = __req >> 24 & 0xff;
*data = __data;
if (!cc)
*data = __data;

return cc;
}

Expand Down

0 comments on commit b78e8c6

Please sign in to comment.