ata: ahci_sunxi: add support for r40
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Mon, 3 Sep 2018 10:01:58 +0000 (12:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Sep 2018 14:17:13 +0000 (08:17 -0600)
commit76dfb49d2e2a9cb2bab39d4148f20537efca84a2
treef0994d95919207a9c8a6f3c59284ad4f5b72cc4c
parenta052ae02e40128bf26755ff1be8511c6f4ca85a3
ata: ahci_sunxi: add support for r40

This patch add the r40 compatible to the ahci_sunxi's supported list of
compatible.

Since R40 need ahci_platform to handle the reset controller, we also add
the new AHCI_PLATFORM_GET_RESETS flag for ahci_platform_get_resources().
This has no consequence for older platform (a10, a20) since the reset is
optional.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/ahci_sunxi.c