summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2017-11-02 15:45:34 +0100
committerMichal Simek <michal.simek@xilinx.com>2017-11-03 09:31:27 +0100
commitcba64a2a7303bfbf8ccd4fc43abfdfe0d30b7e37 (patch)
tree6a2d6a600fc1971f25b486f400cfc94e3a19e9d4 /drivers
parenta0cdb534e121185a72c881e76fa802486eba0f4f (diff)
scsi: ceva: Start port in probe
The patch: "dm: ahci: Unwind the confusing init code" (sha1: 7cf1afce7fa3fe64189020fe14b93f7326dd0758) introduce bug for ceva sata because port didn't start. On the other hand the dwc_ahci.c was fixed correctly. Do the same change for ceva too. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Tested-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/sata_ceva.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c
index d582e5ba80..3ef7b49215 100644
--- a/drivers/ata/sata_ceva.c
+++ b/drivers/ata/sata_ceva.c
@@ -113,11 +113,16 @@ static int ceva_init_sata(ulong mmio)
static int sata_ceva_probe(struct udevice *dev)
{
+ int ret;
struct scsi_platdata *plat = dev_get_uclass_platdata(dev);
ceva_init_sata(plat->base);
- return achi_init_one_dm(dev);
+ ret = achi_init_one_dm(dev);
+ if (ret)
+ return ret;
+
+ return achi_start_ports_dm(dev);
}
static const struct udevice_id sata_ceva_ids[] = {