ata: ahci: Fix usage on big-endian platforms
authorStefan Roese <sr@denx.de>
Wed, 7 Apr 2021 07:12:35 +0000 (09:12 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 23 Apr 2021 19:22:55 +0000 (21:22 +0200)
commit1cf2700f269e8f81cf99a68b8746c80e12c410be
tree2c10ff0d4915449c79a35bfaac8daefe5af8a22f
parent1eefd49cc188e40f7221f96cd7d7a21b3ccba89a
ata: ahci: Fix usage on big-endian platforms

This patch adds a few missing virt_to_phys() to use the correct physical
address for DMA operations in the common AHCI code. This is done to
support the big-endian MIPS Octeon platform.

Additionally the code a cleaned up a bit (remove some empty lines) and
made a bit better readable.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Aaron Williams <awilliams@marvell.com>
Cc: Chandrakala Chavva <cchavva@marvell.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/ata/ahci.c