Linux ATA/IDE development
 help / color / mirror / Atom feed
* libata-sff/pata_cmd64x problem with hardwired configurations
@ 2011-04-17 23:58 James Bottomley
  2011-04-18 10:12 ` Sergei Shtylyov
  0 siblings, 1 reply; 9+ messages in thread
From: James Bottomley @ 2011-04-17 23:58 UTC (permalink / raw)
  To: linux-ide; +Cc: 622997

I've got a parisc system where the DVD drive is hardwired to a silicon
image controller:

00:02.0 IDE interface: Silicon Image, Inc. SiI 0649 Ultra ATA/100 PCI to
ATA Host Controller (rev 02) (prog-if 8f [Master SecP SecO PriP PriO])
        Subsystem: Silicon Image, Inc. SiI 0649 Ultra ATA/100 PCI to ATA
Host Controller
        Flags: bus master, medium devsel, latency 64, IRQ 69
        I/O ports at 0d18 [size=8]
        I/O ports at 0d24 [size=4]
        I/O ports at 0d10 [size=8]
        I/O ports at 0d20 [size=4]
        I/O ports at 0d00 [size=16]
        Capabilities: [60] Power Management version 2
        Kernel driver in use: pata_cmd64x

The specific problem is that any access to the registers where the
secondary port should be causes an instant fault on the box (I think
because the second port just isn't wired up internally, so the memory
doesn't respond), so the default libata-sff driver that pata_cmd64x is
attached to causes this by insisting on probing both ports.

I can get all of this working by fixing up all the hard coded knowledge
in libata-sff only to use a single port.

However, I can't fix the libata-sff driver until I know how to tell
there's only one port wired.  Does anyone with cmd649 knowledge have any
idea how I might tell this?

James



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-19 13:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-17 23:58 libata-sff/pata_cmd64x problem with hardwired configurations James Bottomley
2011-04-18 10:12 ` Sergei Shtylyov
2011-04-18 15:55   ` James Bottomley
2011-04-18 16:16     ` Sergei Shtylyov
2011-04-19  9:20       ` Bartlomiej Zolnierkiewicz
2011-04-19 10:08         ` Alan Cox
2011-04-19 11:50           ` Bartlomiej Zolnierkiewicz
2011-04-19 12:29             ` Alan Cox
2011-04-19 13:59         ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox