Thread (60 messages) 60 messages, 9 authors, 2014-07-09

[PATCH 8/9] ata: Add support for the Tegra124 SATA controller

From: Stephen Warren <hidden>
Date: 2014-06-16 22:21:58
Also in: linux-ide, linux-tegra, lkml

On 06/04/2014 05:32 AM, Mikko Perttunen wrote:
This adds support for the integrated AHCI-compliant Serial ATA
controller present on the NVIDIA Tegra124 system-on-chip.
quoted hunk ↗ jump to hunk
diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c
+static int tegra_ahci_controller_init(struct ahci_host_priv *hpriv)
+	/* Pad calibration */
+
+	ret = tegra_fuse_readl(0x224, &val);
+	if (ret) {
+		dev_err(&tegra->pdev->dev,
+			"failed to read sata calibration fuse: %d\n", ret);
+		return ret;
+	}
+
+	calib = tegra124_pad_calibration[val];
Shouldn't val be range-checked before blindly using it?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help