From: Jeff Garzik <jeff@garzik.org>
To: Mikael Pettersson <mikpe@it.uu.se>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] sata_promise: new EH conversion for 20619 chips
Date: Tue, 06 Feb 2007 16:19:58 -0500 [thread overview]
Message-ID: <45C8F0FE.90201@garzik.org> (raw)
In-Reply-To: <200702042144.l14LisBO003772@harpo.it.uu.se>
Mikael Pettersson wrote:
> This patch updates the sata_promise driver to use new-style
> libata error handling for 20619 (TX4000) chips. sata_promise
> already uses new EH for the other chips it supports, so the
> patch is quite simple:
>
> * remove ->phy_reset and ->eng_timeout ops from pdc_pata_ops,
> and instead bind ->freeze, ->thaw, ->error_handler, and
> ->post_internal_cmd to existing new EH functions
> * drop ATA_FLAG_SRST from board_20619's flags
> * remove now unused pdc_pata_phy_reset() and pdc_eng_timeout()
> * pdc_pata_cbl_detect() is now unused, but it contains a cable
> detection procedure that I don't think is mentioned in public
> documentation, so for now I just wrapped it with #if 0/#endif
>
> Tested on a TX4000 with both modern working disks and old/quirky
> disks. Also used a CD-RW drive to test reading and writing CDs.
>
> Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
The lack of cable detection definitely sounds like a bug...?
The standard procedure is to set ap->cbl in your 'prereset' EH hook, as
is done in drivers/ata/pata_sil680.c.
Jeff
next prev parent reply other threads:[~2007-02-06 21:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-04 21:44 [PATCH] sata_promise: new EH conversion for 20619 chips Mikael Pettersson
2007-02-06 21:19 ` Jeff Garzik [this message]
2007-02-07 20:58 ` Mikael Pettersson
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=45C8F0FE.90201@garzik.org \
--to=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=mikpe@it.uu.se \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.