* [PATCH] Enable FAST-20 for onboard scsi
@ 2008-07-02 19:06 Thomas Bogendoerfer
2008-07-03 14:49 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 2008-07-02 19:06 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
Both onboard controller of the O2 support FAST-20 transfer speeds,
but the bit, which signals that to the aic driver, isn't set. Instead
of adding detection code to the scsi driver, we just fake the missing
bit in the PCI config space of the scsi chips.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
arch/mips/pci/ops-mace.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/mips/pci/ops-mace.c b/arch/mips/pci/ops-mace.c
index e958818..1cfb558 100644
--- a/arch/mips/pci/ops-mace.c
+++ b/arch/mips/pci/ops-mace.c
@@ -61,6 +61,13 @@ mace_pci_read_config(struct pci_bus *bus, unsigned int devfn,
/* ack possible master abort */
mace->pci.error &= ~MACEPCI_ERROR_MASTER_ABORT;
mace->pci.control = control;
+ /*
+ * someone forgot to set the ultra bit for the onboard
+ * scsi chips; we fake it here
+ */
+ if (bus->number == 0 && reg == 0x40 && size == 4 &&
+ (devfn == (1 << 3) || devfn == (2 << 3)))
+ *val |= 0x1000;
DPRINTK("read%d: reg=%08x,val=%02x\n", size * 8, reg, *val);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Enable FAST-20 for onboard scsi
2008-07-02 19:06 [PATCH] Enable FAST-20 for onboard scsi Thomas Bogendoerfer
@ 2008-07-03 14:49 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-07-03 14:49 UTC (permalink / raw)
To: Thomas Bogendoerfer; +Cc: linux-mips
On Wed, Jul 02, 2008 at 09:06:03PM +0200, Thomas Bogendoerfer wrote:
> Both onboard controller of the O2 support FAST-20 transfer speeds,
> but the bit, which signals that to the aic driver, isn't set. Instead
> of adding detection code to the scsi driver, we just fake the missing
> bit in the PCI config space of the scsi chips.
>
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Thanks, queued for 2.6.27.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-03 14:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 19:06 [PATCH] Enable FAST-20 for onboard scsi Thomas Bogendoerfer
2008-07-03 14:49 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox