Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Jeremy Higdon <jeremy@sgi.com>
To: linux-ide@vger.kernel.org
Subject: purpose of resetproc() in struct hwif_s
Date: Sat, 6 Dec 2003 23:42:41 -0800	[thread overview]
Message-ID: <20031207074241.GA188106@sgi.com> (raw)

Hello,

I have a question about the resetproc function pointer in
the ide_hwif_t structure.

Several PCI controllers don't fill in this pointer, and thus,
the controllers will not be reset in do_reset1().

The comment in do_reset1() is a little puzzling:

        /*                                                                                  
         * Some weird controller like resetting themselves to a strange
         * state when the disks are reset this way. At least, the Winbond
         * 553 documentation says that
         */
        if (hwif->resetproc != NULL) {
                hwif->resetproc(drive);
        }

Then there's this in the definition for ide_hwif_t:

        /* routine to reset controller after a disk reset */
        void    (*resetproc)(ide_drive_t *);


I'm wondering what to do with this in the driver I'm supporting
(sgiioc4, as well as a Vitesse VSC7174 driver).  Currently, they
both just disable DMA and clear any pending interrupts for the
drive in question.

My question is, what should it be doing?  Is turning shutting off
DMA and clearing interrupts sufficient if we don't think we need
to reset the controller?  Could it be harmful?


thanks

jeremy

             reply	other threads:[~2003-12-07  7:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-07  7:42 Jeremy Higdon [this message]
2003-12-07 23:13 ` purpose of resetproc() in struct hwif_s Benjamin Herrenschmidt

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=20031207074241.GA188106@sgi.com \
    --to=jeremy@sgi.com \
    --cc=linux-ide@vger.kernel.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