On 03.10.26 06:36, Igor Velkov wrote:
> board_ahci_enable() sets the DRAM windows and the regret bit only at
> MVEBU_SATA0_BASE, the first controller (sata@a8000), but the generic AHCI
> driver calls it before probing each controller. On Armada 388 the second
> controller, sata@e0000, is left without these windows, so its DMA does not
> reach DRAM: the link comes up, the first command never completes and
> scsi scan hangs.
>
> Use the address of the controller being probed. MVEBU_SATA0_BASE has no
> other user, drop it.
>
> Tested on Helios4, whose disk is on the second controller: without this
> change scsi scan hangs; with it the disk is found, and blocks read in
> U-Boot have the same CRC32 as when read from Linux.
>
> Signed-off-by: Igor Velkov <[email protected]>

Reviewed-by: Stefan Roese <[email protected]>

Thanks,
Stefan

Reply via email to