public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Dalecki <dalecki@evision-ventures.com>
To: Andries.Brouwer@cwi.nl
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: IDE cleanup eats disks
Date: Mon, 04 Mar 2002 11:44:08 +0100	[thread overview]
Message-ID: <3C834FF8.4040405@evision-ventures.com> (raw)
In-Reply-To: <UTC200203032202.WAA145534.aeb@cwi.nl>

Andries.Brouwer@cwi.nl wrote:
> On one of my machines I lose two disk drives with
> 2.5.6-pre2 that still were present with 2.5.6-pre1.
> Looking why, I see that the cleanup of ide-pci.c
> cleaned them away.
> 
> This is not necessarily bad, leaving things as they are is
> certainly an option, although maybe I prefer the old situation,
> but I just report the fact that the cleanup changes behaviour.
> 
> In this case I had two disks hanging off a HPT366 card
> but no CONFIG_BLK_DEV_HPT366 selected. Until now this
> worked: the values {PCI_VENDOR_ID_TTI, PCI_DEVICE_ID_TTI_HPT366}
> were always compiled in. On the other hand, 2.5.6-pre2 only
> knows about them when CONFIG_BLK_DEV_HPT366 is selected,
> so does not recognize the card and does not see the disks.
> 
> As a check I changed 2.5.6-pre2 by
> 
>  #ifdef CONFIG_BLK_DEV_HPT366
>         {PCI_VENDOR_ID_TTI, PCI_DEVICE_ID_TTI_HPT366, pci_init_hpt366, ...
> +#else
> +       {PCI_VENDOR_ID_TTI, PCI_DEVICE_ID_TTI_HPT366, NULL, NULL,
> +        IDE_NO_DRIVER, NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
> +	 OFF_BOARD, 240, ATA_F_IRQ | ATA_F_HPTHACK },
>  #endif
> 
> and indeed, this brings the drives back to life.

Well unfortunately there where ton's of changes there, so I would
rather wonder myself if anything didn't break.

Thank you for fixing this! But instead of making the above addtional
entries an preprocessor else, it would be better to just add them at the
end of the list as duplicated fall-back cases.



      reply	other threads:[~2002-03-04 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-03 22:02 IDE cleanup eats disks Andries.Brouwer
2002-03-04 10:44 ` Martin Dalecki [this message]

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=3C834FF8.4040405@evision-ventures.com \
    --to=dalecki@evision-ventures.com \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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