linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Lord <liml@rtr.ca>
To: Jeff Garzik <jeff@garzik.org>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
	Tejun Heo <htejun@gmail.com>
Subject: Re: [PATCH] libata: (round 5) add support for ATA_16 on ATAPI
Date: Sun, 04 Mar 2007 15:31:39 -0500	[thread overview]
Message-ID: <45EB2CAB.10308@rtr.ca> (raw)
In-Reply-To: <45E8C1C4.4050104@garzik.org>

Jeff Garzik wrote:
> Mark Lord wrote:
....
>> +    if (scsi_op == ATA_16 && dev->class == ATA_DEV_ATAPI && 
>> !ata16_passthru)
>> +        max_len = 16;
>> +    else
>> +        max_len = dev->cdb_len;
>> + +    if (unlikely(!scmd->cmd_len || scmd->cmd_len > max_len)) {
>> +         DPRINTK("bad CDB len=%u, max=%u\n",
>> +             scmd->cmd_len, max_len);
> 
> looks like a chompified patch (double '+')

Yup.  Chompified.  There used to be a blank line above that one.
I must have hit enter or something while editing the email.

Will resend.
...
>> +    xlat_func = ata_get_xlat_func(dev, scsi_op);
>> +    if (xlat_func)
>> +        rc = ata_scsi_translate(dev, scmd, done, xlat_func);
>> +    else
>> +        ata_scsi_simulate(dev, scmd, done);
>>     return rc;
> 
> 
> this looks like a bug?  ata_scsi_simulate() should not be called for 
> ATAPI devices.

Notabug.  ata_get_xlat_func will always return either atapi_xlat
or ata_scsi_pass_thru for ATAPI devices.

Cheers

  reply	other threads:[~2007-03-04 20:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-02 17:37 [PATCH] libata: (round 5) add support for ATA_16 on ATAPI Mark Lord
2007-03-03  0:31 ` Jeff Garzik
2007-03-04 20:31   ` Mark Lord [this message]
2007-03-04 20:35     ` [PATCH] libata: (round 6) " Mark Lord

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=45EB2CAB.10308@rtr.ca \
    --to=liml@rtr.ca \
    --cc=htejun@gmail.com \
    --cc=jeff@garzik.org \
    --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;
as well as URLs for NNTP newsgroup(s).