]> git.baikalelectronics.ru Git - kernel.git/commit
sata: ahci-da850: un-hardcode the MPY bits
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 30 Jan 2017 10:02:08 +0000 (11:02 +0100)
committerSekhar Nori <nsekhar@ti.com>
Tue, 31 Jan 2017 15:11:52 +0000 (20:41 +0530)
commit40ccd69a160905319af2e13774ece0eedcbd8987
tree5d710408ae682c54c8f0a3d04259183ccaddc39b
parent8d713345090bc2df402160edaa7e246d3eed1d1d
sata: ahci-da850: un-hardcode the MPY bits

All platforms using this driver now register the SATA refclk. Remove
the hardcoded default value from the driver and instead read the rate
of the external clock and calculate the required MPY value from it.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Tejun Heo <tj@kernel.org>
[nsekhar@ti.com: fix checkpatch warning about an unneeded else]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/ata/ahci_da850.c