From: Santosh Y <santoshsy@gmail.com>
To: james.bottomley@hansenpartnership.com
Cc: linux-scsi@vger.kernel.org, vinholikatti@gmail.com,
Seungwon Jeon <tgih.jun@samsung.com>,
Santosh Y <santoshsy@gmail.com>
Subject: [PATCH 4/8] scsi: ufs: remove version check before IS reg clear
Date: Sun, 19 May 2013 13:51:39 +0530 [thread overview]
Message-ID: <1368951703-2672-5-git-send-email-santoshsy@gmail.com> (raw)
In-Reply-To: <1368951703-2672-1-git-send-email-santoshsy@gmail.com>
From: Seungwon Jeon <tgih.jun@samsung.com>
There is no need to check the version to clear
the interrupt status. And the order is changed
prior to actual handling.
Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Tested-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index aa2c8d2..b1ac21e 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -1478,11 +1478,8 @@ static irqreturn_t ufshcd_intr(int irq, void *__hba)
intr_status = ufshcd_readl(hba, REG_INTERRUPT_STATUS);
if (intr_status) {
+ ufshcd_writel(hba, intr_status, REG_INTERRUPT_STATUS);
ufshcd_sl_intr(hba, intr_status);
-
- /* If UFSHCI 1.0 then clear interrupt status register */
- if (hba->ufs_version == UFSHCI_VERSION_10)
- ufshcd_writel(hba, intr_status, REG_INTERRUPT_STATUS);
retval = IRQ_HANDLED;
}
spin_unlock(hba->host->host_lock);
--
1.8.2.3
next prev parent reply other threads:[~2013-05-19 8:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-19 8:21 [PATCH 0/8] scsi: ufs: query support and other fixes Santosh Y
2013-05-19 8:21 ` [PATCH 1/8] scsi: ufs: add support for query requests Santosh Y
2013-05-19 8:21 ` [PATCH 2/8] scsi: ufs: wrap the i/o access operations Santosh Y
2013-05-19 8:21 ` [PATCH 3/8] scsi: ufs: amend interrupt configuration Santosh Y
2013-05-19 8:21 ` Santosh Y [this message]
2013-05-19 8:21 ` [PATCH 5/8] scsi: ufs: rework link start-up process Santosh Y
2013-05-19 8:21 ` [PATCH 6/8] scsi: ufs: Add support for sending NOP OUT UPIU Santosh Y
2013-05-19 8:21 ` [PATCH 7/8] scsi: ufs: Set fDeviceInit flag to initiate device initialization Santosh Y
2013-05-19 8:21 ` [PATCH 8/8] scsi: ufs: Fix the response UPIU length setting Santosh Y
2013-06-12 5:39 ` [PATCH 0/8] scsi: ufs: query support and other fixes Santosh Y
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=1368951703-2672-5-git-send-email-santoshsy@gmail.com \
--to=santoshsy@gmail.com \
--cc=james.bottomley@hansenpartnership.com \
--cc=linux-scsi@vger.kernel.org \
--cc=tgih.jun@samsung.com \
--cc=vinholikatti@gmail.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;
as well as URLs for NNTP newsgroup(s).