]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
sata: ahci-da850: get the sata clock using a connection id
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 30 Jan 2017 10:02:01 +0000 (11:02 +0100)
committerSekhar Nori <nsekhar@ti.com>
Tue, 31 Jan 2017 11:55:13 +0000 (17:25 +0530)
commit82dbe1a68fd65a4dae8f01e4f214221857f8161b
treed6728713f4b2795f75edffd7bb2df8d92ea8437b
parent7ce7d89f48834cefece7804d38fc5d85382edf77
sata: ahci-da850: get the sata clock using a connection id

In preparation for using two clocks in the driver (the sysclk2-based
clock and the external REFCLK), check if we got the functional clock
after calling ahci_platform_get_resources(). If not, retry calling
clk_get() with con_id specified.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/ata/ahci_da850.c