From: Olaf Hering <olaf@aepfle.de>
To: linuxppc-dev@ozlabs.org, linux-ide@vger.kernel.org
Subject: adding Pegasus IDE quirk for pata_via
Date: Wed, 4 Apr 2007 13:16:35 +0200 [thread overview]
Message-ID: <20070404111635.GA1855@aepfle.de> (raw)
The pegaos board needs an irq quirk in pata_via.
Where is the quirk list for libata? I dont see one in pata_via.c
drivers/ide/pci/via82cxxx.c:init_hwif_via82cxxx()
440 #ifdef CONFIG_PPC_CHRP
441 if(machine_is(chrp) && _chrp_type == _CHRP_Pegasos) {
442 hwif->irq = hwif->channel ? 15 : 14;
443 }
444 #endif
This is in the firmware node. Will a fixup of the 'interrupts' property
work or does everything poke directly at the PCI registers?
Should fixup_device_tree_chrp() take care of the 'interrupts' property?
/proc/device-tree/pci@80000000/ide@C,1:
name "ide"
linux,phandle 0fc5c3a0 (264618912)
interrupt-parent 0fc5b948 (264616264)
assigned-addresses 01006110 00000000 fe001000 00000000 00000008
01006114 00000000 fe00100c 00000000 00000004
01006118 00000000 fe001010 00000000 00000008
0100611c 00000000 fe00101c 00000000 00000004
01006120 00000000 fe001020 00000000 00000010
device_type "spi"
reg 00006100 00000000 00000000 00000000 00000000 01006110
00000000 00000000 00000000 00000008 01006114 00000000
00000000 00000000 00000004 01006118 00000000 00000000
00000000 00000008 0100611c 00000000 00000000 00000000
00000004 01006120 00000000 00000000 00000000 00000010
max-latency 00000000
min-grant 00000000
fast-back-to-back
devsel-speed 00000001
interrupts 00000014 00000000 00000015 00000000
.description "PCI IDE Controller"
.part-number "VT82C586/596/686"
.vendor-name "VIA"
subsystem-vendor-id 00000000
subsystem-id 00000000
class-code 0001018f (65935)
revision-id 00000006
device-id 00000571 (1393)
vendor-id 00001106 (4358)
0000:00:0c.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8f [Master SecP SecO PriP PriO])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin A routed to IRQ 20
Region 0: I/O ports at 1000 [size=8]
Region 1: I/O ports at 100c [size=4]
Region 2: I/O ports at 1010 [size=8]
Region 3: I/O ports at 101c [size=4]
Region 4: I/O ports at 1020 [size=16]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
next reply other threads:[~2007-04-04 11:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-04 11:16 Olaf Hering [this message]
2007-04-04 16:20 ` [PATCH] add correct interrupt property for pegasos ide Olaf Hering
2007-04-04 18:10 ` Bartlomiej Zolnierkiewicz
2007-04-04 18:11 ` Olaf Hering
2007-04-04 18:42 ` Bartlomiej Zolnierkiewicz
2007-04-05 1:47 ` Benjamin Herrenschmidt
2007-04-05 10:32 ` Olaf Hering
2007-04-05 1:46 ` Benjamin Herrenschmidt
2007-04-05 0:55 ` Stephen Rothwell
2007-04-04 23:52 ` adding Pegasus IDE quirk for pata_via Benjamin Herrenschmidt
2007-04-09 13:13 ` Matt Sealey
2007-04-09 14:40 ` Alan Cox
2007-04-09 17:39 ` Matt Sealey
2007-04-10 16:22 ` Olaf Hering
2007-08-16 17:01 ` Olaf Hering
2007-08-16 17:00 ` Olaf Hering
2007-08-17 13:10 ` [PATCH] advertise correct IDE mode on Pegasos2 Olaf Hering
2007-08-17 14:33 ` Olaf Hering
2007-08-17 18:19 ` Matt Sealey
2007-08-17 18:30 ` Olaf Hering
2007-08-17 18:27 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070404111635.GA1855@aepfle.de \
--to=olaf@aepfle.de \
--cc=linux-ide@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).