From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: TAKADA Yoshihito <takada@mbf.nifty.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: IDE driver assined IRQ for disabled IDE channel
Date: Sun, 27 Jul 2008 15:56:52 +0200 [thread overview]
Message-ID: <200807271556.52270.bzolnier@gmail.com> (raw)
In-Reply-To: <20080727.105140.141855485.takada@mbf.nifty.com>
On Sunday 27 July 2008, TAKADA Yoshihito wrote:
> From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> Subject: Re: IDE driver assined IRQ for disabled IDE channel
> Date: Sat, 26 Jul 2008 13:58:59 +0200
>
> Hi. Thanks for your reply.
>
> > Could you please post the full dmesg?
>
> Ok. Attached it.
Thank you.
dmesg-2.6.26:
...
PCI: PCI BIOS revision 2.10 entry at 0xfb9a0, last bus=0
PCI: Using configuration type 1 for base access
Setting up standard PCI resources
...
Uniform Multi-Platform E-IDE driver
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
Probing IDE interface ide0...
hda: IC25N030ATCS04-0, ATA DISK drive
Probing IDE interface ide1...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
...
ide_generic has no enablebits checking but 'ide_generic.probe_mask=1'
kernel parameter can be used to limit probing to the first port only.
However shouldn't a designated IDE PCI host driver be used instead?
[ if this is Cx5520 PCI IDE, the cs5520 host driver misses enablebits
checking, untested fix attached ]
> > Unfortunately we can't fix it this way as this will cause regression
> > for other people (we now want ports with no devices attached to be also
> > registered to allow warm-plugging of IDE devices).
>
> ide_probe_port() returns -ENODEV, so hwif->present clear to 0.
> I think hwif->present mean IDE channel is exist/enabled. Doesn't mean
> connected devices(disks, CD-ROM drives and others).
It used to mean both because the port was registered only if there
were devices connected to it but it is no longer a case (seems like
->present documentation in ide.h is out of date now and needs fixing).
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: [PATCH] cs5520: add enablebits checking
Based on sparse comments in OpenFirmware code
(no Cx5510/Cx5520 datasheet here).
Cc: TAKADA Yoshihito <takada@mbf.nifty.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/pci/cs5520.c | 1 +
1 file changed, 1 insertion(+)
Index: b/drivers/ide/pci/cs5520.c
===================================================================
--- a/drivers/ide/pci/cs5520.c
+++ b/drivers/ide/pci/cs5520.c
@@ -123,6 +123,7 @@ static const struct ide_dma_ops cs5520_d
#define DECLARE_CS_DEV(name_str) \
{ \
.name = name_str, \
+ .enablebits = { {0x60, 0x01, 0x01}, {0x60, 0x02, 0x02} }, \
.port_ops = &cs5520_port_ops, \
.dma_ops = &cs5520_dma_ops, \
.host_flags = IDE_HFLAG_ISA_PORTS | \
next prev parent reply other threads:[~2008-07-27 13:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 5:31 IDE driver assined IRQ for disabled IDE channel TAKADA Yoshihito
2008-07-26 11:58 ` Bartlomiej Zolnierkiewicz
2008-07-27 1:51 ` TAKADA Yoshihito
2008-07-27 13:56 ` Bartlomiej Zolnierkiewicz [this message]
2008-07-30 17:57 ` TAKADA Yoshihito
2008-08-02 16:28 ` Bartlomiej Zolnierkiewicz
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=200807271556.52270.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=takada@mbf.nifty.com \
/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).