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,
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 2/3] usb: storage: add support write cache quirk on usb hdd
Date: Thu, 07 Jun 2012 16:23:17 +0400 [thread overview]
Message-ID: <4FD09D35.9020505@mvista.com> (raw)
In-Reply-To: <1338985247-9720-1-git-send-email-linkinjeon@gmail.com>
Hello.
On 06-06-2012 16:20, Namjae Jeon wrote:
> Add support
You missed "for" here and in the subject.
> 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 | 6 ++++++
> drivers/usb/storage/usb.c | 5 ++++-
> include/linux/usb/quirks.h | 3 +++
> include/linux/usb_usual.h | 4 +++-
> 4 files changed, 16 insertions(+), 2 deletions(-)
> diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
> index a324a5d..f7d0ea5 100644
> --- a/drivers/usb/storage/scsiglue.c
> +++ b/drivers/usb/storage/scsiglue.c
[...]
> @@ -230,6 +231,11 @@ static int slave_configure(struct scsi_device *sdev)
> US_FL_SCM_MULT_TARG))&&
> us->protocol == USB_PR_BULK)
> us->use_last_sector_hacks = 1;
> +
> + /* Check for the cache quirk present or not */
> + if (us->pusb_dev->quirks & USB_QUIRK_WRITE_CACHE ||
> + us->fflags & US_FL_WRITE_CACHE)
> + sdev->wce_quirk = 1;
You overindented the last statement, so that it looks a bit like a
continuation of previous *if*.
WBR, Sergei
prev parent reply other threads:[~2012-06-07 12:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 12:20 [PATCH 2/3] usb: storage: add support write cache quirk on usb hdd Namjae Jeon
2012-06-06 15:57 ` Alan Stern
2012-06-07 12:23 ` Sergei Shtylyov [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=4FD09D35.9020505@mvista.com \
--to=sshtylyov@mvista.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=a.sahrawat@samsung.com \
--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 \
/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