From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Namjae Jeon <linkinjeon@gmail.com>
Cc: James.Bottomley@HansenPartnership.com,
gregkh@linuxfoundation.org, mdharm-usb@one-eyed-alien.net,
stern@rowland.harvard.edu, bvanassche@acm.org,
linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org,
Namjae Jeon <namjae.jeon@samsung.com>,
Pankaj Kumar <pankaj.km@samsung.com>,
Amit Sahrawat <a.sahrawat@samsung.com>
Subject: Re: [PATCH v3 2/4] usb: storage: add support for write cache quirk on usb hdd
Date: Sat, 09 Jun 2012 22:42:12 +0400 [thread overview]
Message-ID: <4FD39904.2010808@mvista.com> (raw)
In-Reply-To: <1339263660-4039-1-git-send-email-linkinjeon@gmail.com>
Hello.
On 06/09/2012 09:41 PM, Namjae Jeon wrote:
> Add support for write cache quirk on usb hdd. scsi driver will be set to wce
> by detecting write cache quirk in quirk list when plugging usb hdd.
> Signed-off-by: Namjae Jeon<namjae.jeon@samsung.com>
> Signed-off-by: Pankaj Kumar<pankaj.km@samsung.com>
> Signed-off-by: Amit Sahrawat<a.sahrawat@samsung.com>
> ---
> drivers/usb/storage/scsiglue.c | 5 +++++
> drivers/usb/storage/usb.c | 5 ++++-
> include/linux/usb_usual.h | 4 +++-
> 3 files changed, 12 insertions(+), 2 deletions(-)
> diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
> index a324a5d..fe42547 100644
> --- a/drivers/usb/storage/scsiglue.c
> +++ b/drivers/usb/storage/scsiglue.c
[...]
> @@ -529,6 +529,9 @@ static void adjust_quirks(struct us_data *us)
> case 'o':
> f |= US_FL_CAPACITY_OK;
> break;
> + case 'p':
> + f |= US_FL_WRITE_CACHE;
> + break;
> case 'r':
> f |= US_FL_IGNORE_RESIDUE;
> break;
You probably should unite this chunk with the documentation update patch.
> diff --git a/include/linux/usb_usual.h b/include/linux/usb_usual.h
> index 17df360..96fc152 100644
> --- a/include/linux/usb_usual.h
> +++ b/include/linux/usb_usual.h
> @@ -64,7 +64,9 @@
> US_FLAG(NO_READ_CAPACITY_16, 0x00080000) \
> /* cannot handle READ_CAPACITY_16 */ \
> US_FLAG(INITIAL_READ10, 0x00100000) \
> - /* Initial READ(10) (and others) must be retried */
> + /* Initial READ(10) (and others) must be retried */ \
> + US_FLAG(WRITE_CACHE, 0x00200000) \
You've been already told to keep '\' at the same level with the above '\'
and you're continuing to ignore this.
> + /* Write Cache status is not available */
>
> #define US_FLAG(name, value) US_FL_##name = value ,
> enum { US_DO_ALL_FLAGS };
WBR, Sergei
next prev parent reply other threads:[~2012-06-09 18:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-09 17:41 [PATCH v3 2/4] usb: storage: add support for write cache quirk on usb hdd Namjae Jeon
2012-06-09 18:42 ` Sergei Shtylyov [this message]
2012-06-10 0:30 ` Namjae Jeon
2012-06-11 17:11 ` Sergei Shtylyov
2012-06-11 22:50 ` Namjae Jeon
-- strict thread matches above, loose matches on Subject: below --
2012-06-10 1:30 Namjae Jeon
2012-06-10 17:36 ` Alan Stern
2012-06-10 23:30 ` Namjae Jeon
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=4FD39904.2010808@mvista.com \
--to=sshtylyov@mvista.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=a.sahrawat@samsung.com \
--cc=bvanassche@acm.org \
--cc=gregkh@linuxfoundation.org \
--cc=linkinjeon@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mdharm-usb@one-eyed-alien.net \
--cc=namjae.jeon@samsung.com \
--cc=pankaj.km@samsung.com \
--cc=stern@rowland.harvard.edu \
/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