From: Jeff Garzik <jgarzik@pobox.com>
To: Jon Escombe <lists@dresco.co.uk>
Cc: linux-kernel@vger.kernel.org,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: Re: [patch] libata passthrough - return register data from HDIO_* commands
Date: Mon, 22 Aug 2005 00:43:36 -0400 [thread overview]
Message-ID: <430957F8.9070507@pobox.com> (raw)
In-Reply-To: <430112F6.3090906@dresco.co.uk>
Jon Escombe wrote:
>
>> Here is a first attempt at a patch to return register data from the
>> libata passthrough HDIO ioctl handlers, I needed this as the ATA
>> 'unload immediate' command returns the success in the lbal register.
>> This patch applies on top of 2.6.12 and Jeffs
>> 2.6.12-git4-passthru1.patch. (Apologies, but Thunderbird appears to
>> have replaced the tabs with spaces).
>>
>> One oddity is that the sr_result field is correctly being set in
>> ata_gen_ata_desc_sense(), however the high word is different when
>> we're back in the ioctl hander. I've coded round this for now by only
>> checking the low word, but this needs more investigation.
>>
>> Jeff, could this functionality be incorporated into the pasthrough
>> patch when complete?
>
>
>
> I'd failed to realise that scsi_finish_command() sets the high byte of
> the result field to DRIVER_SENSE when there is sense data. Patch updated
> to reflect this...
>
> Haven't had any feedback on the patch itself - but this now does what I
> wanted it do to. (I can't find a way to make Thunderbird retain tabs in
> the message body, so sending as an attachment).
Patch seems sane at first glance. I'll look over it in depth this week.
Jeff
prev parent reply other threads:[~2005-08-22 22:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <42FE2FBA.3000605@dresco.co.uk>
[not found] ` <430112F6.3090906@dresco.co.uk>
2005-08-19 19:06 ` [patch] libata passthrough - return register data from HDIO_* commands John W. Linville
2005-08-19 19:19 ` John W. Linville
2005-08-19 19:31 ` Jon Escombe
2005-08-19 20:06 ` John W. Linville
2005-08-22 4:43 ` Jeff Garzik [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=430957F8.9070507@pobox.com \
--to=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@dresco.co.uk \
/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).