public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Amit Sahrawat <amit.sahrawat83@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>, Namjae Jeon <linkinjeon@gmail.com>,
	Nam-Jae Jeon <namjae.jeon@samsung.com>,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] scsi: retrieve cache mode using ATA_16 if normal routine fails
Date: Wed, 14 Dec 2011 11:39:58 +0400	[thread overview]
Message-ID: <1323848398.3063.12.camel@dabdike> (raw)
In-Reply-To: <CADDb1s1JwTbeFMsL4Vcz99PhgZKAMG05rgqankYCNeJLFRQSMg@mail.gmail.com>

On Wed, 2011-12-14 at 09:14 +0530, Amit Sahrawat wrote:
> Just to add a thought - this issues is not related with ATA, this is
> primarily related with HDD's with a USB interface i.e., SCSI <-> USB.
> And, when I check my kernel config, CONFIG_ATA is not selected,
> libata-scsi - this gets compiled only in case CONFIG_ATA is on.
> Are these two things inter-related?

OK, so what you're telling us is that you're trying to correct a
deficiency in a SATL inside a USB device?  The device itself is ATA but
it doesn't use our libata connectors.

I think in that case, the best way forwards is a mini-SATL correction
layer within USB storage.  USB storage is certainly the place to
black/white list whether this should be done.  ATA_16 is a bit of a
dangerous command to be throwing around because it's known to crash
various USB devices (and some old SCSI ones might even choke on it).

depending on how big this SATL ends up being we should consider whether
it should share processing with the libata SATL.  If it's just a single
mode sense, my instinct is that it's probably OK to implement separately
(however, you need to use the libata headers ... no duplication of
libata opcodes and status defines like you had in the original SCSI
patch).  If there are more commands to correct on the way, it might be
better as shared code.

James



  reply	other threads:[~2011-12-14  7:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12 11:18 [PATCH 1/1] scsi: retrieve cache mode using ATA_16 if normal routine fails Amit Sahrawat
2011-12-12 12:51 ` James Bottomley
2011-12-13  0:20   ` Namjae Jeon
     [not found]     ` <CADDb1s2SOK5sC3N0OOdkBrPuDKc2d2A4z4yso4jYs=1rbxNmkA@mail.gmail.com>
2011-12-13  4:56       ` Amit Sahrawat
2011-12-13  8:53     ` James Bottomley
2011-12-13 12:15       ` Amit Sahrawat
2011-12-13 20:38       ` Jeff Garzik
2011-12-14  3:44         ` Amit Sahrawat
2011-12-14  7:39           ` James Bottomley [this message]
2011-12-15  0:25             ` Namjae Jeon
2012-01-27  5:20               ` Amit Sahrawat
  -- strict thread matches above, loose matches on Subject: below --
2012-02-03 12:59 Amit Sahrawat
2012-02-05 12:05 ` Sergei Shtylyov
2012-02-06  5:40   ` Amit Sahrawat

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=1323848398.3063.12.camel@dabdike \
    --to=james.bottomley@hansenpartnership.com \
    --cc=amit.sahrawat83@gmail.com \
    --cc=jeff@garzik.org \
    --cc=linkinjeon@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=namjae.jeon@samsung.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