]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitbbd68b79045afac88d91ad7af9c0f2805005cc90
tree2c10ff0d4915449c79a35bfaac8daefe5af8a22f
parentb96dc84cbcec2ea4fb0c34df984e20173bc5e9ac
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