diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-12-04 20:28:28 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-11 14:47:50 -0700 |
commit | 2f558bc3f33ca344489cec2218545741028b6a70 (patch) | |
tree | 524c3d3067653b83a4d3bb89d7e3e1e8b785e666 /kernel | |
parent | 96dbcb40e4b1a387cdb9b21f43638c759aebb5a4 (diff) |
ata: ahci: mvebu: add Armada 3700 initialization needed for S2RAM
A3700 comphy initialization is done in the firmware (TF-A). Looking at
the SATA PHY initialization routine, there is a comment about "vendor
specific" registers. Two registers are mentioned. They are not
initialized there in the firmware because they are AHCI related, while
the firmware at this location does only PHY configuration. The
solution to avoid doing such initialization is relying on U-Boot.
While this work at boot time, U-Boot is definitely not going to run
during a resume after suspending to RAM.
Two possible solutions were considered:
* Fixing the firmware.
* Fixing the kernel driver.
The first solution would take ages to propagate, while the second
solution is easy to implement as the driver as been a little bit
reworked to prepare for such platform configuration. Hence, this patch
adds an Armada 3700 configuration function to set these two registers
both at boot time (in the probe) and after a suspend (in the resume
path).
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions