From: Michal Simek <michal.simek@xilinx.com>
To: linux-kernel@vger.kernel.org, monstr@monstr.eu
Cc: Alexander Graf <agraf@suse.de>,
Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>,
Tejun Heo <tj@kernel.org>,
linux-ide@vger.kernel.org
Subject: [PATCH 3/9] ata: ceva: Add gen 3 mode support in driver
Date: Fri, 4 Aug 2017 15:18:12 +0200 [thread overview]
Message-ID: <6b1cf2b64b79857504c178e26c07b2b7e7282059.1501852693.git.michal.simek@xilinx.com> (raw)
In-Reply-To: <cover.1501852693.git.michal.simek@xilinx.com>
In-Reply-To: <cover.1501852693.git.michal.simek@xilinx.com>
From: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
This patch sets gen 3 mode as default mode in ahci_ceva driver.
Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
drivers/ata/ahci_ceva.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/ahci_ceva.c b/drivers/ata/ahci_ceva.c
index 59de2ca1885c..aa32c8a0f083 100644
--- a/drivers/ata/ahci_ceva.c
+++ b/drivers/ata/ahci_ceva.c
@@ -60,6 +60,7 @@
#define PORT1_BASE 0x180
/* Port Control Register Bit Definitions */
+#define PORT_SCTL_SPD_GEN3 (0x3 << 4)
#define PORT_SCTL_SPD_GEN2 (0x2 << 4)
#define PORT_SCTL_SPD_GEN1 (0x1 << 4)
#define PORT_SCTL_IPM (0x3 << 8)
@@ -136,8 +137,8 @@ static void ahci_ceva_setup(struct ahci_host_priv *hpriv)
tmp = PTC_RX_WM_VAL | PTC_RSVD;
writel(tmp, mmio + AHCI_VEND_PTC);
- /* Default to Gen 2 Speed and Gen 1 if Gen2 is broken */
- tmp = PORT_SCTL_SPD_GEN2 | PORT_SCTL_IPM;
+ /* Default to Gen 3 Speed and Gen 1 if Gen2 is broken */
+ tmp = PORT_SCTL_SPD_GEN3 | PORT_SCTL_IPM;
if (cevapriv->flags & CEVA_FLAG_BROKEN_GEN2)
tmp = PORT_SCTL_SPD_GEN1 | PORT_SCTL_IPM;
writel(tmp, mmio + PORT_SCR_CTL + PORT_BASE + PORT_OFFSET * i);
--
1.9.1
next prev parent reply other threads:[~2017-08-04 13:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 13:18 [PATCH 0/9] Ata ceva patches Michal Simek
2017-08-04 13:18 ` [PATCH 1/9] devicetree: bindings: Add sata port phy config parameters in ahci-ceva Michal Simek
2017-08-10 19:07 ` Rob Herring
2017-08-11 12:36 ` Michal Simek
2017-08-04 13:18 ` [PATCH 2/9] ata: ceva: Move sata port phy oob settings to device-tree Michal Simek
2017-08-04 13:18 ` Michal Simek [this message]
2017-08-04 13:18 ` [PATCH 4/9] ata: ceva: Disable Device Sleep capability Michal Simek
2017-08-04 13:18 ` [PATCH 5/9] ata: ceva: Make RxWaterMark value as module parameter Michal Simek
2017-08-04 13:18 ` [PATCH 6/9] ata: ceva: Add CCI support for SATA if CCI is enabled Michal Simek
2017-08-04 13:18 ` [PATCH 7/9] ata: ceva: Correct the AXI bus configuration for SATA ports Michal Simek
2017-08-04 13:18 ` [PATCH 8/9] ata: ceva: Correct the suspend and resume logic for SATA Michal Simek
2017-08-04 13:18 ` [PATCH 9/9] ata: ceva: Add SMMU support for SATA IP Michal Simek
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=6b1cf2b64b79857504c178e26c07b2b7e7282059.1501852693.git.michal.simek@xilinx.com \
--to=michal.simek@xilinx.com \
--cc=agraf@suse.de \
--cc=anurag.kumar.vulisha@xilinx.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=monstr@monstr.eu \
--cc=tj@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
all inboxes | Powered by JetHome®