Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101780
b: refs/heads/master
c: cde274c
h: refs/heads/master
v: v3
  • Loading branch information
Mike Mason authored and Benjamin Herrenschmidt committed Jul 9, 2008
1 parent 2704589 commit d91ef9c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b887ec620a7575f54fa025d38fa1008dc8a3b12a
refs/heads/master: cde274c0c789404df8ece3f9e7d6506caf0127e2
14 changes: 14 additions & 0 deletions trunk/arch/powerpc/platforms/pseries/eeh.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ int rtas_set_slot_reset(struct pci_dn *pdn)
static inline void __restore_bars (struct pci_dn *pdn)
{
int i;
u32 cmd;

if (NULL==pdn->phb) return;
for (i=4; i<10; i++) {
Expand All @@ -832,6 +833,19 @@ static inline void __restore_bars (struct pci_dn *pdn)

/* max latency, min grant, interrupt pin and line */
rtas_write_config(pdn, 15*4, 4, pdn->config_space[15]);

/* Restore PERR & SERR bits, some devices require it,
don't touch the other command bits */
rtas_read_config(pdn, PCI_COMMAND, 4, &cmd);
if (pdn->config_space[1] & PCI_COMMAND_PARITY)
cmd |= PCI_COMMAND_PARITY;
else
cmd &= ~PCI_COMMAND_PARITY;
if (pdn->config_space[1] & PCI_COMMAND_SERR)
cmd |= PCI_COMMAND_SERR;
else
cmd &= ~PCI_COMMAND_SERR;
rtas_write_config(pdn, PCI_COMMAND, 4, cmd);
}

/**
Expand Down

0 comments on commit d91ef9c

Please sign in to comment.